﻿@charset "UTF-8";


/* ============================================================
   頁面主標題 (與 about 頁面同風格 - 高度 200px)
   ============================================================ */
.s39-contact-hero {
    background: linear-gradient(135deg, #3a8fd4 0%, #6bb0e8 100%);
    color: white;
    padding: 0;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.s39-contact-hero::after {
    
    font-size: 160px;
    opacity: 0.06;
    position: absolute;
    right: -10px;
    bottom: -20px;
    transform: rotate(12deg);
}

.s39-contact-hero .s39-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.s39-contact-hero .s39-hero-text {
    flex: 1 1 50%;
}

.s39-contact-hero .s39-hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.s39-contact-hero .s39-breadcrumb {
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
}

.s39-contact-hero .s39-breadcrumb a {
    color: #ffe484;
    text-decoration: none;
    transition: color 0.2s;
}

.s39-contact-hero .s39-breadcrumb a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.s39-contact-hero .s39-hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.s39-contact-hero .s39-hero-image img {
    max-width: 85%;
    height: auto;
    max-height: 210px;
    display: block;
    background: transparent;
    margin: 0 auto;
}

/* ===== 響應式 (與 about.html 一致) ===== */
@media (max-width: 992px) {
    .s39-contact-hero {
        height: 180px;
    }
    .s39-contact-hero .s39-hero-text h1 {
        font-size: 36px;
    }
    .s39-contact-hero .s39-breadcrumb {
        font-size: 18px;
    }
    .s39-contact-hero .s39-hero-image {
        flex: 1 1 100%;
        text-align: center;
    }
    .s39-contact-hero .s39-hero-image img {
        max-width: 55%;
        max-height: 120px;
        transform: none;
    }
    .s39-contact-hero .s39-hero-text {
        transform: translateY(-30px);
    }
}

@media (max-width: 768px) {
    .s39-contact-hero {
        height: 170px;
    }
    .s39-contact-hero .s39-hero-text h1 {
        font-size: 30px;
    }
    .s39-contact-hero .s39-breadcrumb {
        font-size: 16px;
    }
    .s39-contact-hero .s39-hero-image img {
        max-width: 65%;
        max-height: 150px;
        transform: translate(60px, -30px);
    }
    .s39-contact-hero .s39-hero-text {
        transform: translateY(30px);
    }
}

@media (max-width: 480px) {
    .s39-contact-hero {
        height: 140px;
    }
    .s39-contact-hero .s39-hero-text h1 {
        font-size: 24px;
    }
    .s39-contact-hero .s39-breadcrumb {
        font-size: 14px;
    }
    .s39-contact-hero .s39-hero-image img {
        max-width: 58%;
        max-height: 110px;
        transform: translate(60px, -30px);
    }
    .s39-contact-hero .s39-hero-text {
        transform: translateY(30px);
    }
}

/* ============================================================
   區塊標題 (與 about.html 一致 - 文字加大)
   ============================================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2C6FA0;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    width: 22px;
    height: 2px;
    background: #6FB6E8;
    display: inline-block;
}

.heading-lg {
    font-size: 38px;
    font-weight: 700;
    color: #1a5a96;
    margin-bottom: 6px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .heading-lg {
        font-size: 44px;
    }
}

.section-intro {
    max-width: 680px;
    margin: 0 auto;
    color: #64727E;
    font-size: 1.2rem;
    line-height: 1.8;
}

.section-head {
    margin-bottom: 2.25rem;
}

.section-head.center {
    text-align: center;
}

.section-head.center .section-label {
    justify-content: center;
}

/* ============================================================
   聯絡主區塊 (page21 專屬)
   ============================================================ */
:root {
    --primary-950: #0B1E30;
    --primary-900: #123351;
    --primary-800: #17466C;
    --primary-700: #1D5580;
    --primary-600: #2C6FA0;
    --primary-500: #4A8BBE;
    --primary-100: #DCEBF6;
    --primary-50: #F0F7FC;
    --accent-500: #6FB6E8;
    --accent-400: #8FC6EC;
    --accent-300: #B7DCF3;
    --background-50: #FAFBFD;
    --background-100: #F2F6FA;
    --background-200: #E2EBF3;
    --foreground-950: #16202B;
    --foreground-800: #2B3947;
    --foreground-700: #45535F;
    --foreground-600: #64727E;
    --foreground-500: #8493A0;
    --font-heading: 'Noto Serif TC', 'Noto Sans TC', serif;
    --font-body: 'Noto Sans TC', 'Inter', system-ui, sans-serif;
    --radius-lg: 0.9rem;
    --radius-full: 9999px;
    --shadow-soft: 0 4px 20px rgba(11, 30, 48, 0.08);
}

.max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5.5rem 0;
    }
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 767px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* -- 左側：聯絡資訊 + 地圖 -- */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--background-50);
    border: 1px solid var(--background-200);
    transition: all .25s;
    text-decoration: none;
    color: inherit;
}

