html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
}

.section {
    padding: 100px 0;
}

/* 讓聯繫表單錨點在有固定導航時保持舒適位置 */
#contactForm {
    scroll-margin-top: 170px;
}

/* Eyebrow Text */
.contact-hero .hero-content>span {
    color: var(--secondary-green);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* Hero Section */
.contact-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: #f6f7fa;
}

.hero-layout {
    display: block;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #101828;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #475467;
    font-weight: 400;
}

.hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 0px 4px rgba(15, 43, 61, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* background: linear-gradient(90deg, #CB2320, #00885c); */
    opacity: 1;
}

.hero-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #101828;
    letter-spacing: -0.3px;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.hero-card li {
    margin-bottom: 16px;
    color: #344054;
    font-size: 16px;
    line-height: 1.7;
}

.hero-card li strong {
    color: #101828;
    font-weight: 600;
    margin-right: 8px;
}

.hero-card a {
    color: #0a5da3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-card a:hover {
    color: #00885c;
}

.hero-note {
    font-size: 14px;
    color: #6b7280;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form {
    background: #ffffff;
    padding: 100px 0;
}

.contact-form .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: flex-start;
}

.form-copy {
    padding-top: 0;
}

.form-copy>span {
    color: var(--secondary-green);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.form-copy h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 16px 0 20px;
    color: #101828;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.form-copy p {
    color: #475467;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.form-copy .hero-card {
    margin-top: 40px;
}

/* Layui Form Styles */
.contact-card {
    background: #fff;
    color: #101828;
    border-radius: 24px;
    padding: 40px 25px;
    box-shadow: 0 2px 4px rgba(15, 43, 61, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card .layui-form-item {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.contact-card .layui-form-label {
    width: 140px;
    font-weight: 600;
    color: #101828;
    font-size: 15px;
    padding: 0;
    text-align: left;
}

.contact-card .layui-input-block {
    margin-left: 0;
    flex: 1;
    width: 100%;
}

.contact-card .required {
    color: #d22027;
    margin-left: 4px;
}

.contact-card .layui-input,
.contact-card .layui-select,
.contact-card .layui-textarea {
    border: 1px solid #d4d7e2;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
    color: #101828;
}

.contact-card .layui-input:focus,
.contact-card .layui-select:focus,
.contact-card .layui-textarea:focus {
    border-color: #00885c;
    box-shadow: 0 0 0 3px rgba(0, 136, 92, 0.1);
    outline: none;
}

.contact-card .layui-select {
    height: 44px;
    line-height: 44px;
}

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

.contact-card .layui-form-item.layui-form-text .layui-input-block {
    margin-left: 0;
    flex: 1;
    width: 100%;
}

.form-actions {
    margin-top: 8px;
}

.form-actions .layui-input-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card .layui-btn {
    height: 48px;
    line-height: 48px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
}

.contact-card .layui-btn:hover {
    opacity: 0.9;
}

.contact-card .btn-primary {
    background: #CB2320;
    color: #fff;
}

.contact-card .btn-primary:hover {
    background: var(--secondary-green);
}

.form-actions p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 10px;
}

.cta-note {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 500;
    color: #00885c;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-layout {
        gap: 48px;
    }
}

@media (max-width: 992px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }

    .contact-hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .form-copy h2 {
        font-size: 40px;
    }

    .contact-card {
        padding: 32px;
    }

    .contact-card .layui-form-label {
        width: 120px;
    }

    .contact-card .layui-input-block {
        margin-left: 120px;
    }

    .contact-card .layui-form-item.layui-form-text .layui-input-block {
        margin-left: 120px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .contact-hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-card {
        padding: 30px 20px;
    }

    .hero-card h3{
        font-size: 20px;
    }

    .hero-card li{
        font-size: 15px;
    }
    .form-copy p{
        font-size: 14px;
        padding-top: 15px;
    }

    .form-copy h2 {
        font-size: 28px;
    }

    .contact-card {
        padding: 30px 20px 15px 20px;
    }

    .contact-card .layui-form-label {
        width: 100%;
        text-align: left;
        padding: 8px 0;
    }

    .contact-card .layui-input-block {
        margin-left: 0;
    }

    .contact-card .layui-form-item.layui-form-text .layui-input-block {
        margin-left: 0;
    }

    .contact-card .layui-form-item{
        flex-direction: column;
    }
}