/* ========== Scroll Reveal ========== */
.contact-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.contact-reveal-delay-1 { transition-delay: 0.1s; }
.contact-reveal-delay-2 { transition-delay: 0.2s; }
.contact-reveal-delay-3 { transition-delay: 0.3s; }
.contact-reveal-delay-4 { transition-delay: 0.4s; }

/* ========== Hero ========== */
.contact-hero {
    position: relative;
    margin-top: var(--header-height);
    min-height: 480px;
    height: calc(65vh - var(--header-height));
    max-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.contact-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: contactHeroZoom 12s ease-out forwards;
}

@keyframes contactHeroZoom {
    to { transform: scale(1); }
}

.contact-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(30, 48, 40, 0.82) 0%,
        rgba(45, 70, 57, 0.55) 42%,
        rgba(45, 70, 57, 0.2) 70%,
        rgba(45, 70, 57, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: contactOverlayShift 10s ease infinite;
}

@keyframes contactOverlayShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-hero__inner {
    max-width: 560px;
}

.contact-hero__title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
    opacity: 0;
    transform: translateX(-30px);
    animation: contactHeroIn 1s ease 0.2s forwards;
}

.contact-hero__subtitle {
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 16px;
    opacity: 0;
    transform: translateX(-24px);
    animation: contactHeroIn 1s ease 0.4s forwards;
}

.contact-hero__desc {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    margin: 0 0 32px;
    max-width: 440px;
    opacity: 0;
    transform: translateX(-24px);
    animation: contactHeroIn 1s ease 0.55s forwards;
}

.contact-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(45, 70, 57, 0.6) 0%, rgba(45, 70, 57, 0.3) 50%, rgba(45, 70, 57, 0.5) 100%);
    background-size: 200% 200%;
    animation: contactHeroBtnIn 0.8s ease 0.75s forwards, gradientShift 5s ease infinite;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.contact-hero__btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-hero__btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
}

@keyframes contactHeroIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes contactHeroBtnIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Contact Information ========== */
.contact-info {
    padding: 72px 0 80px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 70, 57, 0.1), transparent);
}

.contact-info::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 40%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(196, 162, 101, 0.06) 0%, transparent 65%);
    pointer-events: none;
    animation: contactInfoGlow 9s ease-in-out infinite alternate;
}

@keyframes contactInfoGlow {
    0% { transform: translate(0, 0); opacity: 0.5; }
    100% { transform: translate(-8%, 5%); opacity: 1; }
}

.contact-info__header {
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.contact-info__title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0 0 16px;
}

.contact-info__title-zh {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    margin-left: 12px;
}

.contact-info__title-line {
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold), transparent);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.contact-info__header.revealed .contact-info__title-line {
    width: 120px;
}

.contact-info__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

.contact-info-card {
    text-align: center;
    padding: 24px 20px;
    position: relative;
    transition: var(--transition);
}

.contact-info-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, transparent, rgba(45, 70, 57, 0.15), transparent);
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card.revealed:not(:last-child)::after {
    height: 80%;
}

.contact-info-card:hover {
    background: rgba(45, 70, 57, 0.03);
}

.contact-info-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-info-card__icon svg {
    width: 100%;
    height: 100%;
}

.contact-info-card:hover .contact-info-card__icon {
    color: var(--accent-gold);
    transform: scale(1.08);
}

.contact-info-card__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 12px;
    line-height: 1.4;
}

.contact-info-card__label span {
    font-weight: 300;
    color: var(--text-muted);
}

.contact-info-card__value {
    display: block;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.contact-info-card__value:hover {
    color: var(--accent-gold);
}

.contact-info-card__note {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.contact-info-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 8px;
    transition: var(--transition);
}

.contact-info-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 70, 57, 0.25);
    color: #fff;
}

.contact-info-card__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(45, 70, 57, 0.25);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: Georgia, serif;
    transition: var(--transition);
}

.contact-social-link svg {
    width: 18px;
    height: 18px;
}

.contact-social-link:hover {
    border-color: var(--accent-gold);
    background: rgba(196, 162, 101, 0.1);
    color: var(--accent-gold);
    transform: translateY(-3px);
}

/* ========== Our Location ========== */
.contact-location {
    padding: 72px 0 80px;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-color) 45%, var(--primary-light) 70%, var(--primary-color) 100%);
    background-size: 200% 200%;
    animation: contactLocationGradient 14s ease infinite;
    position: relative;
    overflow: hidden;
}

.contact-location::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 45%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(196, 162, 101, 0.08) 0%, transparent 65%);
    pointer-events: none;
    animation: contactInfoGlow 9s ease-in-out infinite alternate;
}

@keyframes contactLocationGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-location__title {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 40px;
    position: relative;
    z-index: 1;
}

.contact-location__title-zh {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    margin-left: 12px;
}

.contact-location__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.contact-location__block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-location__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--accent-gold);
}

.contact-location__icon svg {
    width: 100%;
    height: 100%;
}

.contact-location__text {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.contact-location__text p {
    margin: 0 0 4px;
}

.contact-location__name {
    font-weight: 500;
    color: #fff !important;
    margin-bottom: 8px !important;
}

.contact-location__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(196, 162, 101, 0.4), transparent);
    margin: 28px 0;
}

.contact-location__map-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.15);
    min-height: 320px;
    transition: var(--transition);
}

