

.card {
    width: min(900px,100%);
    margin: auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(30,70,75,.10)
}

.footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    background: #f0f7ff;
    padding: 18px 22px;
    margin: 12px 0 18px;
}

.box {
    background: #f0f7ff;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    line-height: 1.8;
    padding: 4px 16px;
    margin: 12px 0 18px;
    font-size: 16px;
}

.header {
    padding: 16px 16px 16px;
    background: var(--blueSoft);
    border-bottom: 4px solid #d7ece9;
    text-align: center
}

h1 {
    margin: 0;
    /*font-size: clamp(14px,2.2vw,16px);*/
    font-size: 16px;
    line-height: 1.3;
    color: var(--blue);
    letter-spacing: .03em
}

    h1 span {
        color: var(--rose)
    }

.intro {
    padding: 16px 8px 8px
}

    .intro p {
        margin: 0;
        /*font-size: clamp(14px,2.2vw,14px);*/
        font-size: 16px;
        line-height: 1.8;
        font-weight: 400
    }

.red {
    color: var(--rose);
    font-weight: 500
}

.notice {
    margin: 2px 14px 10px;
    padding: 11px 13px;
    background: #fff8e8;
    border-left: 4px solid var(--goldDeep);
    border-right: 4px solid var(--goldDeep);
    border-radius: 12px
}

.notice-title {
    margin: 0 0 11px;
    color: #9a611c;
    font-size: 16px;
    font-weight: 500
}

.notice ul {
    margin: 0;
    padding-left: 24px
}

.notice li {
    margin: 7px 0;
    /*font-size: clamp(12px,2vw,14px);*/
    font-size: 16px;
    line-height: 1
}

.underline--magical {
    background-image: linear-gradient(120deg, #FFEDBC 0%, #F0CB35 100%); /*#d1efff #47bfff*/
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
}

    .underline--magical:hover {
        background-size: 100% 88%;
    }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    border-left: 2px solid var(--primary-color);
    padding-left: 8px;
}

.user-info {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

/* Main Content */
main {
    padding: 30px;
}

main-data {
    padding: 0px;
}

.page-title {
    text-align: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

    .section-title::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 18px;
        background-color: var(--primary-color);
        margin-right: 8px;
        border-radius: 2px;
    }

/* Notice List */
.notice-list {
    list-style: none;
    counter-reset: notice-counter;
    margin-bottom: 25px;
    padding-inline-start: 0px;
}

    .notice-list li {
        counter-increment: notice-counter;
        position: relative;
        padding-left: 32px;
        margin-bottom: 12px;
        font-size: 15px;
    }

        .notice-list li::before {
            content: counter(notice-counter);
            position: absolute;
            left: 0;
            top: 2px;
            width: 22px;
            height: 22px;
            background-color: #e6f3f0;
            color: var(--primary-color);
            font-weight: bold;
            border-radius: 50%;
            text-align: center;
            line-height: 22px;
            font-size: 12px;
        }

.highlight-red {
    color: var(--danger-color);
    font-weight: 600;
}

/* Sub-items (Special Phone Booking Items) */
.sub-box {
    background-color: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: var(--radius);
    padding: 15px 20px;
    margin: 10px 0 15px 0;
}

.sub-box-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--danger-color);
}

.sub-list {
    list-style-type: disc;
    padding-left: 20px;
}

    .sub-list li {
        margin-bottom: 4px;
        /*color: #555;*/
        font-size: 14px;
    }

.highlight-red {
    color: var(--danger-color);
    font-weight: 600;
}

/* Special Notice Card */
.alert-card {
    background-color: var(--info-bg);
    border-left: 4px solid #31708f;
    padding: 15px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 25px;
    font-size: 14px;
}

    .alert-card p {
        margin-bottom: 6px;
        color: #245269;
    }

        .alert-card p:last-child {
            margin-bottom: 0;
        }

/* 訊息提醒文字 */
.message-label {
    display: block;
    color: var(--danger-color);
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* 確認勾選區 */
.confirm-section {
    background-color: #f0f7ff;
    border: 1px solid #bae6fd;
    padding: 16px;
    border-radius: 8px;
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .confirm-section input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .confirm-section label {
        font-weight: 600;
        color: #0369a1;
        cursor: pointer;
        font-size: 0.95rem;
    }

/* 按鈕區與停用狀態樣式 */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background-color: var(--primary-hover);
    }

/* 按鈕停用時的 CSS 樣式 */
.btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

    .btn-secondary:hover {
        background-color: #dee2e6;
    }

/* 手機端適應 */
@media (max-width: 576px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        text-align: left;
    }

    .btn {
        width: 100%;
    }
}

/*--Online_RegData--*/

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

    .breadcrumb a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        margin: 0 6px;
        color: #ccc;
    }

/* Form Design */
.form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
}


.form-group {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.form-dispgroup {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.form-label {
    font-weight: 600;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
}

.required-star {
    color: var(--danger-color);
    margin-right: 4px;
    font-weight: bold;
}

.form-control {
    width: 95%;
    padding: 9px 12px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 135, 108, 0.15);
    }

.form-control-readonly {
    background-color: #f8f9fa;
    color: #555;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 針對 RepeatLayout="Flow" 的 RadioButtonList 進行彈性排版 */
.my-radio-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px; /* 寬螢幕時選項間的距離 */
}

    .my-radio-list label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-right: 0; /* 清除預設間距 */
        cursor: pointer;
    }



/* Date Group */
.date-select-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* 允許內部元素自動換行 */
    align-items: center;
}

    .date-select-group select {
        flex: 1;
        min-width: 90px;
    }

/* 讓月與日在第二列並排顯示 */
.date-select-row-sub {
    display: flex !important;
    gap: 8px;
    width: 100%;
}

    .date-select-row-sub select {
        flex: 1;
    }

/* 讓年齡標籤不論螢幕大小，一律強制單獨一列顯示 */
.line-container {
    flex: 0 0 100% !important; /* 強制佔滿 100% 寬度，迫使它換到下一列 */
    display: block !important;
    margin-top: 4px;
}


/* Radio Group */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
}

    .radio-label input[type="radio"] {
        accent-color: var(--primary-color);
        width: 16px;
        height: 16px;
    }


/* 當螢幕變小時（手機版，小於 576px），改為上下兩列垂直排列 */
@media (max-width: 576px) {
    .my-radio-list {
        display: flex;
        flex-direction: column;
        gap: 10px; /* 手機上兩列之間的間距 */
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .user-info {
        text-align: left;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .school-notice {
        grid-column: 1 / -1;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }

    .form-control {
        width: 100%;
    }

    /* 手機版：出生日期改為兩列（第一列年份，第二列月與日） */
    .date-select-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

        /* 第一列：西元年選單佔滿整行 */
        .date-select-group > select:first-of-type {
            width: 100%;
        }


    /* 第三列：年齡標籤強制獨立一列 */
    .line-container {
        flex: 0 0 100% !important;
        display: block !important;
        width: 100%;
    }
}