/* =============================================================
 * Apply Page — C 패스 신청
 * 럭셔리 미니멀 (에르메스 톤) · 폼 + 카드 미리보기 + 발급
 * ============================================================= */

/* === Hero (compact 50vh) ==================================== */

.apply-hero {
    padding: 140px 0 60px;
    min-height: 50vh;
    background: var(--bg-white);
    display: flex;
    align-items: center;
}

.apply-eyebrow {
    display: block;
    margin: 0 0 var(--space-4);
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
}

.apply-title {
    margin: 0 0 var(--space-3);
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--navy-deep);
}

.apply-subtitle {
    margin: 0 0 var(--space-8);
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.apply-hero-note {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* === Form + Card grid ======================================= */

.apply-section {
    padding: 0 0 100px;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.apply-grid[hidden] { display: none; }

/* === Form === */

.apply-form-wrap {
    position: relative;
}

.apply-form-title {
    margin: 0 0 var(--space-8);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy-deep);
    letter-spacing: -0.01em;
}

.apply-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0;
}

.required {
    color: var(--orange);
    font-weight: 600;
    margin-left: 2px;
}

.form-row input,
.form-row select {
    width: 100%;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    background: #FFFFFF;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.form-row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%234A5568' stroke-width='1.5' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-row input::placeholder {
    color: var(--text-muted);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--orange);
    cursor: pointer;
}

.form-checkbox label {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.form-note {
    margin: 4px 0 12px 30px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Submit button */
.btn-apply {
    width: 100%;
    margin-top: var(--space-4);
    background: var(--orange);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.btn-apply:hover:not(:disabled) {
    background: var(--orange-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-apply:disabled {
    background: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Loading overlay */
.apply-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 5;
}

.apply-loading.is-visible {
    opacity: 1;
    visibility: visible;
}

.apply-loading p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.apply-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 0, 0.18);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === Card (preview + final) — luxury minimal ================ */

.apply-card-wrap {
    position: sticky;
    top: 110px;
}

.apply-card-label {
    margin: 0 0 var(--space-4);
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.campus-card {
    aspect-ratio: 1.586;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 16px;
    background: linear-gradient(135deg,
        #0F1E4F 0%,
        #1E3A8A 50%,
        #0F1E4F 100%);
    box-shadow: 0 20px 40px -10px rgba(15, 30, 79, 0.4),
                0 10px 20px -5px rgba(15, 30, 79, 0.2);
    position: relative;
    overflow: hidden;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campus-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 70%);
    pointer-events: none;
}

.campus-card-logo-wrap {
    width: 120px;
    height: 120px;
    border: 1.5px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.campus-card-logo {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 64px;
    font-weight: 600;
    color: var(--orange);
    line-height: 1;
    letter-spacing: 0;
}

.campus-card-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    z-index: 1;
}

.campus-card-x {
    color: var(--orange);
    font-size: 1.15em;
    margin: 0 4px;
}

/* === Success screen ========================================= */

.apply-success {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

.apply-success[hidden] { display: none; }

.apply-greeting {
    margin: 0 0 var(--space-12);
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.03em;
    line-height: 1.2;
    animation: fade-up 0.5s var(--ease-out) both;
    animation-delay: 0.1s;
}

.campus-card-large {
    max-width: 480px;
    animation: card-reveal 0.6s var(--ease-out) both;
    animation-delay: 0.2s;
}

@keyframes card-reveal {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.apply-success-line {
    margin: var(--space-6) 0 0;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fade-up 0.5s var(--ease-out) both;
    animation-delay: 0.4s;
}

.apply-success-headline {
    margin: 60px 0 var(--space-3);
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
    line-height: 1.3;
    animation: fade-up 0.5s var(--ease-out) both;
    animation-delay: 0.55s;
}

.apply-success-desc {
    margin: 0 auto;
    max-width: 600px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
    animation: fade-up 0.5s var(--ease-out) both;
    animation-delay: 0.65s;
}

.apply-mini-cards {
    margin: 60px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    animation: fade-up 0.5s var(--ease-out) both;
    animation-delay: 0.75s;
}

.apply-mini-card {
    text-align: left;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.apply-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange);
}

.apply-mini-label {
    display: block;
    margin-bottom: var(--space-3);
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    line-height: 1;
}

.apply-mini-card h4 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-deep);
    letter-spacing: -0.01em;
}

.apply-mini-card p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.apply-success-actions {
    margin: 60px 0 0;
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fade-up 0.5s var(--ease-out) both;
    animation-delay: 0.85s;
}

.btn-success-primary,
.btn-success-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
    text-decoration: none;
}

.btn-success-primary {
    background: var(--navy-deep);
    color: #FFFFFF;
    border-color: var(--navy-deep);
}

.btn-success-primary:hover {
    background: var(--navy-medium);
    border-color: var(--navy-medium);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-success-ghost {
    background: transparent;
    color: var(--navy-deep);
    border-color: var(--navy-deep);
}

.btn-success-ghost:hover {
    background: var(--navy-deep);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.apply-success-footnote {
    margin: 40px 0 0;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* === Responsive ============================================ */

@media (max-width: 880px) {
    .apply-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .apply-card-wrap {
        position: relative;
        top: 0;
        order: -1;
    }
}

@media (max-width: 720px) {
    .apply-hero { padding: 110px 0 40px; min-height: auto; }
    .apply-section { padding: 0 0 60px; }

    .campus-card {
        max-width: 92vw;
    }
    .campus-card-logo-wrap { width: 100px; height: 100px; }
    .campus-card-logo { font-size: 56px; }
    .campus-card-footer { font-size: 10px; bottom: 24px; }

    .apply-mini-cards { grid-template-columns: 1fr; }
    .apply-success-actions { flex-direction: column; width: 100%; }
    .btn-success-primary,
    .btn-success-ghost { width: 100%; }

    .campus-card-large { max-width: 92vw; }
}
