/* ==========================================================
   CG12R V2 - Contact
   ========================================================== */

.contact-box {
    width: calc(100% - 30px);
    max-width: 820px;
    margin: 25px auto 60px;
}


/* Message */

.contact-message {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-message.error {
    color: #ffbcbc;
    background: #291717;
    border: 1px solid #744040;
}

.contact-message.success {
    color: #bde6c1;
    background: #17271a;
    border: 1px solid #416a46;
}


/* Cards */
.contact-view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.contact-view-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 42px;
    padding: 0 24px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.contact-view-tab:hover {
    border-color: #b89a62;
    color: #9a7a3f;
}

.contact-view-tab.is-active {
    border-color: #b89a62;
    background: #b89a62;
    color: #fff;
}

.contact-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 7px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #d9534f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
}

.contact-member-card,
.contact-service-card {
    margin-bottom: 16px;
    padding: 18px 20px 20px;

    background:
        linear-gradient(
            145deg,
            #151515,
            #111111
        );

    border: 1px solid #9b7413;
    border-radius: 9px;
}

.contact-section-title {
    margin-bottom: 18px;

    color: #e4b52c;

    font-size: 19px;
    font-weight: 700;
}
.contact-proxy-intro {
    margin-bottom: 18px;
    color: #d6d6d6;
    font-size: 14px;
    line-height: 1.7;
}

/* Member */

.contact-member-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 35px;

    color: #d5d5d5;

    font-size: 14px;
    line-height: 1.7;
}

.contact-member-info span {
    color: #999999;
}

.contact-member-info strong {
    color: #eeeeee;
}

.contact-member-info .contact-member-no {
    color: #e4b52c;
}

.contact-member-email {
    width: 100%;
}


/* Form */

.contact-form {
    width: 100%;
}

.contact-field {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;

    margin-bottom: 12px;
}

.contact-field label {
    color: #d7d7d7;

    font-size: 15px;
    font-weight: 600;
}

.contact-field label em {
    color: #e14a4a;
    font-style: normal;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    box-sizing: border-box;

    color: #e5e5e5;
    background: #202020;

    border: 1px solid #3b3b3b;
    border-radius: 6px;

    font-family: inherit;
    font-size: 14px;
}

.contact-field input,
.contact-field select {
    height: 42px;
    padding: 0 13px;
}

.contact-field textarea {
    display: block;

    min-height: 170px;
    padding: 12px 13px 30px;

    line-height: 1.7;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #747474;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
    border-color: #555555;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #b78a1b;
}


/* Textarea */

.contact-content-field {
    align-items: start;
}

.contact-content-field > label {
    padding-top: 11px;
}

.contact-textarea-wrap {
    position: relative;
}

.contact-counter {
    position: absolute;
    right: 10px;
    bottom: 8px;

    color: #888888;

    font-size: 12px;

    pointer-events: none;
}


/* Submit */

.contact-submit {
    padding-top: 5px;
    text-align: center;
}

.contact-submit button {
    min-width: 190px;
    height: 46px;

    padding: 0 28px;

    color: #161616;
    background:
        linear-gradient(
            180deg,
            #f4c63d,
            #e5aa16
        );

    border: 1px solid #f1c13a;
    border-radius: 7px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.35);
}

.contact-submit button:hover {
    filter: brightness(1.06);
}


/* History */

.contact-history {
    margin-top: 20px;
}

.contact-history-title {
    color: #e4b52c;
    font-size: 18px;
    font-weight: 700;
}

.contact-history-desc {
    margin-top: 7px;
    color: #999999;
    font-size: 14px;
}

/* 留言紀錄列表 */

.contact-history-list{
    margin-top:14px;
    border:1px solid #333;
    border-radius:7px;
    overflow:hidden;
}

.contact-history-item{
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    width:100%;
    padding:15px 16px;

    background:#151515;
    border-bottom:1px solid #2d2d2d;

    color:inherit;
    text-decoration:none;
    cursor:pointer;
}

.contact-history-item:last-child{
    border-bottom:0;
}

.contact-history-item:hover{
    background:#1d1d1d;
    text-decoration:none;
}

.contact-history-main{
    min-width:0;
    flex:1 1 auto;
}

