@CHARSET "UTF-8";

:root {
    --navy: #14213d;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eff6ff;
    --ink: #172033;
    --muted: #667085;
    --line: #e4e7ec;
    --surface: #ffffff;
    --background: #f4f7fb;
    --success: #16803c;
    --success-bg: #ecfdf3;
    --danger: #c52233;
    --danger-bg: #fff1f2;
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow: 0 20px 55px rgba(20, 33, 61, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    margin: 0;
    padding: 48px 20px 72px;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.09), transparent 28%),
        radial-gradient(circle at 95% 12%, rgba(14, 165, 233, 0.08), transparent 24%),
        var(--background);
    font-family: Pretendard, "Noto Sans KR", "맑은 고딕", Malgun Gothic, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.readmission-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 44px 48px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #14213d 0%, #1e3a8a 62%, #2563eb 100%);
    box-shadow: var(--shadow);
}

.page-hero::after {
    position: absolute;
    top: -110px;
    right: -70px;
    width: 300px;
    height: 300px;
    border: 54px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
}

.hero-copy,
.term-badge {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 10px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.page-title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.page-subtitle {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
}

.term-badge {
    min-width: 210px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.term-badge span,
.term-badge strong {
    display: block;
}

.term-badge span {
    margin-bottom: 2px;
    color: #bfdbfe;
    font-size: 12px;
}

.term-badge strong {
    font-size: 16px;
}

.term-badge .term-period-label {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.term-badge em {
    display: block;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.info-box {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 24px 20px 58px;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-md);
    background: var(--blue-soft);
}

.info-box::before {
    position: absolute;
    top: 21px;
    left: 22px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    content: "i";
    font-size: 14px;
    font-weight: 800;
}

.info-box strong {
    display: block;
    margin-bottom: 3px;
    color: #1e3a8a;
}

.info-box p {
    margin: 0;
    color: #475467;
    font-size: 14px;
}

.period-closed {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 19px 22px;
    border: 1px solid #fecdd3;
    border-radius: var(--radius-md);
    color: #9f1239;
    background: var(--danger-bg);
}

.period-closed > span {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    font-weight: 900;
}

.period-closed strong {
    display: block;
}

.period-closed p {
    margin: 2px 0 0;
    color: #be123c;
    font-size: 13px;
}

.form-section {
    margin-top: 20px;
    padding: 34px 38px;
    border: 1px solid rgba(228, 231, 236, 0.9);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(20, 33, 61, 0.055);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
}

.section-heading > div {
    min-width: 0;
}

.step-number {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 13px;
    font-weight: 800;
}

.section-title {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-box {
    min-height: 100px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fafbfc;
}

.contact-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.contact-box strong {
    display: block;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-box #s_contel {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.contact-box #s_contel.contact-highlight {
    color: var(--blue-dark);
    font-size: 16px;
    font-weight: 800;
}

.privacy-box {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: #475467;
    background: #f8fafc;
    font-size: 13px;
}

.privacy-box p {
    margin: 0 0 8px;
}

.privacy-box p:last-child {
    margin-bottom: 0;
}

.privacy-box strong {
    display: inline-block;
    min-width: 115px;
    color: #344054;
}

.agree-area {
    margin-top: 14px;
}

.agree-area label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 17px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #1e3a8a;
    background: #f8fbff;
    font-weight: 700;
    cursor: pointer;
}

.agree-area input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--blue);
}

.sub-guide {
    margin: -6px 0 22px;
    padding: 13px 16px;
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    color: #475467;
    background: #f8fafc;
    font-size: 13px;
}

.form-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 16px;
    table-layout: fixed;
}

.form-table th,
.form-table td {
    padding: 0;
    border: 0;
    vertical-align: middle;
}

