/**
 * Dell AI Academy 2026 - Application Form
 * Modern Professional Corporate Design
 */

:root {
    --form-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-light: #e2e8f0;
    --border-focus: #0076ce;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success-green: #10b981;
    --error-red: #ef4444;
}

/* Roboto for text — do NOT override Font Awesome icon fonts */
.apply-page {
    font-family: 'Roboto Local', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.apply-page h1,
.apply-page h2,
.apply-page h3,
.apply-page h4,
.apply-page h5,
.apply-page h6,
.apply-page p,
.apply-page label,
.apply-page input,
.apply-page select,
.apply-page textarea,
.apply-page button,
.apply-page .form-control,
.apply-page .form-select,
.apply-page a,
.apply-page span:not([class*="fa-"]) {
    font-family: 'Roboto Local', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.apply-page .fa,
.apply-page .fas,
.apply-page .far,
.apply-page .fab,
.apply-page .fal,
.apply-page .fad {
    font-family: "Font Awesome 6 Free" !important;
}

.apply-page .fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.apply-page .fas,
.apply-page .fa-solid {
    font-weight: 900 !important;
}

.apply-page .far,
.apply-page .fa-regular {
    font-weight: 400 !important;
}

/* Page Layout */
.apply-page {
    min-height: 100vh;
    background: linear-gradient(165deg, #f0f6fc 0%, #e8f0f8 45%, #eef2f7 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background illustration */
.apply-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.apply-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.apply-bg-glow--1 {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(0, 118, 206, 0.22) 0%, transparent 70%);
    animation: applyGlowDrift 14s ease-in-out infinite;
}

.apply-bg-glow--2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -60px;
    background: radial-gradient(circle, rgba(0, 118, 206, 0.16) 0%, transparent 70%);
    animation: applyGlowDrift 18s ease-in-out infinite reverse;
}

.apply-bg-glow--3 {
    width: 320px;
    height: 320px;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
    animation: applyGlowPulse 10s ease-in-out infinite;
}

.apply-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 118, 206, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 118, 206, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
    animation: applyGridFade 8s ease-in-out infinite;
}

.apply-bg-scene {
    position: absolute;
    top: 12%;
    right: 8%;
    width: min(420px, 45vw);
    height: min(420px, 45vw);
    opacity: 0.55;
}

@media (max-width: 991.98px) {
    .apply-bg-scene {
        top: 8%;
        right: 50%;
        transform: translateX(50%);
        width: min(320px, 70vw);
        height: min(320px, 70vw);
        opacity: 0.35;
    }
}

.apply-bg-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.apply-bg-orbit--1 {
    width: 100%;
    height: 100%;
    animation: applyOrbitSpin 40s linear infinite;
}

.apply-bg-orbit--2 {
    width: 75%;
    height: 75%;
    animation: applyOrbitSpin 55s linear infinite reverse;
}

.apply-bg-ring {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 118, 206, 0.15);
    border-radius: 50%;
}

.apply-bg-ring--dashed {
    border-style: dashed;
    border-color: rgba(0, 118, 206, 0.12);
}

.apply-bg-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
}

.apply-bg-core-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, #0076ce 0%, #00a3e0 100%);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 118, 206, 0.25);
    animation: applyCoreFloat 6s ease-in-out infinite;
}

.apply-bg-core-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.apply-bg-core-pulse {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 118, 206, 0.35);
    border-radius: 50%;
    animation: applyCorePulse 3s ease-out infinite;
}

.apply-bg-core-pulse--delay {
    animation-delay: 1.5s;
}

.apply-bg-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 118, 206, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 118, 206, 0.1);
    color: var(--primary-blue);
    font-size: 0.9rem;
    animation: applyNodeFloat 7s ease-in-out infinite;
}

.apply-bg-node--1 { top: 8%; left: 18%; animation-delay: 0s; }
.apply-bg-node--2 { top: 22%; right: 5%; animation-delay: -1.2s; }
.apply-bg-node--3 { bottom: 28%; left: 5%; animation-delay: -2.4s; }
.apply-bg-node--4 { bottom: 12%; right: 20%; animation-delay: -3.6s; }
.apply-bg-node--5 { top: 48%; left: 0; animation-delay: -4.8s; }

.apply-bg-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.apply-bg-line {
    stroke-dasharray: 8 12;
    animation: applyLineFlow 20s linear infinite;
}

.apply-bg-line--2 {
    animation-duration: 26s;
    animation-direction: reverse;
}

.apply-bg-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 118, 206, 0.35);
    border-radius: 50%;
    animation: applyParticleFloat 12s ease-in-out infinite;
}

