/* 2026.10.14 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0055AA;
    --dark-blue: #003366;
    --orange: #FF8800;
    --yellow: #FFD700;
}

body {
    background: #001A33;
    color: #fff;
    line-height: 1.6;
    font-family: 'Pretendard', sans-serif;
}

.apply-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.apply-modal.active {
    opacity: 1;
    visibility: visible;
}

.apply-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 10, 25, 0.75);
}

.apply-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.apply-modal.active .apply-box {
    transform: translateY(0);
}

.apply-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 30px;
    background: var(--primary-blue);
    color: #fff;
}

.apply-head-txt {
    min-width: 0;
}

.apply-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--yellow);
    margin-bottom: 4px;
}

.apply-head h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    word-break: keep-all;
}

.apply-x {
    flex: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.apply-x:hover {
    transform: rotate(90deg);
}

.apply-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.apply-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 26px 30px 30px;
}

.apply-req-note {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.apply-form em {
    font-style: normal;
    color: #e5321c;
    margin-left: 3px;
}

.apply-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 22px;
}

.apply-field {
    min-width: 0;
}

.apply-full {
    grid-column: 1 / -1;
}

.apply-field > label,
.apply-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.apply-field input[type="text"],
.apply-field input[type="tel"],
.apply-field input[type="email"],
.apply-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 50px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 1rem;
    color: #111;
    background: #fff;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-field textarea {
    height: auto;
    min-height: 140px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
    color: #9aa1ab;
}

.apply-field input:focus,
.apply-field textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 85, 170, 0.15);
}

.apply-field.is-error input,
.apply-field.is-error textarea,
.apply-field.is-error .apply-file {
    border-color: #e5321c;
}

.apply-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 50px;
    padding: 0 6px 0 0;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    overflow: hidden;
}

.apply-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.apply-file-btn {
    flex: none;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: var(--dark-blue);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.apply-file-btn:hover {
    background: var(--primary-blue);
}

.apply-file input[type="file"]:focus-visible + .apply-file-btn {
    outline: 3px solid rgba(0, 85, 170, 0.35);
    outline-offset: -3px;
}

.apply-file-name {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.95rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apply-file.has-file .apply-file-name {
    color: #111;
}

.apply-help {
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
}

.apply-radios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.apply-radio {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.apply-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.apply-radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 8px 10px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    word-break: keep-all;
    transition: all 0.2s ease;
}

.apply-radio:hover span {
    border-color: var(--primary-blue);
}

.apply-radio input:checked + span {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.apply-radio input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(0, 85, 170, 0.25);
}

.apply-field.is-error .apply-radio span {
    border-color: #e5321c;
}

.apply-foot {
    flex: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    border-top: 1px solid #e3e6ea;
    background: #f6f7f9;
}

.apply-btn {
    min-width: 150px;
    height: 52px;
    padding: 0 24px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.apply-btn-cancel {
    background: #fff;
    color: #333;
    border: 1px solid #c9ced6;
}

.apply-btn-cancel:hover {
    background: #eceef1;
}

.apply-btn-submit {
    background: var(--orange);
    color: #fff;
    border: 1px solid var(--orange);
}

.apply-btn-submit:hover {
    background: #e67600;
    border-color: #e67600;
}

@media (max-width: 768px) {
    .apply-modal {
        padding: 0;
        align-items: flex-end;
    }

    .apply-box {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .apply-head {
        padding: 16px 12px 16px 20px;
        padding-top: calc(16px + env(safe-area-inset-top));
    }

    .apply-head h2 {
        font-size: 1.3rem;
    }

    .apply-eyebrow {
        font-size: 0.72rem;
    }

    .apply-body {
        padding: 20px 20px 24px;
    }

    .apply-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .apply-field input[type="text"],
    .apply-field input[type="tel"],
    .apply-field input[type="email"],
    .apply-field textarea {
        font-size: 16px;
    }

    .apply-foot {
        padding: 12px 20px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .apply-btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .apply-btn-cancel {
        flex: 0 0 34%;
    }
}

@media (max-width: 360px) {
    .apply-radios {
        grid-template-columns: minmax(0, 1fr);
    }

    .apply-file-btn {
        padding: 0 14px;
    }
}

.apply-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.apply-page-open {
    height: 56px;
    padding: 0 32px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.apply-page-open:hover {
    background: #e67600;
}

.apply-box-sm {
    max-width: 520px;
}

.apply-radios-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apply-agree-txt {
    max-height: 150px;
    overflow-y: auto;
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #444;
    background: #f6f7f9;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    word-break: keep-all;
}

.apply-agree-txt dt {
    font-weight: 700;
    color: #222;
}

.apply-agree-txt dd {
    margin: 0 0 8px;
}

.apply-agree-txt p {
    margin-top: 4px;
}

.apply-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}

.apply-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.apply-field.is-error .apply-check {
    color: #e5321c;
}

.done-body {
    text-align: center;
}

.done-msg {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    word-break: keep-all;
}

.done-sub {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #555;
    word-break: keep-all;
}

.done-qr {
    width: 220px;
    max-width: 100%;
    margin: 24px auto 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #c9ced6;
    border-radius: 8px;
}

.done-qr img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.done-info {
    margin-top: 24px;
    border-top: 2px solid var(--primary-blue);
    text-align: left;
}

.done-info div {
    display: flex;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid #e3e6ea;
}

.done-info dt {
    flex: 0 0 64px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
}

.done-info dd {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    word-break: break-all;
}

.apply-field input[type="password"] {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 50px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 1rem;
    color: #111;
    background: #fff;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-grid > .apply-help {
    margin-top: -12px;
}

.apply-notice {
    padding: 16px 18px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #333;
    background: #f6f7f9;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    word-break: keep-all;
}

.apply-notice-tel {
    margin-top: 8px;
    font-weight: 700;
    color: #111;
}

.apply-notice-tel strong {
    margin-left: 6px;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.apply-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    font-size: 0.92rem;
}

.apply-links a {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.apply-links a:hover {
    color: var(--primary-blue);
}

.apply-step {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e3e6ea;
}

.apply-step-tit {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 14px;
}

.apply-box-sm .apply-grid {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 768px) {
    .apply-field input[type="password"] {
        font-size: 16px;
    }

    .apply-grid > .apply-help {
        margin-top: -10px;
    }

    .apply-check {
        align-items: flex-start;
    }

    .apply-check input {
        margin-top: 1px;
    }
}

