﻿body {
    margin: 0px;
    font-family: Microsoft JhengHei; /*微軟黑體字*/
}

section {
    width: 1000px;
    margin: auto;
    background: url(../images/contact_bg.jpg) top center no-repeat;
}

p {
    font-size: 25px;
    text-align: center;
    color: #aa4d48;
    margin: 0;
    padding: 270px 0 20px;
    font-weight: 600;
}

#contact-time {
    text-align: center;
    font-size: 13px;
    color: #66748e;
    line-height: 20px;
}

#back {
    font-size: 13px;
    display: block;
    text-align: right;
    cursor: pointer;
    /*float: right;*/
}

section.pc #serice_phone, section.pc #serice_mail, section.pc #contact-time {
    display: none;
}

#form1 {
    margin: auto;
    padding: 1% 25% 5%;
    background: url(../images/contact_bg2.png);
    background-size: cover;
}

    #form1 .box {
        background-color: #fff;
        margin: 2% 0;
        padding: 1% 0 1% 2%;
        border: 0;
    }


label {
    color: #505050;
    padding: 1% 0 1% 2%;
}

input {
    outline: none;
    border: 0;
}

    input[type=text] {
        font-size: 16px;
    }

#theme {
    width: 100%;
    padding: 1% 0 1% 0;
    background-color: #fff;
}

#title {
    width: 20%;
    color: #505050;
    padding: 1% 0 1% 3%;
    display: inline;
}

#subject {
    margin: 4px 0;
    border: 0;
    padding: 1% 5% 1% 1%;
    display: inline;
}

/*選項列*/
.select-wrapper {
    position: relative;
    cursor: pointer;
    border: 1px solid #e3e3e3;
}

.select-button {
    width: 80%;
    border: 0;
    cursor: pointer;
    outline: none;
    font-size: 15px;
}

.select-down {
    position: absolute;
    top: 10px;
    right: 12px;
    border-style: solid;
}

.disabled {
    color: #cccccc;
}

.select-list {
    width: 100%;
    background: rgba(196,205,220,.9);
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
}

    .select-list ul {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        line-height: 25px;
    }

        .select-list ul li {
            padding-left: 2%;
        }

            .select-list ul li.selected, .select-list ul li:hover {
                color: #fff;
                background: #66748e;
            }
/*選項列結束*/

#message {
    width: 98%;
    outline: none;
    border: 0;
    font-family: Microsoft JhengHei; /*微軟黑體字*/
    font-size: 14px;
}

.msgWrapper {
    width: 75%;
    float: right;
    min-height: 0;
    color: #aa4d48;
    line-height: 24px;
    display: inline;
    font-size: 15px;
}

    .msgWrapper .error {
        background-color: transparent; /*透明*/
        color: #aa4d48;
    }

.alertmsg {
    display: inline;
}

#sentout {
    width: auto;
    font-size: 15px;
    color: #fff;
    border-radius: 50%;
    background-color: #66748e;
    border: none;
    padding: 20px 13px;
    cursor: pointer;
    margin: auto;
}

#nibico {
    display: none;
}

/*送出訊息*/
#cover {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: url(../images/alert_black70Bg.png);
    z-index: 10;
    display: none;
}

    #cover #alert {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        margin: auto;
        max-width: 285px;
        cursor: pointer;
    }

/*送出訊息結束*/

@media screen and (min-width: 1000px) {
    #serice_phone, #serice_mail {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    section.mobile {
        width: 100%;
        background-size: auto 40%;
    }

    p {
        padding: 45% 0 5%;
        font-weight: 400;
    }

    #contact-time {
        padding: 1% 0;
        font-size:14px;
    }

    #back {
        float: right;
        padding-top: 1%;
    }

    #serice_mail {
        width: 50%;
        display: inline;
        vertical-align: bottom;
    }

  #serice_phone img {
            display:none;
         
        }

    #form1 {
        padding: 2% 5%;
        background: linear-gradient(to bottom,#c4cddb,#fff); /*漸層*/
    }

        #form1 .box {
            padding: 2% 0;
            border-radius: 0;
        }

    .select-button {
        width: 65%;
        padding: 1% 6% 1% 2%;
    }

    .msgWrapper {
        font-size: 14px;
    }

    .alertmsg ul {
        list-style: none inside;
    }

    #sentout {
        -webkit-appearance: none;
        padding: 20px 14px;
        margin-left: 0;
    }

    #nibico {
        display: block;
        color: #a48b78;
        font-size: 13px;
        text-align: center;
        margin-top: 3%;
        padding: 5% 0;
    }
}

@media screen and (max-width: 400px) {
    body {
        font-size: 14px; /*小視窗文字放大*/
    }

      #serice_phone {
        width: 90%;
        margin: auto;
        background-color: rgba(102,116,142,.9);
        text-align: center;
    }

        #serice_phone img {
            display:block;
            width: 50%;
            margin:auto;
        }

        #serice_phone a {
            /*padding: 20% 20% 0;*/
        }

    /*錯誤訊息*/
    #cover #alert img { /*小視窗圖太滿，所以縮小一點*/
        width: 90%;
        padding-left: 5%;
    }
}