.apply-bg-particles span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.apply-bg-particles span:nth-child(2) { top: 25%; left: 75%; animation-delay: -2s; }
.apply-bg-particles span:nth-child(3) { top: 60%; left: 20%; animation-delay: -4s; }
.apply-bg-particles span:nth-child(4) { top: 70%; left: 85%; animation-delay: -1s; }
.apply-bg-particles span:nth-child(5) { top: 40%; left: 50%; animation-delay: -3s; }
.apply-bg-particles span:nth-child(6) { top: 85%; left: 40%; animation-delay: -5s; }
.apply-bg-particles span:nth-child(7) { top: 10%; left: 45%; animation-delay: -2.5s; }
.apply-bg-particles span:nth-child(8) { top: 50%; left: 8%; animation-delay: -4.5s; }

@keyframes applyGlowDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.08); }
}

@keyframes applyGlowPulse {
    0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes applyGridFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes applyOrbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes applyCoreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes applyCorePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes applyNodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes applyLineFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -200; }
}

@keyframes applyParticleFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(8px, -20px); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
    .apply-bg *,
    .apply-bg *::before,
    .apply-bg *::after {
        animation: none !important;
    }
}

/* Header */
.apply-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.apply-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apply-header-logo img {
    height: 28px;
    width: auto;
}

.apply-header-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.apply-header-back:hover {
    background: var(--form-bg);
    color: var(--primary-blue);
}

.apply-header-back i {
    font-size: 0.75rem;
}

/* Main Container */
.apply-container {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* Page Title Section */
.apply-title-section {
    text-align: center;
    margin-bottom: 2rem;
}

.apply-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 118, 206, 0.1) 0%, rgba(0, 118, 206, 0.05) 100%);
    border: 1px solid rgba(0, 118, 206, 0.2);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.apply-badge i {
    font-size: 0.7rem;
}

.apply-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.apply-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Progress Steps */
.apply-progress {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    position: relative;
}

.apply-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    min-width: 120px;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-circle {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 118, 206, 0.3);
}

.progress-step.completed .progress-step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
    color: white;
}

.progress-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Form Card */
.apply-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 
                0 4px 12px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Alert Messages */
.apply-alert {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.apply-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.apply-alert-error i {
    color: var(--error-red);
    font-size: 1.125rem;
    margin-top: 1px;
}

.apply-alert-content strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 0.25rem;
}

.apply-alert-content p {
    font-size: 0.8125rem;
    color: #b91c1c;
    margin: 0;
    line-height: 1.5;
}

/* Form Sections */
.apply-form-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.apply-form-section:last-of-type {
    border-bottom: none;
}

/* Form section headings — clean corporate style */
.form-section-heading {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.form-section-title .form-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    font-size: 1rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.form-section-desc {
    margin: 0;
    padding-left: 1.875rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--error-red);
    margin-left: 2px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

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

.form-control:hover,
.form-select:hover {
    border-color: #cbd5e1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 118, 206, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--error-red);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* University combobox */
.university-combobox {
    position: relative;
}

.university-combobox-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--card-bg);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.university-combobox-control:focus-within,
.university-combobox.is-open .university-combobox-control {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 118, 206, 0.12);
}

.university-field:has(.university-native-select.is-invalid) .university-combobox-control,
.was-validated .university-field:has(.university-native-select:invalid) .university-combobox-control {
    border-color: var(--error-red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.university-combobox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 48px;
    color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 118, 206, 0.08) 0%, rgba(0, 118, 206, 0.03) 100%);
    border-right: 1px solid var(--border-light);
    font-size: 1rem;
}

.university-combobox-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 0.75rem;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: transparent;
}

.university-combobox-input::placeholder {
    color: var(--text-muted);
}

