﻿:root {
    --lee-primary: #9E0028;
    --lee-dark: #2c2f3f;
    --lee-light: #f5f5f5;
    --lee-accent: #C4A472;
    --lee-gray: #6c757d;
}

/* 重置樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "微軟正黑體", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.6;
}

/* 頂部區域樣式 */
.lee-header {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area img {
    height: 40px;
    margin-right: 15px;
}

.slogan {
    font-size: 16px;
    color: var(--lee-gray);
    border-left: 1px solid #e0e0e0;
    padding-left: 15px;
    display: none;
}

@media (min-width: 768px) {
    .slogan {
        display: inline-block;
    }

    .logo-area img {
        height: 50px;
    }
}

.contact-info {
    font-size: 18px;
    font-weight: 500;
    color: var(--lee-primary);
}

.contact-info i {
    margin-right: 5px;
}

/* 主導航樣式 */
.main-navigation {
    background-color: var(--lee-primary);
    position: relative;
}

.menu-toggle {
    display: block;
    width: 100%;
    background: var(--lee-primary);
    color: white;
    border: none;
    padding: 12px 5%;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
}

.menu-toggle i {
    margin-right: 10px;
}

.menu-items {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--lee-primary);
    position: absolute;
    width: 100%;
    z-index: 100;
}

.menu-items.active {
    display: block;
}

.menu-items li {
    position: relative;
}

.menu-items li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.menu-items li a:hover,
.menu-items li a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.has-submenu>a:after {
    content: "\f107";
    /* Font Awesome 下箭頭 */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
}

.submenu {
    display: none;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding-left: 15px;
}

.submenu li a {
    padding: 10px 5%;
    font-size: 0.95em;
}

.has-submenu.active>.submenu {
    display: block;
}

/* 桌面版樣式 */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .menu-items {
        display: flex;
        position: static;
        padding: 0 4%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .menu-items li a {
        padding: 15px 20px;
        border-top: none;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background-color: var(--lee-dark);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 0;
        z-index: 101;
    }

    .submenu li {
        display: block;
    }

    .has-submenu:hover>.submenu {
        display: block;
    }
}

/* 現代化表單樣式 */
.modern-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--lee-light);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border-top: 3px solid var(--lee-primary);
}

    .form-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    }

.form-header {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--lee-border);
}

    .form-header:after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 8rem;
        height: 3px;
        background: var(--lee-primary);
    }

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

    .step-indicator:before {
        content: "";
        position: absolute;
        top: 15px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--lee-border);
        z-index: 1;
    }

.step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: var(--lee-secondary);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--lee-primary);
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(158, 0, 40, 0.3);
}

.step-title {
    font-size: 14px;
    color: var(--lee-secondary);
    font-weight: 500;
}

.step.active .step-title {
    color: var(--lee-primary);
    font-weight: 600;
}

.animated-button {
    background: linear-gradient(135deg, var(--lee-primary), #7D0021);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

    .animated-button:before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #7D0021, var(--lee-primary));
        transition: all 0.4s ease;
        z-index: -1;
    }

    .animated-button:hover:before {
        left: 0;
    }

    .animated-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 15px rgba(158, 0, 40, 0.3);
    }

.form-control {
    border: 1px solid var(--lee-border);
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--lee-primary);
        box-shadow: 0 0 0 3px rgba(158, 0, 40, 0.1);
    }

.form-label {
    font-weight: 500;
    color: var(--lee-dark);
    margin-bottom: 8px;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkbox-custom {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left:-1rem;
}

    .checkbox-custom input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        /* height: 0;
        width: 0; */
    }

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
    transform: translateY(-50%);
}

.checkbox-custom:hover .checkmark {
    background-color: #e9e9e9;
}