.contact-history-item .contact-history-title{
    margin:0 0 6px;
    color:#e4b52c;
    font-size:15px;
    font-weight:700;
    line-height:1.5;
    word-break:break-word;
}

.contact-history-meta{
    display:flex;
    flex-wrap:wrap;
    gap:5px 12px;

    color:#aaa;
    font-size:13px;
    line-height:1.5;
}

.contact-history-status{
    flex:0 0 auto;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
}

.contact-status-wait{
    color:#c5c5c5;
}

.contact-status-replied{
    color:#e4b52c;
}

.contact-status-new{
    display:inline-block;
    padding:3px 8px;

    border:1px solid #e4b52c;
    border-radius:4px;

    color:#ffd45c;
    background:#2a220d;
}

.contact-history-pages{
    display:flex;
    justify-content:center;
    gap:7px;
    margin-top:16px;
}

.contact-history-pages a,
.contact-history-pages span{
    min-width:30px;
    padding:5px 8px;

    border:1px solid #444;
    border-radius:4px;

    color:#ccc;
    text-align:center;
    text-decoration:none;
}

.contact-history-pages a:hover{
    border-color:#9b7413;
    color:#e4b52c;
}

.contact-history-pages .current{
    border-color:#9b7413;
    color:#e4b52c;
    background:#211a08;
}
/* Mobile */

@media (max-width: 700px) {

    .contact-box {
        width: calc(100% - 20px);
        margin-top: 18px;
    }

    .contact-member-card,
    .contact-service-card {
        padding: 16px;
    }

    .contact-field {
        display: block;
        margin-bottom: 17px;
    }

    .contact-field label {
        display: block;
        margin-bottom: 7px;
    }

    .contact-content-field > label {
        padding-top: 0;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        font-size: 16px;
    }

    .contact-member-info {
        display: block;
    }

    .contact-member-info > div {
        margin-bottom: 3px;
    }

    .contact-submit button {
        width: 100%;
    }
    
        .contact-history-item{
        align-items:flex-start;
        gap:10px;
        padding:13px 14px;
    }

    .contact-history-meta{
        display:block;
    }

    .contact-history-meta span{
        display:block;
        margin-top:2px;
    }

    .contact-history-status{
        padding-top:1px;
    }
}

/* 聯絡我們：縮短麵包屑與標題區距離 */
.content_wrap > .breadcrumb{
    margin-bottom:12px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder{
    color:#d6d6d6;
    opacity:1;
}

.contact-field select{
    color:#f0f0f0;
}



/* ============================================================
   聯絡我們：所有系統提示訊息
   ============================================================ */

.contact-message{
    margin-bottom:20px;
    padding:14px 16px;
    border-radius:6px;
    font-size:14px;
    line-height:1.6;
    font-weight:500;
    color:#f2f2f2;
}

.contact-message-error{
    border:1px solid #d8a0a0;
    background:#171111;
    color:#f2f2f2;
}

.contact-message-success{
    border:1px solid #9fc5a5;
    background:#121712;
    color:#f2f2f2;
}

/* ============================================================
   留言詳情
   ============================================================ */

.contact-detail-card{
    padding:20px;
    background:linear-gradient(145deg,#151515,#111);
    border:1px solid #9b7413;
    border-radius:9px;
}

.contact-detail-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding-bottom:18px;
    border-bottom:1px solid #333;
}

.contact-detail-title{
    margin-bottom:8px;
    color:#e4b52c;
    font-size:19px;
    font-weight:700;
    word-break:break-word;
}

.contact-detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:6px 22px;
    color:#bbb;
    font-size:13px;
}

.contact-detail-status{
    flex:0 0 auto;
}

.contact-detail-section{
    padding:20px 0;
    border-bottom:1px solid #333;
}

.contact-detail-label{
    margin-bottom:10px;
    color:#e4b52c;
    font-size:15px;
    font-weight:700;
}

.contact-detail-content,
.contact-detail-reply{
    padding:14px 16px;
    background:#202020;
    border:1px solid #3b3b3b;
    border-radius:6px;
    color:#eee;
    font-size:14px;
    line-height:1.8;
    word-break:break-word;
}

.contact-detail-waiting{
    padding:14px 16px;
    background:#181818;
    border:1px solid #333;
    border-radius:6px;
    color:#bbb;
    font-size:14px;
}