.university-combobox-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 48px;
    border: none;
    border-left: 1px solid var(--border-light);
    background: var(--form-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.university-combobox-toggle:hover {
    background: rgba(0, 118, 206, 0.06);
    color: var(--primary-blue);
}

.university-combobox.is-open .university-combobox-toggle i {
    transform: rotate(180deg);
}

.university-combobox-toggle i {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.university-combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.university-combobox-dropdown[hidden] {
    display: none;
}

.university-combobox-option {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.university-combobox-option:hover,
.university-combobox-option.is-highlighted {
    background: rgba(0, 118, 206, 0.08);
    color: var(--primary-blue);
}

.university-combobox-option.is-selected {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 500;
}

.university-combobox-empty {
    padding: 1rem 0.85rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.university-combobox-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.university-combobox-meta.is-error {
    color: var(--error-red);
}

.university-combobox-meta.is-success {
    color: var(--primary-blue);
}

.university-combobox-meta .fa-spin {
    font-size: 0.7rem;
}

.university-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.was-validated .university-field:has(.university-native-select:invalid) > .invalid-feedback,
.university-field:has(.university-native-select.is-invalid) > .invalid-feedback {
    display: block;
}

.invalid-feedback {
    font-size: 0.75rem;
    color: var(--error-red);
    margin-top: 0.375rem;
    display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: var(--form-bg);
    border: 1.5px solid var(--border-light);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.phone-input-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* Radio Options */
.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-option label:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.radio-option input:checked + label {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 118, 206, 0.25);
}

.radio-option input:focus-visible + label {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: var(--form-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-blue);
    background: rgba(0, 118, 206, 0.03);
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.upload-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.upload-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.upload-text span {
    color: var(--primary-blue);
}

.upload-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.file-selected {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 118, 206, 0.08);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.file-selected i {
    font-size: 0.875rem;
}

.file-selected.d-none {
    display: none !important;
}

/* Form Footer */
.apply-form-footer {
    padding: 1.5rem 2rem;
    background: var(--form-bg);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0066b3 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 118, 206, 0.25);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 118, 206, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 0.875rem;
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.is-loading .btn-submit-icon {
    display: none;
}

.btn-submit.is-loading .btn-submit-label::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: applyBtnSpin 0.7s linear infinite;
}

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

/* Submit loading overlay */
.apply-submit-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

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

.apply-submit-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.apply-submit-loader-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    padding: 2rem 1.75rem;
    text-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.apply-submit-loader-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    border: 4px solid rgba(0, 118, 206, 0.15);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: applyBtnSpin 0.8s linear infinite;
}

.apply-submit-loader-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.apply-submit-loader-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.btn-cancel {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.btn-cancel:hover {
    color: var(--primary-blue);
}

/* Success confirmation modal */
.apply-success-placeholder {
    min-height: 40vh;
}

.apply-success-modal .modal-dialog {
    max-width: 480px;
}

.apply-success-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.apply-success-modal-body {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
}

.apply-success-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    animation: successPulse 2s ease-in-out infinite;
}

.apply-success-modal-icon i {
    font-size: 2.25rem;
    color: #fff;
}

.apply-success-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.apply-success-modal-message {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.apply-success-modal-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.apply-success-modal-redirect {
    font-size: 0.8125rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin: 0 0 1.5rem;
}

.apply-success-modal-btn {
    width: 100%;
    text-decoration: none;
}

.apply-success-modal.show .modal-dialog {
    animation: applyModalIn 0.35s ease-out;
}

@keyframes applyModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Legacy success panel (kept for reference) */
.apply-success {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.apply-success h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.apply-success p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 380px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: var(--primary-blue);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-home:hover {
    background: #0066b3;
    color: white;
    transform: translateY(-1px);
}

/* Footer */
.apply-footer {
    position: relative;
    z-index: 1;
    background: var(--primary-dark);
    padding: 1.25rem 0;
    margin-top: auto;
}

.apply-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apply-footer-logo img {
    height: 22px;
    width: auto;
    opacity: 0.9;
}

.apply-footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .apply-container {
        padding: 1.5rem 1rem 3rem;
    }

    .apply-title {
        font-size: 1.5rem;
    }

    .apply-progress {
        gap: 0;
    }

    .apply-progress::before {
        width: 70%;
    }

    .progress-step {
        min-width: 80px;
    }

    .progress-step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .progress-step-label {
        font-size: 0.6875rem;
    }

    .apply-form-section {
        padding: 1.5rem;
    }

    .form-section-title {
        font-size: 1rem;
    }

    .form-section-desc {
        padding-left: 1.75rem;
    }

    .apply-form-footer {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
    }

    .btn-submit {
        width: 100%;
    }

    .apply-footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .apply-title-section {
        margin-bottom: 1.5rem;
    }

    .apply-badge {
        font-size: 0.6875rem;
        padding: 0.4rem 0.875rem;
    }

    .radio-options {
        flex-direction: column;
    }

    .university-combobox-dropdown {
        max-height: 200px;
    }

    .university-combobox-input {
        font-size: 0.875rem;
    }

    .radio-option label {
        width: 100%;
        justify-content: center;
    }

    .file-upload-area {
        padding: 1.5rem 1rem;
    }

    .upload-icon {
        width: 56px;
        height: 56px;
    }
}

/* Grid helpers */
.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    .form-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
