@charset "utf-8";
/* =========================================
   SEO Master Architect - Modern Inquiry CSS
   Version: 2026.1 (Full Production)
   ========================================= */

/* ----------------------------------------------------------------
   1. 核心變數與基礎設定 (Modern Variables)
   ---------------------------------------------------------------- */
:root {
    --primary-color: #B061DF;       /* 主色調 */
    --accent-color: #666CDD;        /* 強調色 */
    --text-color: #333333;          /* 主要文字 */
    --text-light: #666666;          /* 次要文字 */
    --border-color: #E0E0E0;        /* 邊框色 */
    --input-bg: #FAFAFA;            /* 輸入框背景 */
    --radius: 8px;                  /* 圓角統一設定 */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --focus-ring: 0 0 0 3px rgba(176, 97, 223, 0.2);
}

/* 標題背景保留 */
.main .title {
    background-image: url(../images/inquiry/title_bg.jpg);
}
.main .title h1 {
    color: var(--primary-color);
}

/* ----------------------------------------------------------------
   2. 現代化表單樣式 (Modern Form Styles)
   ---------------------------------------------------------------- */
.inquiry-form {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #FFF;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
}

/* 頂部提示與電話 */
.inquiry-form .reminder {
    background: #f4f6f9;
    border-left: 4px solid #C40003 ;
    padding: 15px 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.6;
    border-radius: 4px;
    font-size: 15px;
}

.tips .tel {
    color: var(--accent-color);
    font-weight: bold;
}
.tips .tel a {
    color: inherit;
    text-decoration: none;
}

/* 表單容器 */
.form-wrap {
    width: 100%;
    margin: 0 auto;
    font-size: 15px;
}

/* 表單群組 (移除舊版邊框，改用間距) */
.form-group {
    margin: 0 0 24px;
    border: 0;
    padding: 0;
    display: block;
}

/* 標籤樣式 (改為上方對齊) */
.form-group > label {
    display: block;
    float: none;
    padding: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.required:after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* 輸入框區域 */
.form-group > div {
    padding-left: 0;
}

/* 輸入框通用設定 */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-sizing: border-box;
    font-size: 16px; /* 防止 iOS 自動縮放 */
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* 聚焦效果 (UX 優化) */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #FFF;
    box-shadow: var(--focus-ring);
}

/* 電話欄位特殊佈局 (Flexbox) */
.form-group.phone .input-group {
    display: flex;
    gap: 10px;
    margin: 0;
}
.form-group.phone .input-group:after { display: none; } /* 清除舊版 clearfix */

.form-group.phone .input-box {
    float: none;
    padding: 0;
}
.form-group.phone .input-box.w1 { flex: 3; width: auto; }
.form-group.phone .input-box.w2 { flex: 1; width: auto; }

/* 底部說明文字 */
.tips {
    margin-top: 10px;
    color: #888;
    font-size: 14px;
}

/* ----------------------------------------------------------------
   按鈕區域 (修改為深紅色版本)
   ---------------------------------------------------------------- */
.form-wrap .btn-box {
    border: 0;
    padding: 30px 0 10px;
    margin: 0;
    text-align: center;
}

.form-wrap .btn-box .btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    /* 修改這裡：深紅色漸層 (從 鮮紅 過渡到 暗紅) */
    background: linear-gradient(135deg, #D32F2F 0%, #8B0000 100%);
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    /* 修改這裡：紅色系陰影 */
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-wrap .btn-box .btn:hover {
    transform: translateY(-2px);
    /* 修改這裡：Hover 時加深陰影 */
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
    /* 選擇性：Hover 時稍微變亮一點點以增加互動感 */
    filter: brightness(1.1);
}

.form-wrap .btn-box .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
}

/* 驗證碼/Captcha (如果有的話) */
.form-group > .captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group > .captcha input {
    width: 50%;
}
.form-group > .captcha a img {
    vertical-align: middle;
    border-radius: 4px;
}
.grecaptcha-badge { display: none; }

/* ----------------------------------------------------------------
   3. 聯絡資訊與 LINE 區塊 (保留原有邏輯以免跑版)
   ---------------------------------------------------------------- */
