
/* registration form */
section#form {
    padding: 70px 20px;
}

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

section#form .Form {
    padding: 48px 44px;
    border: 1px solid #dfe3e8;
    background: #f8f9fb;
    box-shadow: 0 2px 10px rgba(27, 39, 51, .05);
}

section#form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
    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;
}

section#form .form-field > label,
section#form .form-field > p,
section#form .course-interest > p {
    display: block;
    margin: 0 0 10px;
    color: #26364a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
}

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

section#form .form-field > input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #cbd2da;
    border-radius: 0;
    background: #fff;
    color: #344054;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

section#form .form-field > input[type="text"]:focus {
    border-color: #2f7de1;
    box-shadow: 0 0 0 3px rgba(47, 125, 225, .12);
}

section#form .area table {
    width: 100%;
    height: 52px;
    border: 1px solid #cbd2da;
    background: #fff;
}

section#form .area table td {
    padding:10px 8px 0 8px;
    white-space: nowrap;
}

section#form .area input[type="radio"] {
    margin-right: 4px;
}

section#form .course-interest {
    grid-column: 1 / -1;
}

section#form .course-interest table {
    width: calc(100% + 18px);
    margin: -5px -9px;
    border-collapse: separate;
    border-spacing: 9px;
    table-layout: fixed;
}

section#form .course-interest table td {
    width: 50%;
    min-height: 72px;
    padding: 14px;
    vertical-align: middle;
    border: 1px solid #cbd2da;
    background: #fff;
    color: #344054;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    box-sizing: border-box;
}

section#form .course-interest input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 10px 0 0;
    vertical-align: middle;
}

section#form .course-interest label {
    display: inline;
    margin: 0;
    cursor: pointer;
}

/* 驗證碼輸入框滿版 */
section#form .validation-field {
    grid-column: 1 / -1;
    width: 100%;
}

section#form .validation-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

/* 確認送出區塊滿版 */
section#form .form-grid > li.send:last-child {
    grid-column: 1 / -1;
    width: 100%;
}

/* 確認送出按鈕滿版 */
section#form .form-grid > li.send:last-child input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
}
/* 驗證碼圖片區塊滿版並置中 */
section#form .validation-field + li.send {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
}

/* 驗證碼圖片維持原尺寸 */
section#form .validation-field + li.send img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 訓練中心選項靠左緊密排列 */
section#form .branch-field table {
    display: inline-table;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    background: transparent;
}

section#form .branch-field table td {
    width: auto;
    padding: 0 30px 0 0;
    border: 0;
    white-space: nowrap;
}

section#form .branch-field input[type="radio"] {
    margin: 0 4px 0 0;
    vertical-align: middle;
}

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

/* 課程選項換行後與第一行文字齊頭 */
section#form .course-interest input[type="checkbox"] {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 4px 8px 0 0;
    vertical-align: top;
}

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



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

    section#form .Form {
        padding: 28px 18px;
    }

    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-interest table,
    section#form .course-interest tbody,
    section#form .course-interest tr,
    section#form .course-interest td {
        display: block;
        width: 100%;
    }

section#form .course-interest table {
        display: table;
        width: calc(100% + 8px);
        margin: 0 -4px;
        border-spacing: 4px 8px;
        table-layout: fixed;
    }
        section#form .course-interest tbody {
        display: table-row-group;
    }

    section#form .course-interest tr {
        display: table-row;
    }

    section#form .course-interest td {
        display: table-cell;
        width: 50%;
        padding: 10px 8px;
        vertical-align: middle;
        font-size: 14px;
        line-height: 1.5;
        word-break: break-word;
    }
        section#form .course-interest input[type="checkbox"] {
        margin-right: 5px;
    }

    section#form .course-interest table td {
        min-height: 0;
        margin-bottom: 9px;
        padding: 14px;
    }

    section#form .area table td {
        padding: 0 5px;
        font-size: 14px;
    }
        section#form .branch-field table td {
        padding-right: 20px;
        font-size: 15px;
    }
        section#form .validation-field,
    section#form .form-grid > li.send:last-child {
        width: 100%;
    }
}
     
