/* registration form */


section#form .page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

section#form .consult-copy {
    margin: 0 auto 28px;
    text-align: left;
}

section#form .consult-copy h2 {
    margin: 30px 0 10px;
    color: #FFF;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

section#form .consult-copy p {
    margin: 0;
    color: #FFF;
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
}

section#form .Form {
    padding: 42px;
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(30, 58, 92, .08);
}

section#form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

section#form .form-field,
section#form .course-interest,
section#form .send {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

/* 欄位標題統一靠左、字級一致 */
section#form .form-field > label,
section#form .form-field > p,
section#form .course-interest > p {
    display: block;
    margin: 0 0 9px;
    color: #26364a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .02em;
    text-align: left;
}

section#form .form-field > label span {
    margin-left: 4px;
    color: #e05252;
}

/* input / select / textarea 統一尺寸與外觀 */
section#form .form-field > input[type="text"],
section#form .form-field > select,
section#form .form-field > textarea {
    display: block;
    width: 100%;
    border: 1px solid #cdd7e3;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

section#form .form-field > input[type="text"],
section#form .form-field > select {
    height: 52px;
    padding: 0 15px;
}

section#form .form-field > textarea {
    min-height: 132px;
    padding: 13px 15px;
    resize: vertical;
}

section#form .form-field > input[type="text"]::placeholder,
section#form .form-field > textarea::placeholder {
    color: #98a2b3;
}

section#form .form-field > input[type="text"]:hover,
section#form .form-field > select:hover,
section#form .form-field > textarea:hover {
    border-color: #aebdce;
}

section#form .form-field > input[type="text"]:focus,
section#form .form-field > select:focus,
section#form .form-field > textarea:focus {
    border-color: #3d78df;
    box-shadow: 0 0 0 4px rgba(61, 120, 223, .11);
    background: #fff;
}

/* 課程選擇：整區滿版 */
section#form .course-interest {
    grid-column: 1 / -1;
}

section#form .course-interest-heading {
    margin-bottom: 14px;
}

section#form .course-group {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #e3eaf3;
    border-radius: 14px;
    background: #f8fbff;
}

section#form .course-group:first-of-type {
    margin-top: 0;
}

section#form .course-group-title {
    margin-bottom: 10px;
    color: #2457d6;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    text-align: left;
}

/* ASP.NET CheckBoxList 會輸出 table，統一兩欄尺寸 */
section#form .course-interest .course-checkbox-list {
    width: calc(100% + 12px);
    margin: -6px;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

section#form .course-interest .course-checkbox-list td {
    width: 50%;
    height: 66px;
    padding: 12px 14px;
    vertical-align: top;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    box-sizing: border-box;
}

section#form .course-interest .course-checkbox-list td:hover {
    border-color: #b8c9df;
    background: #fbfdff;
}

section#form .course-interest input[type="checkbox"] {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 3px 8px 0 0;
    vertical-align: top;
    accent-color: #3578e5;
}

section#form .course-interest label {
    display: inline-block;
    width: calc(100% - 30px);
    margin: 0;
    vertical-align: top;
    color: #344054;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

/* 訓練中心改成一致的選項卡，不再是一小塊 table */
section#form .branch-field,
section#form .remarks-field,
section#form .validation-field {
    grid-column: 1 / -1;
    width: 100%;
}

section#form .branch-field table {
    width: calc(100% + 12px);
    margin: -6px;
    border: 0;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
    background: transparent;
}

section#form .branch-field table td {
    width: 25%;
    height: 50px;
    padding: 0 14px;
    vertical-align: middle;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    background: #fff;
    color: #344054;
    font-size: 15px;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
}

section#form .branch-field table td:hover {
    border-color: #b8c9df;
    background: #fbfdff;
}

section#form .branch-field input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    vertical-align: middle;
    accent-color: #3578e5;
}

section#form .branch-field label {
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* 驗證碼圖片 */
section#form .validation-field + li.send {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: -10px;
    text-align: left;
}

section#form .validation-field + li.send img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 1px solid #e0e6ee;
    border-radius: 8px;
}

/* 確認送出按鈕 */
section#form .form-grid > li.send:last-child {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 4px;
    text-align: center;
}

section#form .form-grid > li.send:last-child input[type="submit"] {
    display: inline-block;
    width: 100%;
    max-width: 360px;
    min-height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #3274dc 0%, #2aa899 100%);
    box-shadow: 0 9px 22px rgba(50, 116, 220, .20);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

section#form .form-grid > li.send:last-child input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(50, 116, 220, .27);
    filter: brightness(1.03);
}

section#form .form-grid > li.send:last-child input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(50, 116, 220, .18);
}

section#form .form-grid > li.send:last-child input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(50, 116, 220, .16), 0 9px 22px rgba(50, 116, 220, .20);
}

@media (max-width: 767.98px) {
    section#form {
        padding: 48px 15px 58px;
    }

    section#form .consult-copy {
        margin-bottom: 22px;
    }

    section#form .consult-copy p {
        font-size: 15px;
    }

    section#form .Form {
        padding: 26px 18px;
        border-radius: 14px;
    }

    section#form .form-grid {
        display: block;
    }

    section#form .form-field,
    section#form .course-interest,
    section#form .send {
        width: 100%;
        margin-bottom: 20px;
    }

    section#form .course-group {
        padding: 14px;
    }

    section#form .course-interest .course-checkbox-list,
    section#form .course-interest .course-checkbox-list tbody,
    section#form .course-interest .course-checkbox-list tr,
    section#form .course-interest .course-checkbox-list td {
        display: block;
        width: 100%;
    }

    section#form .course-interest .course-checkbox-list {
        margin: 0;
    }

    section#form .course-interest .course-checkbox-list td {
        height: auto;
        min-height: 0;
        margin-bottom: 8px;
        padding: 11px 12px;
    }

    section#form .course-interest .course-checkbox-list tr:last-child td:last-child {
        margin-bottom: 0;
    }

    section#form .branch-field table {
        width: 100%;
        margin: 0;
        border-spacing: 0 8px;
        table-layout: auto;
    }

    section#form .branch-field table,
    section#form .branch-field tbody,
    section#form .branch-field tr,
    section#form .branch-field td {
        display: block;
        width: 100%;
    }

    section#form .branch-field table td {
        height: 46px;
        margin-bottom: 8px;
        padding: 0 12px;
    }

    section#form .form-grid > li.send:last-child {
        margin-bottom: 0;
    }

    section#form .form-grid > li.send:last-child input[type="submit"] {
        max-width: none;
    }
}


.thx p {
    color: #FFF;
    text-align: center;
    font-size: 20px;
}
.thx a {
    color: #232323;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
    text-align: center;
    margin-left: 0 !important;
    font-size: 22px;
    background: #f9d302;
    padding: 10px 30px;
}