.info-row:hover {
    border-color: var(--accent-500);
    box-shadow: var(--shadow-soft);
}

.info-row .icon {
    width: 44px;
    height: 44px;
    border-radius: .7rem;
    background: var(--primary-50);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.info-row .label {
    font-size: 0.9rem;
    color: var(--foreground-500);
    margin-bottom: .15rem;
}

.info-row .value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--foreground-950);
}

.info-row .sub {
    font-size: 1rem;
    color: var(--foreground-500);
    margin-top: .2rem;
}

.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--background-200);
    box-shadow: var(--shadow-soft);
}

.map-frame iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

@media (min-width: 768px) {
    .map-frame iframe {
        height: 360px;
    }
}

.service-area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}

.area-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border-radius: var(--radius-full);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    font-size: 0.9rem;
    color: var(--primary-700);
}

.area-chip i {
    color: var(--accent-500);
    font-size: .7rem;
}

/* -- 右側：線上詢價表單 -- */
.quote-card {
    background: #fff;
    border: 1px solid var(--background-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
}

@media (min-width: 768px) {
    .quote-card {
        padding: 2.25rem;
    }
}

.quote-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a5a96;
    margin-bottom: .4rem;
}

@media (min-width: 768px) {
    .quote-card h2 {
        font-size: 38px;
    }
}

.quote-card .sub {
    font-size: 1.15rem;
    color: var(--foreground-600);
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 640px) {
    .form-grid.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.field label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--foreground-800);
    margin-bottom: .5rem;
}

.field label .req {
    color: var(--primary-600);
    margin-left: .2rem;
}

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: .6rem;
    border: 1.5px solid var(--background-200);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--foreground-800);
    background: var(--background-50);
    transition: border-color .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

/* -- 服務內容：圓點可選 radio -- */
.service-choice {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.service-radio {
    position: relative;
}

.service-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.service-radio label {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1.3rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--background-200);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--foreground-700);
    transition: all .2s;
    background: var(--background-50);
}

.service-radio .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--background-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
    background: #fff;
}

.service-radio .dot::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-600);
    opacity: 0;
    transform: scale(.4);
    transition: all .2s;
}

.service-radio input:checked ~ label {
    border-color: var(--primary-600);
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 700;
}

.service-radio input:checked ~ label .dot {
    border-color: var(--primary-600);
}

.service-radio input:checked ~ label .dot::after {
    opacity: 1;
    transform: scale(1);
}

/* -- 按鈕 -- */
.s39-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2b7bc9;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.s39-btn-primary:hover {
    background: #1a5a96;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(43, 123, 201, 0.30);
}

/* -- 驗證碼 -- */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.captcha-wrapper input[type="text"] {
    flex: 1 1 90px;
    min-width: 70px;
    max-width: 150px;
}

.captcha-wrapper .captcha-img-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 90px;
    border: 1.5px solid var(--background-200);
    border-radius: 0.6rem;
    background: #fff;
    padding: 0 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.captcha-wrapper .captcha-img-box img {
    height: 24px;
    width: auto;
    display: block;
    cursor: pointer;
}

.form-note {
    font-size: 1.05rem;
    color: var(--foreground-500);
    margin-top: .35rem;
    line-height: 1.8;
}

.form-success {
    display: none;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1.1rem;
    border-radius: .7rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: var(--primary-700);
    font-size: .85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.form-success.show {
    display: flex;
}

.form-submit {
    margin-top: 1.25rem;
}

/* -- 為什麼選擇 -- */
.trust-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .trust-cards {
        grid-template-columns: 1fr;
    }
}