.checkbox-custom:has(input:checked) .checkmark {
    background-color: var(--lee-primary);
    border-color: var(--lee-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-custom:has(input:checked) .checkmark:after {
    display: block;
}

.checkbox-custom .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.session-card {
    border: 1px solid var(--lee-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .session-card:hover {
        border-color: var(--lee-primary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .session-card:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background: var(--lee-primary);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .session-card:hover:before {
        opacity: 1;
    }

.event-info-table {
    display: table;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1em;
    color: #333;
}

.event-info-row {
    display: table-row;
}

.event-info-label, .event-info-value {
    display: table-cell;
    padding: 0.2em 0.5em 0.2em 0;
    vertical-align: middle;
}

.event-info-label {
    color: #8a1538;
    font-weight: bold;
    min-width: 6em;
    text-align: right;
    white-space: nowrap;
}

/* .event-info-value {
    text-align: left;
} */

.map-link {
    color: #8a1538;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5em;
}

    .map-link:hover {
        text-decoration: underline;
    }

.session-date {
    color: var(--lee-primary);
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--lee-border);
    padding-bottom: 10px;
}

.session-time {
    font-size: 15px;
    color: var(--lee-accent);
    /* margin-bottom: 10px; */
}

.meal-options {
    background: #f9f9f9;
    border-left: 3px solid var(--lee-accent-light);
    padding: 15px;
    margin-top: 10px;
    border-radius: 0 6px 6px 0;
}

.session-speakers {
    font-size: 0.95em;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 6px;
}

.session-speakers strong {
    color: #8a1538;
}

/* .multi-line-row {
    display: table;
} */

.multi-line-label {
    display: table-cell;
    white-space: nowrap;
    vertical-align: top;
}

.multi-line-label strong {
    font-weight: bold;
    color: var(--lee-primary);
}

.multi-line-content {
    display: table-cell;
    vertical-align: top;
}

@media (max-width: 768px) {
    .multi-line-content {
        display: block;
        margin-left: 0;
        padding-left: 0;
    }
}

/* 服務板塊樣式 */
.services-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 28px;
    color: var(--lee-primary);
    position: relative;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: calc(25% - 30px);
    min-width: 250px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-title {
    padding: 20px 20px 10px;
    font-size: 18px;
    color: var(--lee-primary);
    margin: 0;
    text-align: center;
    font-weight: 600;
}

.service-desc {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .service-card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 767px) {
    .service-card {
        width: 100%;
        max-width: 400px;
    }

    .services-section {
        padding: 40px 15px;
    }
}

/* 頁尾整體樣式 */
.lee-footer {
    background-color: #282c3f;
    color: #fff;
    font-size: 14px;
}

/* 主要內容區域 */
.footer-main {
    padding: 50px 0 30px;
}

.footer-section {
    margin-bottom: 30px;
}

/* 標題樣式 - 修改為自適應底線長度 */
.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

    .footer-title:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
        background: #9E0028;
    }

/* 專業服務兩欄設計 */
.services-grid {
    display: flex;
    flex-wrap: wrap;
}

.services-column {
    flex: 1;
    min-width: 150px;
    padding-right: 15px;
}

/* 頁尾連結樣式 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        padding: 5px 0;
    }

    .footer-links a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--lee-primary, #9E0028);
        }

/* 聯繫資訊樣式 */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
        color: #ddd;
    }

    .footer-contact i {
        color: var(--lee-primary, #9E0028);
        margin-right: 10px;
        font-size: 16px;
        margin-top: 3px;
    }

/* 社交媒體連結 */
.social-links {
    display: flex;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #444;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

    .social-icon:hover {
        background: var(--lee-primary, #9E0028);
        color: #fff;
    }

/* 快速連結 - 修改為置中設計 */
.footer-quick-links {
    background: #232639;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-links-centered {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

    .quick-links-centered li {
        padding: 0 15px;
        position: relative;
    }

        .quick-links-centered li:after {
            content: '|';
            position: absolute;
            right: 0;
            top: 0;
            color: #555;
        }

        .quick-links-centered li:last-child:after {
            display: none;
        }

    .quick-links-centered a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s;
    }

        .quick-links-centered a:hover {
            color: var(--lee-primary, #9E0028);
        }

/* 事務所簡介區域 */
.footer-intro {
    background: rgba(0,0,0,0.1);
    padding: 30px 0;
}

    .footer-intro h4 {
        font-size: 16px;
        color: #ddd;
        margin-bottom: 10px;
    }

    .footer-intro p {
        color: #bbb;
        margin: 0;
        line-height: 1.6;
    }

/* 版權信息區域 */
.footer-copyright {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
}

    .footer-copyright p {
        margin: 0;
        font-size: 13px;
        color: #aaa;
    }

/* 響應式調整 */
@media (max-width: 767px) {
    .footer-section {
        text-align: center;
    }

    .footer-title {
        display: inline-block;
    }

    .services-grid {
        justify-content: center;
    }

    .services-column {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .quick-links-centered {
        flex-direction: column;
        align-items: center;
    }

        .quick-links-centered li {
            padding: 8px 0;
        }

            .quick-links-centered li:after {
                display: none;
            }
}

/* 數據統計區塊樣式 - 精簡版 */
.statistics-section {
    padding: 40px 0;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 26px;
    color: var(--lee-primary);
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 600;
}

/* 添加底線樣式 */
/*.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color:var(--lee-primary);
}*/

/* 介紹文字區塊 */
.statistics-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.statistics-intro p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* 數據統計容器 */
.statistics-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 單個統計項目 */
.statistic-item {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    text-align: center;
    padding: 20px 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(158, 0, 40, 0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(158, 0, 40, 0.1);
}

.statistic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(158, 0, 40, 0.15);
}

.statistic-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #9E0028;
}

/* 數據值樣式 - 改進加號顯示 */
.statistic-value {
    font-size: 36px;
    font-weight: 700;
    color: #9E0028;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* 加號樣式優化 */
.statistic-value:after {
    content: '+';
    font-size: 24px;
    font-weight: 600;
    position: relative;
    top: -10px;
    margin-left: 2px;
}

/* 數據標籤樣式 */
.statistic-label {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* 雙行標籤調整 */
.statistic-label br + * {
    margin-top: 3px;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .statistics-container {
        justify-content: center;
    }
    
    .statistic-item {
        min-width: 150px;
    }
}

@media (max-width: 767px) {
    .statistics-section {
        padding: 30px 0;
    }
    
    .statistic-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 140px;
    }
    
    .statistic-value {
        font-size: 30px;
    }
    
    .statistic-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 22px;
    }
    
    .statistics-intro p {
        font-size: 14px;
    }
    
    .statistic-item {
        flex: 0 0 calc(50% - 10px);
        padding: 15px 10px;
    }
}
/* 顯示所有步驟時，mark此處 */
.form-card.form-step {
    display: none;
}

.form-card.form-step.active {
    display: block;
}

/* 水平並列選項 */
/* 讓 info-source-horizontal 內的選項橫向排列 */
.info-source-horizontal {
    display: flex;
    flex-wrap: wrap;
    /* gap: 2.5rem; */
    margin-bottom: 1rem;
}

.info-source-horizontal .form-radio-row {
    display: flex;
    align-items: flex-start;
    min-width: 180px;
}

.info-source-horizontal .form-check-input {
    flex-shrink: 0;
    flex-grow: 0;
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.2em;
    margin-right: 0.5em;
    box-sizing: border-box;
}

.info-source-horizontal .form-check-label {
    display: inline;
    white-space: normal;
    word-break: break-all;
    line-height: 1.5;
}

.info-source-horizontal.is-invalid {
    border: 1.5px solid #dc3545;
    border-radius: 6px;
    padding: 0.5em;
    background: #fff6f6;
}

/* 響應式：小螢幕時自動換行，選項寬度100% */
@media (max-width: 576px) {
    .info-source-horizontal {
        flex-direction: column;
        /* gap: 0.5rem; */
        gap: 0rem;
    }

    .info-source-horizontal .form-radio-row {
        min-width: 0;
        width: 100%;
    }
}

/* 直式選項（含說明欄） */
.info-source-vertical .form-radio-row-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-source-vertical .radio-label-wrap {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.info-source-vertical .form-check-input {
    margin-top: 0.3em;
    margin-right: 0.5em;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
}

.info-source-vertical .form-check-label {
    display: block;
    white-space: normal;
    word-break: break-all;
    line-height: 1.5;
}

.explain-align {
    width: 90%;
    /* margin-left: calc(1.25em + 0.5em); */
    /* radio寬+間距，依實際radio大小調整 */
}

.info-source-explain {
    min-width: 180px;  
    max-width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    .info-source-explain {
        width: 100% !important;
    }
}

.info-source-group.is-invalid {
    border: 1.5px solid #dc3545;
    border-radius: 6px;
    padding: 0.5em;
    background: #fff6f6;
    margin-bottom: 0.5em;
}

.callout-required input {
    border: 1.5px solid #dc3545;
    background: #fff6f6;
}

.registration-notes {
    background: #f8e6ea;
    /* 主色淡色版 */
    color: #b23a48;
    /* 主色 */
    border-radius: 8px;
    margin-bottom: 0;
    padding: 2rem 0 1.5rem 0;
}

.registration-notes h5 {
    color: #b23a48;
}

.contact-us-section {
    background: linear-gradient(to right, #b23a48, #991f1f);
    color: #fff;
    /* border-radius: 0 0 8px 8px; */
    margin-bottom: 0;
    padding: 2rem 0 1.5rem 0;
}

.contact-us-section h5 {
    color: #fff;
}

.site-footer {
    /* background: linear-gradient(to right, #991f1f, #b23a48); */
    background: linear-gradient(to right, #b23a48, #991f1f);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.05),
            rgba(0, 0, 0, 0.05));
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    /* 確保文字在漸層上方 */
}

/* 若有連結，設定連結樣式 */
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 0;
    }

    .site-footer .container {
        font-size: 0.875rem;
    }
}

ol li {
    margin-left: 3rem;
}

/* 我理解您的疑問。讓我重新思考並提供更合理的容器最小寬度設定。

320px 確實不是最佳選擇，讓我基於實際使用場景和現代設備特性來重新設計：
我理解您的需求，需要將最小寬度從320px調整為420px。讓我重新生成適合的響應式容器設定： */
/* 響應式容器最小寬度調整 */
@media (max-width: 480px) {
    .modern-form-container {
        min-width: 420px;
        padding: 1rem;
        margin: 0 auto;
    }
    
    .form-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .step-indicator {
        margin-bottom: 2rem;
    }
    
    .step-indicator .step {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 420px) {
    .modern-form-container {
        min-width: 100%;
        padding: 0.75rem;
        border-radius: 0;
    }
    
    .form-card {
        padding: 0.5rem;
        border-radius: 4px;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
    }
    
    .step-indicator .step {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* 確保在極小螢幕上的可用性 */
@media (max-width: 360px) {
    .modern-form-container {
        padding: 0.5rem;
    }
    
    .form-card {
        padding: 0.5rem;
    }
    
    .form-header h2 {
        font-size: 1.125rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step-indicator .step {
        width: 100%;
        text-align: center;
    }
}
/* 限定畫面最小寬度的CSS解決方案及優缺點分析 */
/* 響應式文字大小調整解決方案 */

/* 使用 clamp() 函數實現文字大小自動調整 */
.form-header h2 {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    line-height: 1.2;
}

.form-header p {
    font-size: clamp(0.875rem, 3vw, 1rem);
    line-height: 1.4;
}

.form-label {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.form-button {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
}

.step-indicator .step {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* 使用 CSS 變數實現更靈活的文字大小控制 */
:root {
    --base-font-size: clamp(14px, 1vw + 12px, 16px);
    --heading-font-size: clamp(18px, 2vw + 16px, 24px);
    --small-font-size: clamp(12px, 0.8vw + 10px, 14px);
}

/* 應用變數到各元素 */
body {
    font-size: var(--base-font-size);
}

.form-header h2 {
    font-size: var(--heading-font-size);
}

.form-header p {
    font-size: var(--base-font-size);
}

.form-label {
    font-size: var(--base-font-size);
}

.form-input,
.form-select,
.form-textarea {
    font-size: var(--base-font-size);
}

.form-button {
    font-size: var(--base-font-size);
}

.step-indicator .step {
    font-size: var(--small-font-size);
}

/* 確保文字在極小螢幕上的可讀性 */
@media (max-width: 360px) {
    :root {
        --base-font-size: 14px;
        --heading-font-size: 18px;
        --small-font-size: 12px;
    }
}

/* 確保文字在超大螢幕上的適當大小 */
@media (min-width: 1200px) {
    :root {
        --base-font-size: 16px;
        --heading-font-size: 24px;
        --small-font-size: 14px;
    }
}