.contact-box {
    border-top: 1px solid #ddd;
    text-align: center;
    max-width: 966px;
    margin: 50px auto 0;
    padding-top: 30px;
}
.contact-box ul li {
    position: relative;
    text-align: left;
    padding: 0 16px 10px 120px;
    min-width: 270px;
    display: inline-block; /* 修正排列 */
    vertical-align: top;
}
.contact-box ul li + li {
    border-left: 1px dotted #ddd;
}
.contact-box ul li h3 {
    font-family: "Century Gothic", "微軟正黑體", sans-serif;
    font-size: 22px;
    color: #009f41;
    margin-bottom: 5px;
}
.contact-box ul li .icon {
    position: absolute;
    left: 14px;
    top: 0;
}

/* LINE Contact Box Styles */
.contact-line-box {
    background: #06C755;
    width: 600px;
    margin: 40px auto;
    text-align: center;
    box-sizing: border-box;
    padding: 30px 40px;
    border-radius: 10px; /* 微調圓角 */
}
.contact-line-box .contact-line-title {
    text-align: center;
    color: #FFF;
    font-size: 27px;
    font-weight: bold;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    margin-left: 27px;
    padding-bottom: 15px;
    margin-bottom: 0px;
}
.contact-line-box .contact-line-title:before {
    content: "";
    width: 32px;
    height: 32px;
    background: url(../images/line-icon.svg);
    position: absolute;
    left: -41px;
    top: 7px;
    background-repeat: no-repeat;
}
.contact-line-box .row {
    display: flex;
    position: relative;
    padding-top: 15px;
    padding-left: 30px;
    padding-right: 30px;
    justify-content: center; /* 置中 */
}
.contact-line-box .row:before {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    background: #FFF;
    left: 0;
    top: 0;
    opacity: 0.5;
}
.contact-line-box .first-sale,
.contact-line-box .after-sale {
    box-sizing: border-box;
    width: 50%;
    position: relative;
    transition: all .2s ease;
    top: 0px;
    padding: 0 10px;
}
.contact-line-box .first-sale:hover,
.contact-line-box .after-sale:hover {
    top: -5px;
    opacity: 0.9;
}
.contact-line-box .sale-title {
    font-size: 21px;
    font-weight: bold;
   
    margin-bottom: 5px;
}
.contact-line-box .sale-id {
    font-size: 20px;
    color: #FFF;
    line-height: 1;
}
.contact-line-box .cover {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    width: 100%; height: 100%;
    z-index: 30;
}
.contact-line-icon {
    left: calc(50% - 30px);
    top: 0;
}

/* ----------------------------------------------------------------
   4. RWD 響應式設計 (Media Queries)
   ---------------------------------------------------------------- */
@media screen and (max-width: 800px) {
    .contact-box ul li + li {
        border: 0;
        margin-top: 10px;
    }
}

@media screen and (max-width: 650px) {
    .inquiry-form {
        padding: 25px 20px;
        margin: 20px 15px;
    }
    
    .form-group.phone .input-group {
        flex-direction: column;
    }
    .form-group.phone .input-box.w1,
    .form-group.phone .input-box.w2 {
        width: 100%;
    }

    /* Line Box Mobile */
    .contact-line-box .contact-line-title {
        font-size: 20px;
        margin-left: 0;
        padding-top: 18px;
        padding-bottom: 5px;
    }
    .contact-line-box .contact-line-title:before {
        left: calc(50% - 16px);
        top: -16px;
    }
    .contact-line-box {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 350px;
    }
    .contact-line-box .row {
        flex-direction: column;
        align-items: center;
        padding-top: 25px;
    }
    .contact-line-box .first-sale,
    .contact-line-box .after-sale {
        width: 100%;
        max-width: 200px;
        padding: 0;
    }
    .contact-line-box .first-sale {
        margin-bottom: 30px;
    }
    .contact-line-box .sale-title,
    .contact-line-box .sale-id {
        font-size: 18px;
    }
}