.trust-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--background-50);
    border: 1px solid var(--background-200);
}

.trust-card i {
    color: var(--primary-600);
    font-size: 1.6rem;
    margin-bottom: .85rem;
    display: block;
}

.trust-card h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
    color: var(--foreground-950);
}

.trust-card p {
    font-size: 1.05rem;
    color: var(--foreground-600);
    line-height: 1.8;
}

/* ============================================================
   響應式設計 (RWD)
   ============================================================ */

/* ----- 平板 (max-width: 992px) ----- */
@media (max-width: 992px) {
    .s39-contact-hero {
        height: 180px;
    }
    .s39-contact-hero .s39-hero-text h1 {
        font-size: 36px;
    }
    .s39-contact-hero .s39-breadcrumb {
        font-size: 18px;
    }
    .s39-contact-hero .s39-hero-image {
        flex: 1 1 100%;
        text-align: center;
    }
    .s39-contact-hero .s39-hero-image img {
        max-width: 55%;
        max-height: 120px;
        transform: none;
    }
    .s39-contact-hero .s39-hero-text {
        transform: translateY(-30px);
    }
}

/* ----- 手機 (max-width: 768px) ----- */
@media (max-width: 768px) {
    .s39-contact-hero {
        height: 170px;
    }
    .s39-contact-hero .s39-hero-text h1 {
        font-size: 30px;
    }
    .s39-contact-hero .s39-breadcrumb {
        font-size: 16px;
    }
    .s39-contact-hero .s39-hero-image img {
        max-width: 65%;
        max-height: 150px;
        transform: translate(60px, -30px);
    }
    .s39-contact-hero .s39-hero-text {
        transform: translateY(30px);
    }

    .heading-lg {
        font-size: 30px;
    }
    .quote-card h2 {
        font-size: 28px;
    }
    .section {
        padding: 2.5rem 0;
    }
    .contact-main-grid {
        gap: 1.5rem;
    }
    .quote-card {
        padding: 1.25rem;
    }
    .info-row .value {
        font-size: 1.15rem;
    }
    .info-row .sub {
        font-size: 0.9rem;
    }
}

/* ----- 小手機 (max-width: 480px) ----- */
@media (max-width: 480px) {
    .s39-contact-hero {
        height: 140px;
    }
    .s39-contact-hero .s39-hero-text h1 {
        font-size: 24px;
    }
    .s39-contact-hero .s39-breadcrumb {
        font-size: 14px;
    }
    .s39-contact-hero .s39-hero-image img {
        max-width: 58%;
        max-height: 110px;
        transform: translate(60px, -30px);
    }
    .s39-contact-hero .s39-hero-text {
        transform: translateY(30px);
    }

    .heading-lg {
        font-size: 24px;
    }
    .quote-card h2 {
        font-size: 22px;
    }
    .info-row .value {
        font-size: 1rem;
    }
    .section {
        padding: 1.8rem 0;
    }
    .quote-card {
        padding: 1rem;
    }
    .service-radio label {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
    .field input,
    .field select,
    .field textarea {
        font-size: 0.95rem;
        padding: 0.7rem 0.8rem;
    }
    .s39-btn-primary {
        font-size: 17px;
        padding: 12px 24px;
    }
}


@media (max-width: 768px) {
    .footer-spacer {
        margin-bottom: 55px;
    }
}


@media (max-width: 768px) {
    .footer-spacer {
        margin-bottom: 55px;
    }
}

/* ===== 縮減表單與 Footer 之間的空白間距 ===== */
.section:last-of-type {
    padding-bottom: 0.5rem !important;
}
@media (min-width: 768px) {
    .section:last-of-type {
        padding-bottom: 1rem !important;
    }
}
.s39-footer {
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
}
.section {
    padding-bottom: 1rem !important;
}
@media (min-width: 768px) {
    .section {
        padding-bottom: 1.5rem !important;
    }
}
.max-w-7xl {
    padding-bottom: 0 !important;
}
#quote {
    padding-bottom: 0.5rem !important;
}

/* ===== 錯誤訊息樣式 ===== */
.botry-ct-invalid {
    border-color: #b83050 !important;
    background: #fff0f4 !important;
}