.contact-location__map-wrap:hover {
    border-color: rgba(196, 162, 101, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.contact-location__map {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

/* ========== Enquiry Form ========== */
.contact-form-section {
    padding: 80px 0 90px;
    background: #fff;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 70, 57, 0.1), transparent);
}

.contact-form-section__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form-section__title {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0 0 32px;
}

.contact-form-section__title-zh {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    margin-left: 12px;
}

.contact-form__row {
    margin-bottom: 20px;
}

.contact-form__row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-form__label .required {
    color: #c55050;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 300;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid rgba(45, 70, 57, 0.2);
    border-radius: 6px;
    transition: var(--transition);
    box-sizing: border-box;
    height: auto;
    line-height: 1.5;
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: rgba(45, 70, 57, 0.4);
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 70, 57, 0.1);
}

.contact-form__field .layui-form-select dl {
    border-color: rgba(45, 70, 57, 0.15);
    border-radius: 6px;
    top: 46px;
}

.contact-form__field .layui-form-select dl dd.layui-this {
    background-color: var(--primary-color);
}

.contact-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.contact-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
}

.contact-form__checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.contact-form__checkbox a:hover {
    color: var(--accent-gold);
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Noto Sans SC', sans-serif;
}

.contact-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 70, 57, 0.35);
}

.contact-form-section__visual {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

/* 預約推廣卡片 */
.contact-appt-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-end;
    transition: transform 0.6s ease, box-shadow 0.4s ease;
}

.contact-form-section__visual:hover .contact-appt-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(45, 70, 57, 0.2);
}

.contact-appt-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.contact-form-section__visual:hover .contact-appt-card__bg {
    transform: scale(1.05);
}

.contact-appt-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(30, 48, 40, 0.65) 100%,
        rgba(30, 48, 40, 0.75) 75%,
        rgba(30, 48, 40, 0.98) 85%
    );
    pointer-events: none;
}

.contact-appt-card__content {
    position: relative;
    z-index: 1;
    padding: 32px 28px;
    color: #fff;
    width: 100%;
}

.contact-appt-card__tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(196, 162, 101, 0.9);
    border-radius: 50px;
    margin-bottom: 16px;
}

.contact-appt-card__title {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 12px;
    color: #fff;
}

.contact-appt-card__desc {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 18px;
}

.contact-appt-card__features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-appt-card__features li {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    padding-left: 18px;
    position: relative;
}

.contact-appt-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold, #c4a265);
}

.contact-appt-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--primary-color, #2D4639);
    background: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-appt-card__btn:hover {
    background: var(--accent-gold, #c4a265);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    cursor: pointer;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .contact-info__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .contact-info-card:nth-child(2)::after {
        display: none;
    }

    .contact-info-card {
        padding: 32px 24px;
        border-bottom: 1px solid rgba(45, 70, 57, 0.1);
    }

    .contact-info-card:nth-child(3),
    .contact-info-card:nth-child(4) {
        border-bottom: none;
    }

    .contact-location__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-form-section__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-section__visual {
        order: -1;
        position: relative;
        top: auto;
    }

    .contact-appt-card {
        aspect-ratio: 16 / 9;
        max-height: 380px;
    }

    .contact-appt-card__content {
        padding: 28px 24px;
    }
}

@media (max-width: 900px) {
    .contact-hero {
        min-height: 420px;
        height: 58vh;
        max-height: none;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        min-height: 380px;
        height: 55vh;
    }

    .contact-hero__inner {
        max-width: 100%;
    }

    .contact-hero__btn {
        width: 100%;
        justify-content: center;
    }

    .contact-info {
        padding: 56px 0 64px;
    }

    .contact-info__title-zh {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .contact-info__grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card::after {
        display: none !important;
    }

    .contact-info-card {
        border-bottom: 1px solid rgba(45, 70, 57, 0.1);
        padding: 28px 16px;
    }

    .contact-info-card:last-child {
        border-bottom: none;
    }

    .contact-location {
        padding: 56px 0 64px;
    }

    .contact-location__title-zh {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .contact-form-section {
        padding: 56px 0 64px;
    }

    .contact-form__row--2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form__submit {
        width: 100%;
    }

    .contact-form-section__title-zh {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .contact-appt-card {
        aspect-ratio: auto;
        min-height: 320px;
        max-height: none;
    }

    .contact-appt-card__content {
        padding: 24px 20px;
    }

    .contact-appt-card__features {
        margin-bottom: 20px;
    }

    .contact-hero__subtitle{
        font-size: 21px;
        margin-bottom: 0px;
    }

    .contact-hero__title{
        margin-bottom: 5px;
    }

    .contact-hero__btn{
        padding: 10px 20px; max-width: 82%; margin: 0 auto;
    }

    .contact-hero__inner{
        text-align: center;
    }

    .contact-appt-card__desc{
        font-size: 0.78rem;
    }

    .contact-appt-card__title{
        font-size: 20px;
    }

    .contact-form-section__title,.contact-reveal.revealed{
        text-align: center;
    }

    .contact-location__text,.contact-form__label{
        text-align: left;
    }

    .contact-hero__desc{
        font-size: 13px;
    }

    .contact-form__field{
        margin-bottom: 18px;
    }

    .contact-appt-card__features li{
        text-align: left;
    }





}