.contact-detail-reply-time{
    margin-top:8px;
    color:#999;
    font-size:12px;
    text-align:right;
}

.contact-detail-actions{
    padding-top:18px;
}

.contact-detail-actions a{
    display:inline-block;
    padding:8px 14px;
    border:1px solid #9b7413;
    border-radius:6px;
    color:#e4b52c;
    font-size:14px;
    text-decoration:none;
}

.contact-detail-actions a:hover{
    background:#2d2309;
}

@media(max-width:700px){
    
    .contact-view-tabs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.contact-view-tab{
    width:100%;
    min-width:0;
    padding:0 10px;
}

    .contact-detail-head{
        display:block;
    }

    .contact-detail-status{
        margin-top:12px;
    }

    .contact-detail-meta{
        display:block;
    }

    .contact-detail-meta span{
        display:block;
        margin-top:4px;
    }
}

/* =========================================================
   Quote Confirm
   ========================================================= */

.contact-quote-address-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:12px;
}

.contact-quote-address{
    display:flex;
    align-items:flex-start;
    gap:10px;
    box-sizing:border-box;
    width:100%;
    padding:12px 14px;
    border:1px solid #3a3a3a;
    border-radius:6px;
    background:#181818;
    cursor:pointer;
}

.contact-quote-address input[type="radio"]{
    margin:4px 0 0;
    flex:0 0 auto;
}

.contact-quote-address-body{
    display:flex;
    flex:1;
    min-width:0;
    flex-direction:column;
    gap:4px;
    color:#eee;
    line-height:1.6;
}

.contact-quote-address-body strong{
    color:#f0c56a;
    font-size:15px;
}

.contact-quote-address-body em{
    display:inline-block;
    align-self:flex-start;
    padding:1px 6px;
    border-radius:3px;
    background:#6e531f;
    color:#fff;
    font-size:12px;
    font-style:normal;
}

.contact-quote-address-body span{
    display:block;
    overflow-wrap:anywhere;
}

.contact-quote-manage-row{
    margin-top:10px;
}

.contact-quote-manage-row a{
    color:#f0c56a;
    text-decoration:none;
}

.contact-quote-manage-row a:hover{
    text-decoration:underline;
}

.contact-quote-phone{
    margin-top:18px;
}

.contact-quote-phone label{
    display:block;
    margin-bottom:7px;
    color:#eee;
    font-weight:700;
}

.contact-quote-phone input{
    box-sizing:border-box;
    width:100%;
    max-width:320px;
    height:42px;
    padding:0 11px;
    border:1px solid #444;
    border-radius:5px;
    background:#111;
    color:#fff;
    font-size:15px;
}

.contact-quote-phone input:focus{
    border-color:#c99b42;
    outline:none;
}

.contact-quote-confirm-note{
    margin-top:18px;
    color:#ccc;
    line-height:1.7;
}

.contact-quote-confirm-button{
    display:inline-block;
    margin-top:12px;
    padding:10px 22px;
    border:0;
    border-radius:5px;
    background:#c79a42;
    color:#111;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.contact-quote-confirm-button:hover{
    opacity:.9;
}

.contact-quote-info{
    margin-top:8px;
    color:#eee;
    font-size:16px;
    line-height:1.8;
}

.contact-quote-info strong{
    color:#f0c56a;
    font-size:18px;
}
.contact-payment-box{
    box-sizing:border-box;
    margin-top:22px;
    padding:22px 20px;
    border:1px solid #6f561d;
    border-radius:8px;
    background:#151515;
    text-align:center;
}

.contact-payment-box::before{
    content:"繳費資訊";
    display:block;
    margin-bottom:14px;
    color:#e4b52c;
    font-size:16px;
    font-weight:700;
}

.contact-payment-button{
    display:inline-block;
    min-width:220px;
    padding:13px 24px;
    border:1px solid #c99b42;
    border-radius:6px;
    background:#c79a42;
    color:#111;
    font-size:17px;
    font-weight:700;
    text-decoration:none;
}

.contact-payment-button:hover{
    opacity:.9;
    text-decoration:none;
}

.contact-payment-wait{
    padding:8px 0;
    color:#f0c56a;
    font-size:17px;
    font-weight:700;
    line-height:1.7;
}