.form-table th {
    width: 118px;
    padding-right: 14px;
    color: #344054;
    background: transparent;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

.form-table th:nth-of-type(2) {
    padding-left: 24px;
}

.form-table th::before {
    content: none;
}

.form-table td {
    padding-right: 8px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table select,
.form-table textarea,
.auth-code {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-table textarea {
    height: 112px;
    padding-top: 12px;
    line-height: 1.6;
    resize: vertical;
}

.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus,
.auth-code:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-table input[readonly],
.form-table input:disabled,
.form-table select:disabled,
.form-table textarea:disabled {
    color: #667085;
    background: #f2f4f7;
}

.form-table select {
    cursor: pointer;
}

.inline-group {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.inline-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #475467;
    background: #fff;
    white-space: nowrap;
    cursor: pointer;
}

.inline-group input {
    margin: 0;
    accent-color: var(--blue);
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.phone-group input {
    min-width: 0;
    text-align: center;
}

.phone-group span,
.email-group span {
    color: #98a2b3;
}

.email-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 7px;
}

.req {
    color: #e11d48;
    font-style: normal;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: opacity 0.2s ease;
}

fieldset:disabled {
    opacity: 0.48;
}

.application-section:has(fieldset:disabled) {
    background: #fafbfc;
}

.btn-action,
.btn-secondary {
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-action {
    background: var(--blue);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}

.btn-action:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #667085;
}

.btn-action:disabled,
.btn-secondary:disabled {
    color: #98a2b3;
    background: #e4e7ec;
    box-shadow: none;
    cursor: default;
    transform: none;
}

.auth-box {
    margin: 18px 0 2px;
    padding: 22px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.auth-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-title p {
    margin: 0;
    color: #344054;
}

.auth-icon {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.auth-controls {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) auto;
    gap: 9px;
}

.auth-controls .auth-code {
    height: 42px;
    text-align: center;
    letter-spacing: 0.12em;
}

.auth-guide {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.auth-timer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.auth-timer strong {
    min-width: 48px;
    color: var(--danger);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.auth-complete {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    color: var(--success);
    background: var(--success-bg);
}

.auth-complete > span {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--success);
    font-weight: 900;
}

.auth-complete strong {
    display: block;
}

.auth-complete p {
    margin: 2px 0 0;
    color: #52705c;
    font-size: 12px;
}

.status-message {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.status-success {
    color: var(--success);
    background: var(--success-bg);
}

.status-error {
    color: var(--danger);
    background: var(--danger-bg);
}

.student-result {
    position: relative;
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    background: var(--success-bg);
}

.student-result > span {
    display: block;
    margin-bottom: 2px;
    color: #52705c;
    font-size: 12px;
    font-weight: 700;
}

.student-result > strong {
    display: block;
    color: var(--success);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.student-result p {
    margin: 7px 0 0;
    color: #52705c;
    font-size: 13px;
}

.selected-dept-contact {
    position: relative;
    margin-top: 10px;
    padding: 15px 17px 15px 48px;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    background: var(--blue-soft);
}

.selected-dept-contact::before {
    position: absolute;
    top: 18px;
    left: 17px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    content: "☎";
    font-size: 12px;
}

.selected-dept-contact span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.selected-dept-contact strong,
.selected-dept-contact a {
    display: inline-block;
    margin-top: 2px;
}

.selected-dept-contact strong {
    margin-right: 8px;
    color: var(--navy);
    font-size: 14px;
}

.selected-dept-contact a {
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 800;
}

.btn-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.btn-submit,
.btn-close {
    position: static;
    height: 50px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.btn-submit {
    min-width: 220px;
    padding: 0 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.23);
}

.btn-submit:hover {
    transform: translateY(-1px);
}

.btn-close {
    min-width: 100px;
    padding: 0 20px;
    color: #475467;
    background: #eef0f3;
}

@media screen and (max-width: 800px) {
    body {
        padding: 24px 14px 48px;
    }

    .page-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 34px 30px;
    }

    .term-badge {
        min-width: 0;
        width: 100%;
    }

    .form-section {
        padding: 28px 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table {
        border-spacing: 0;
    }

    .form-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
        margin-bottom: 17px;
    }

    .form-table th {
        grid-column: span 1;
        padding: 0 0 6px;
    }

    .form-table th:nth-of-type(2) {
        padding: 0 0 6px;
    }

    .form-table td {
        padding: 0;
    }

    .form-table td[colspan="3"] {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 560px) {
    body {
        padding: 0 0 32px;
        background: #fff;
    }

    .page-hero {
        margin: 0;
        padding: 34px 22px 30px;
        border-radius: 0 0 24px 24px;
        box-shadow: none;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .info-box {
        margin: 16px 14px 0;
        padding: 17px 18px 17px 52px;
    }

    .info-box::before {
        top: 18px;
        left: 18px;
    }

    .form-section {
        margin: 14px;
        padding: 24px 18px;
        border-radius: 18px;
        box-shadow: none;
    }

    .section-heading {
        gap: 12px;
    }

    .step-number {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .section-title {
        font-size: 18px;
    }

    .contact-box strong {
        font-size: 18px;
    }

    .privacy-box strong {
        display: block;
        min-width: 0;
    }

    .form-table tr {
        display: block;
        margin-bottom: 0;
    }

    .form-table th {
        margin-top: 16px;
    }

    .form-table tr:first-child th:first-child {
        margin-top: 0;
    }

    .inline-group label {
        flex: 1 1 auto;
        justify-content: center;
    }

    .email-group {
        grid-template-columns: 1fr;
    }

    .email-group span {
        display: none;
    }

    .auth-controls {
        grid-template-columns: 1fr;
    }

    .auth-controls .btn-action,
    .auth-controls .auth-code {
        width: 100%;
    }

    .btn-area {
        flex-direction: column;
    }

    .btn-submit,
    .btn-close {
        width: 100%;
        min-width: 0;
    }
}