@media screen and (max-width: 479px) {
    .contact-box ul li {
        display: block;
        min-width: 0;
        padding: 65px 0 10px 0;
        text-align: center;
    }
    .contact-box ul li .icon {
        position: static;
        margin: 0 auto 10px;
        display: block;
    }
    
    .form-wrap .btn-box .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================
   Success Page (Thank You Page) Styling
   ========================================= */

/* 覆寫部分設定，讓卡片更集中 */
.inquiry-form.success-card {
    text-align: center;
    max-width: 700px;
    padding: 60px 40px;
}

/* 1. 動態打勾圖示 (純CSS) */
.success-icon-wrap {
    margin-bottom: 30px;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: #06C755; /* 使用 LINE 綠色或成功綠 */
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 20px rgba(6, 199, 85, 0.3);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-icon::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 16px;
    width: 20px;
    height: 40px;
    border: solid #FFF;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
}

/* 2. 文字排版優化 */
.success-title {
    font-size: 28px;
    color: var(--primary-color, #B061DF); /* 沿用主色 */
    margin: 0 0 20px;
    font-weight: bold;
}

.success-body {
    margin-bottom: 40px;
}

.success-body .main-msg {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.success-body .sub-msg {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.success-body strong {
    color: #D32F2F; /* 強調時間，使用您剛選的深紅色 */
}

/* 3. 聯絡電話區塊優化 */
.contact-quick-link {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px dashed #ccc;
}
.contact-quick-link p {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}
.tel-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.tel-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #FFF;
    border: 1px solid var(--accent-color, #666CDD);
    color: var(--accent-color, #666CDD);
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
}
.tel-btn:hover {
    background: var(--accent-color, #666CDD);
    color: #FFF;
}

/* 4. 返回首頁按鈕 */
.btn.btn-home {
    background: #8E8E8E; /* 次要按鈕使用灰色，避免搶走成功的視覺焦點 */
    max-width: 200px;
    font-size: 16px;
    padding: 12px;
}
.btn.btn-home:hover {
    background: #666;
}

/* 簡單的彈出動畫 */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* RWD 調整 */
@media screen and (max-width: 600px) {
    .inquiry-form.success-card {
        padding: 40px 20px;
    }
    .tel-buttons {
        flex-direction: column;
    }
    .tel-btn {
        width: 100%;
        text-align: center;
    }
}
/* =========================================
   Success Page 追加（2026-09-20）
   5. LINE 快速聯繫  6. 等候期間的延伸閱讀
   ========================================= */
.contact-quick-link .line-quick {
    margin-top: 12px;
}
.line-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #06C755;
    border: 1px solid #06C755;
    color: #FFF;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
}
.line-btn:hover {
    background: #05A847;
    border-color: #05A847;
    color: #FFF;
}

.success-next {
    text-align: left;
    margin-bottom: 30px;
}
.success-next-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin: 0 0 14px;
}
.success-next-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.success-next-list li {
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: var(--radius, 8px);
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.success-next-list li:hover {
    border-color: var(--accent-color, #666CDD);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.success-next-list a {
    display: block;
    color: var(--accent-color, #666CDD);
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none;
}
.success-next-list span {
    display: block;
    color: var(--text-light, #666666);
    font-size: 13px;
    margin-top: 4px;
}

@media screen and (max-width: 600px) {
    .line-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    .success-next-list a {
        font-size: 14px;
    }
}

/* =========================================
   詢價頁版面（2026-09-21）
   全部掛在 .ns-inq 底下，不影響 inquiry-ok.php 的成功卡片
   ========================================= */
.ns-inq {
    --primary-color: #b30a11;
    --accent-color: #b30a11;
    --focus-ring: 0 0 0 3px rgba(179, 10, 17, 0.15);
    padding: 0 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
}

/* 標題與引言 */
.ns-inq-head {
    margin: 36px 0 28px;
    max-width: 880px;
}
.ns-inq-head h1 {
    position: relative;
    margin: 0 0 16px;
    padding-left: 16px;
    font-size: 30px;
    line-height: 1.4;
    color: #222;
}
.ns-inq-head h1:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 5px;
    border-radius: 3px;
    background: #b30a11;
}
.ns-inq-head p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}
.ns-inq-head a,
.ns-inq-privacy a {
    color: #b30a11;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ns-inq-head a:hover,
.ns-inq-privacy a:hover {
    color: #8a0810;
}

/* 兩欄：表單＋側欄 */
.ns-inq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}
.ns-inq .inquiry-form {
    max-width: none;
    margin: 0;
    padding: 36px 40px 32px;
    border: 1px solid #eee;
    border-top: 4px solid #b30a11;
}
.ns-inq-formtitle {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: bold;
    color: #222;
}
.ns-inq-formnote {
    margin: 0 0 26px;
    font-size: 14px;
    color: #777;
}
.ns-inq-star {
    color: #e74c3c;
    font-weight: bold;
}
.ns-inq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.ns-inq .form-group {
    margin-bottom: 22px;
}
.ns-inq .form-group > label {
    font-size: 15px;
}
.ns-inq .form-group.phone .input-box.w1 { flex: 1 1 auto; min-width: 0; }
.ns-inq .form-group.phone .input-box.w2 { flex: 0 0 84px; }
.ns-inq .form-group .tips {
    margin: -2px 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #777;
}
.ns-inq .form-group textarea {
    min-height: 170px;
    line-height: 1.7;
}
.ns-inq ::placeholder {
    color: #aaa;
}
.ns-inq .form-wrap .btn-box {
    padding: 8px 0 0;
}
.ns-inq .form-wrap .btn-box .btn {
    max-width: 100%;
    border-radius: 8px;
    background: #b30a11;
    box-shadow: 0 4px 14px rgba(179, 10, 17, 0.25);
    letter-spacing: 2px;
}
.ns-inq .form-wrap .btn-box .btn:hover {
    background: #8a0810;
    filter: none;
}
.ns-inq .form-wrap .btn-box .btn:focus-visible {
    outline: 3px solid rgba(179, 10, 17, 0.35);
    outline-offset: 3px;
}
.ns-inq .form-wrap .btn-box .btn[disabled] {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}
.ns-inq-privacy {
    margin: 14px 0 0;
    font-size: 13px;
    color: #888;
}

/* 側欄卡片 */
.ns-inq-side {
    display: grid;
    gap: 20px;
}
.ns-inq-card {
    padding: 24px 24px 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}
.ns-inq-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: bold;
    color: #222;
}
.ns-inq-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: nsinq;
}
.ns-inq-steps li {
    position: relative;
    counter-increment: nsinq;
    padding: 0 0 18px 44px;
}
.ns-inq-steps li:last-child {
    padding-bottom: 0;
}
.ns-inq-steps li:before {
    content: counter(nsinq);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #b30a11;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 30px;
    text-align: center;
}
.ns-inq-steps li:after {
    content: "";
    position: absolute;
    left: 14px;
    top: 34px;
    bottom: 4px;
    width: 2px;
    background: #f0d5d6;
}
.ns-inq-steps li:last-child:after {
    display: none;
}
.ns-inq-steps strong {
    display: block;
    font-size: 16px;
    line-height: 30px;
    color: #333;
}
.ns-inq-steps span {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}
.ns-inq-tel {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ns-inq-tel li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e5e5;
}
.ns-inq-tel li:first-child {
    padding-top: 0;
}
.ns-inq-tel span {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 20px;
    background: #fbeeee;
    color: #b30a11;
    font-size: 13px;
    font-weight: bold;
}
.ns-inq-tel a {
    color: #222;
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.ns-inq-tel a:hover {
    color: #b30a11;
}
.ns-inq-hours {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #777;
}
.ns-inq-line {
    border-top: 4px solid #06C755;
}
.ns-inq-line-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ns-inq-line-row a {
    display: block;
    padding: 12px 8px;
    border: 1px solid #e3f5ea;
    border-radius: 10px;
    background: #f4fbf7;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ns-inq-line-row a:hover {
    border-color: #06C755;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.18);
}
.ns-inq-line-row img {
    display: block;
    width: 100%;
    max-width: 120px;
    height: auto;
    margin: 0 auto 8px;
    border-radius: 6px;
}
.ns-inq-line-row strong {
    display: block;
    font-size: 15px;
    color: #222;
}
.ns-inq-line-row span {
    display: block;
    font-size: 13px;
    color: #06903f;
    word-break: break-all;
}

@media screen and (max-width: 1240px) {
    .ns-inq {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media screen and (max-width: 991px) {
    .ns-inq-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .ns-inq-side {
        grid-template-columns: 1fr 1fr;
    }
    .ns-inq-line {
        grid-column: 1 / -1;
    }
    .ns-inq-line-row {
        max-width: 360px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 650px) {
    .ns-inq {
        padding: 0 15px 40px;
    }
    .ns-inq-head {
        margin: 24px 0 20px;
    }
    .ns-inq-head h1 {
        font-size: 23px;
    }
    .ns-inq-head p {
        font-size: 15px;
    }
    .ns-inq .inquiry-form {
        margin: 0;
        padding: 26px 18px 24px;
    }
    .ns-inq-row,
    .ns-inq-side {
        grid-template-columns: minmax(0, 1fr);
    }
    /* 電話＋分機維持同一列（舊規則在手機改直排，分機會佔一整列） */
    .ns-inq .form-group.phone .input-group {
        flex-direction: row;
    }
    .ns-inq-card {
        padding: 20px 18px;
    }
}
