/* ══════════════════════════════════════════════════════════════════
   Saveetha Recruitment — Apply Page  (dedicated stylesheet)
   ══════════════════════════════════════════════════════════════════ */

/* ─── Page wrapper ─────────────────────────────────────────────── */
body.page-apply,
body.page-apply-landing {
    background-color: #e8ebf0 !important;
    background-image: none !important;
    min-height: 100vh;
}

body.page-apply,
body.page-apply-landing {
    background-color: #e8ebf0 !important;
    background-image: none !important;
    min-height: 100vh;
    overflow-x: hidden;
}

.apply-page-wrap {
    max-width: 1080px;
    width: 100%;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* ─── Card top bar (inside card — same width as form) ───────────── */
.apply-topbar {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.apply-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.apply-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 200px;
}

.apply-topbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.apply-topbar-text {
    min-width: 0;
}

.apply-topbar-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.02em;
}

.apply-topbar-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.15rem 0 0;
}

.apply-topbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.apply-topbar-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    white-space: nowrap;
}

.apply-topbar-link:hover {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f8fafc;
    text-decoration: none;
}

.apply-topbar-link--primary {
    color: #fff;
    border-color: #1d4ed8;
    background: #2563eb;
}

.apply-topbar-link--primary:hover {
    color: #fff;
    background: #1d4ed8;
}

.apply-topbar-intro {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0.75rem 0 0;
    max-width: 100%;
}

/* ─── Mobile-only header (hidden on desktop) ───────────────────── */
.apply-mobile-head {
    display: none;
}

.apply-mobile-head__top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.apply-mobile-head__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    box-sizing: border-box;
}

.apply-mobile-head__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apply-mobile-head__track {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
    padding: 0.25rem 0;
}

.apply-mobile-head__track:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.apply-mobile-head .mobile-stepper {
    display: block;
    padding: 0.5rem 0 0;
}

.apply-mobile-head .mobile-step-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.apply-mobile-head .mobile-step-info {
    flex: 1;
    min-width: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apply-mobile-head .mobile-step-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    flex-shrink: 0;
}

.apply-mobile-head .mobile-step-badge {
    display: none;
}

.apply-mobile-head .mobile-progress-track {
    height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 999px;
    overflow: hidden;
}

.apply-mobile-head .mobile-progress-fill {
    height: 100%;
    background: #60a5fa;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.apply-page-footer {
    text-align: center;
    padding: 0.75rem 1rem 1.5rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

/* ─── Card shell ────────────────────────────────────────────────── */
.apply-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.055),
        0 4px 6px -1px rgba(0,0,0,.04),
        0 16px 40px -12px rgba(15,23,42,.12);
    overflow: hidden;
    min-height: 520px;
}

.apply-card-inner {
    display: flex;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* Desktop — form scrolls inside card; page does not scroll horizontally */
@media (min-width: 821px) {
    .apply-card {
        height: min(calc(100vh - 2rem), 820px);
    }
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.apply-sidebar {
    width: 248px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #000000 100%);
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem 1.5rem;
    gap: 1.75rem;
    overflow-y: auto;
    /* Sidebar takes full height of card on desktop */
    position: sticky;
    top: 0;
    align-self: stretch;
}

/* Sidebar brand */
.sb-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sb-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.sb-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.sb-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,.55);
    margin-top: 0.1rem;
}

/* Step list */
.sb-steps {
    flex: 1;
}

.sb-steps-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,.35);
    margin-bottom: 0.9rem;
}

.step-nav-list {
    list-style: none;
    position: relative;
}

/* Vertical connector line */
.step-nav-list::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: rgba(255,255,255,.12);
}

.step-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem 0.5rem 0;
    border-radius: 10px;
    margin-bottom: 0.15rem;
    cursor: default;
    transition: background 0.2s;
    position: relative;
}

.step-nav-item.is-active {
    background: rgba(255,255,255,.1);
}

.step-nav-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.45);
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}

.step-nav-item.is-active .step-nav-num {
    background: #3b82f6;
    border-color: #60a5fa;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,.5);
}

.step-nav-item.is-done .step-nav-num {
    background: #059669;
    border-color: #34d399;
    color: #fff;
    box-shadow: 0 4px 12px rgba(5,150,105,.4);
}

.step-nav-item.is-done .step-nav-num::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* Hide number when done (show checkmark via ::after) */
.step-nav-item.is-done .step-nav-num {
    font-size: 0; /* hide number text */
}

.step-nav-text {
    min-width: 0;
    overflow: hidden;
}

.step-nav-name {
    font-size: 0.775rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.step-nav-desc {
    font-size: 0.625rem;
    color: rgba(255,255,255,.25);
    display: block;
    margin-top: 0.1rem;
    transition: color 0.2s;
}

.step-nav-item.is-active .step-nav-name {
    color: #fff;
    font-weight: 700;
}

.step-nav-item.is-active .step-nav-desc {
    color: rgba(255,255,255,.6);
}

.step-nav-item.is-done .step-nav-name {
    color: rgba(255,255,255,.65);
}

/* Sidebar footer / security badge */
.sb-security {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.25rem;
}

.sb-sec-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,.65);
    margin-bottom: 0.4rem;
}

.sb-sec-badge svg {
    color: #34d399;
    flex-shrink: 0;
}

.sb-sec-text {
    font-size: 0.625rem;
    color: rgba(255,255,255,.3);
    line-height: 1.5;
}

/* ─── Main content area ──────────────────────────────────────────── */
.apply-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile stepper (hidden on desktop) */
.mobile-stepper {
    display: none;
    padding: 0.85rem 1.25rem 0;
}

.mobile-step-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mobile-step-info {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.mobile-step-count {
    font-size: 0.7rem;
    color: #94a3b8;
}

.mobile-progress-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.mobile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

/* Form scroll area */
.apply-form-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem 1rem;
    display: flex;
    flex-direction: column;
}

/* ─── Step alert ─────────────────────────────────────────────────── */
.step-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.825rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    animation: alertIn 0.25s ease;
}

.step-alert.hidden {
    display: none;
}

.step-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.step-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.step-alert.success {
    background: #f0fdf4;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.step-alert.info {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.step-alert.warning {
    background: #fffbeb;
    color: #78350f;
    border: 1px solid #fde68a;
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ─── Wizard steps ──────────────────────────────────────────────── */
.wizard-step {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: stepIn 0.3s cubic-bezier(.4,0,.2,1);
}

.wizard-step.active {
    display: flex;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: none; }
}

/* Step header */
.step-head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.step-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon-badge.blue  { background: #eff6ff; color: #2563eb; }
.step-icon-badge.green { background: #f0fdf4; color: #059669; }
.step-icon-badge.purple{ background: #faf5ff; color: #7c3aed; }
.step-icon-badge.amber { background: #fffbeb; color: #d97706; }
.step-icon-badge.rose  { background: #fff1f2; color: #e11d48; }
.step-icon-badge.teal  { background: #f0fdfa; color: #0d9488; }
.step-icon-badge.indigo{ background: #eef2ff; color: #4338ca; }
.step-icon-badge.slate { background: #f8fafc; color: #475569; }

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.step-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

/* ─── Form fields (compact) ──────────────────────────────────────── */
.field-group {
    margin-bottom: 0.8rem;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.field-label .req {
    color: #ef4444;
    font-size: 0.9em;
}

.field-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 0.15rem;
    text-transform: none;
    letter-spacing: 0;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 0.575rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}

.field-input::placeholder { color: #c0cfe0; }

.field-input:hover,
.field-select:hover,
.field-textarea:hover { border-color: #cbd5e1; }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.field-input[readonly],
.field-input:disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.field-input.has-error,
.field-select.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.field-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.55;
}

/* Two-column field grid */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.875rem;
    max-width: 100%;
}

.field-grid .span-2 { grid-column: 1 / -1; }

/* Input with prefix (+91) */
.input-with-addon {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #fff;
}

.input-with-addon:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3.5px rgba(59,130,246,.15);
}

.input-addon {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: #f8fafc;
    border-right: 1.5px solid #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.input-with-addon .field-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    min-width: 0;
}

.input-with-addon .field-input:focus {
    border: none;
    box-shadow: none;
}

/* ─── Channel segmented pill ─────────────────────────────────────── */
.ch-seg {
    display: inline-flex;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.ch-seg-opt {
    display: block;
    cursor: pointer;
}

.ch-seg-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ch-seg-opt span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem;
    border-radius: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    user-select: none;
}

.ch-seg-opt span:hover { color: #374151; }

.ch-seg-opt input:checked + span {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.04);
}

/* ─── OTP boxes ──────────────────────────────────────────────────── */
.otp-boxes-wrap {
    margin: 0.5rem 0 1.25rem;
}

.otp-boxes {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
}

.otp-box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
    caret-color: #2563eb;
}

.otp-box:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.15);
    transform: scale(1.05);
}

.otp-box.filled {
    border-color: #22c55e;
    background: #f0fdf4;
}

.otp-sent-to {
    text-align: center;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.otp-sent-to strong {
    color: #0f172a;
    font-weight: 700;
}

.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.otp-resend-btn {
    background: none;
    border: none;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s;
}

.otp-resend-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

.otp-resend-btn:not(:disabled):hover {
    color: #1d4ed8;
}

#otpCountdown {
    font-weight: 600;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

/* ─── Aadhaar step ───────────────────────────────────────────────── */
.aadhaar-info-card {
    background: linear-gradient(135deg, #fafaf9, #f5f3ff);
    border: 1.5px solid #e0e7ff;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.aadhaar-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.aadhaar-info-text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 0.2rem;
}

.aadhaar-info-text p {
    font-size: 0.75rem;
    color: #4338ca;
    line-height: 1.55;
}

.aadhaar-input-mask {
    letter-spacing: 0.15em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.digi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #1a56db, #0d47a1);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(26,86,219,.3);
    margin-top: 0.875rem;
}

.digi-btn:hover {
    background: linear-gradient(135deg, #1e40af, #1a56db);
    box-shadow: 0 6px 20px rgba(26,86,219,.4);
    transform: translateY(-1px);
}

.digi-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.digi-btn-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,.2);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.825rem;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s;
    margin-top: 0.625rem;
}

.skip-btn:hover {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.aadhaar-verified-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.1rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    margin-top: 1rem;
}

.aadhaar-verified-card.hidden { display: none; }

.aadhaar-verified-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.aadhaar-verified-text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #14532d;
}

.aadhaar-verified-text span {
    font-size: 0.72rem;
    color: #166534;
}

/* Aadhaar loading state */
.aadhaar-loading {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.1rem;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1e40af;
}

.aadhaar-loading.visible { display: flex; }

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(37,99,235,.25);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

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

/* ─── Verified badge pills (personal step) ────────────────────────── */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.625rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #059669;
    margin-left: 0.4rem;
}

.verified-field-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    min-height: 50px;
}

/* ─── File upload ────────────────────────────────────────────────── */
.file-upload-area {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

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

.file-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.625rem;
    color: #4338ca;
}

.file-upload-text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.file-upload-text span {
    font-size: 0.7rem;
    color: #94a3b8;
}

.file-upload-chosen {
    display: none;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: #eff6ff;
    border-radius: 8px;
    margin-top: 0.625rem;
    font-size: 0.775rem;
    font-weight: 500;
    color: #1e40af;
}

.file-upload-chosen.visible { display: flex; }

/* ─── Timeline cards (experience / qualifications) ───────────────── */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.timeline-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.timeline-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.timeline-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.1rem;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}

.timeline-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-card-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-remove-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    background: transparent;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.15s;
}

.timeline-remove-btn:hover {
    background: #fef2f2;
}

.timeline-card-body {
    padding: 1rem 1.1rem;
}

.add-entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    font: inherit;
    font-size: 0.825rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s;
}

.add-entry-btn:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
}

/* ─── Review summary ─────────────────────────────────────────────── */
.review-section {
    margin-bottom: 1rem;
}

.review-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1.5px solid #eff6ff;
}

.review-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.review-table.cols-1 { grid-template-columns: 1fr; }

.review-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.review-row.full { grid-column: 1 / -1; }

.review-row-label {
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
}

.review-row-value {
    font-size: 0.8375rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.review-row-value.muted { color: #94a3b8; font-style: italic; }

.review-entries {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.review-entry {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8125rem;
}

.review-entry-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.review-entry-body strong {
    display: block;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.review-entry-body span {
    color: #64748b;
    font-size: 0.77rem;
}

.review-disclaimer {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem 0.875rem;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    font-size: 0.775rem;
    color: #78350f;
    line-height: 1.55;
}

.review-disclaimer svg { flex-shrink: 0; color: #d97706; margin-top: 2px; }

/* ─── Step actions bar ───────────────────────────────────────────── */
.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    max-width: 100%;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-back.hidden { display: none; }

.btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(37,99,235,.3);
    white-space: nowrap;
    margin-left: auto;
}

.btn-next:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    box-shadow: 0 6px 20px rgba(37,99,235,.4);
    transform: translateY(-1px);
}

.btn-next:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-next.is-submit {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 15px rgba(5,150,105,.3);
}

.btn-next.is-submit:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 6px 20px rgba(5,150,105,.4);
}

/* ─── Responsive — Tablet / Mobile ─────────────────────────────── */
@media (max-width: 820px) {
    body.page-apply,
    body.page-apply-landing {
        background: #fff !important;
    }

    .apply-page-wrap {
        padding: 0;
        margin: 0;
        max-width: none;
    }

    .apply-card {
        min-height: 100dvh;
        height: auto;
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
    }

    .apply-topbar--desktop {
        display: none;
    }

    .apply-mobile-head {
        display: block;
        background: #0f172a;
        padding: 0.625rem 0.875rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .apply-card-inner {
        flex-direction: column;
        flex: 1;
    }

    .apply-main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .apply-sidebar {
        display: none !important;
    }

    .apply-form-area {
        flex: 1;
        padding: 1.25rem 1rem 1.5rem;
        overflow-y: auto;
    }

    #applicationForm {
        display: block;
    }

    .wizard-step.active {
        display: block;
    }

    .field-helper--otp-note {
        margin-top: 0.35rem;
        margin-bottom: 0;
        font-size: 0.6rem;
        color: #94a3b8;
        line-height: 1.2;
        white-space: nowrap;
    }

    .step-head {
        margin-bottom: 1rem;
    }

    .step-icon-badge {
        display: none;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-subtitle {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    .step-actions {
        position: static;
        margin-top: 0.625rem;
        padding-top: 0.625rem;
        border-top: 1px solid #f1f5f9;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: flex-end;
    }

    .btn-next {
        flex: 0 0 auto;
        margin-left: auto;
        min-height: 44px;
        padding: 0.7rem 1.35rem;
        border-radius: 10px;
    }

    .btn-back {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .btn-back.hidden + .btn-next {
        width: auto;
    }

    .apply-page-footer {
        padding-bottom: 1.5rem;
    }

    .otp-boxes { gap: 0.5rem; }
    .otp-box { width: 44px; height: 52px; font-size: 1.375rem; }

    .review-grid { grid-template-columns: 1fr; }
    .review-card.span-2 { grid-column: 1; }
}

/* ─── Responsive — Small mobile ─────────────────────────────────── */
@media (max-width: 520px) {
    .apply-mobile-head {
        padding: 0.5rem 0.75rem 0.4375rem;
    }

    .apply-mobile-head__logo {
        width: 26px;
        height: 26px;
    }

    .apply-mobile-head__title {
        font-size: 0.75rem;
    }

    .apply-form-area {
        padding: 1rem 0.875rem 1.25rem;
    }

    .field-helper--otp-note {
        font-size: 0.5625rem;
    }

    .step-head { flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
    .step-title { font-size: 1.125rem; }

    .field-grid { grid-template-columns: 1fr; }
    .field-grid .span-2 { grid-column: 1; }

    .otp-boxes { gap: 0.375rem; }
    .otp-box { width: 38px; height: 46px; font-size: 1.2rem; border-radius: 10px; }

    .btn-next { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
    .btn-back { padding: 0.7rem 1rem; font-size: 0.825rem; }

    .digi-btn { font-size: 0.85rem; padding: 0.8rem 1rem; }
}

/* ─── Scrollbar (form area) ──────────────────────────────────────── */
.apply-form-area::-webkit-scrollbar { width: 4px; }
.apply-form-area::-webkit-scrollbar-track { background: transparent; }
.apply-form-area::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.apply-form-area::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

.apply-sidebar::-webkit-scrollbar { width: 3px; }
.apply-sidebar::-webkit-scrollbar-track { background: transparent; }
.apply-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* ─── Section divider ────────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.875rem 0;
}

/* ─── Helper text under field ────────────────────────────────────── */
.field-helper {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.35rem;
    line-height: 1.4;
}

.field-helper.error {
    color: #ef4444;
}

/* ─── Skills / tags ──────────────────────────────────────────────── */
.skills-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}

/* ─── Submission success (inline, no redirect) ─────────────────── */
#applicationForm.hidden {
    display: none;
}

.apply-success-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.apply-success-panel.hidden {
    display: none;
}

.apply-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.2);
}

.apply-success-title {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.apply-success-lead {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

.apply-success-ref-wrap {
    width: 100%;
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.apply-success-ref-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin: 0 0 0.35rem;
}

.apply-success-ref {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #0f172a;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
    word-break: break-all;
}

.apply-success-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.apply-success-copy:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.apply-success-note {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 1.5rem;
    max-width: 26rem;
}

.apply-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 320px;
}

.apply-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.apply-success-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.apply-success-btn--google {
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.apply-success-btn--google:hover {
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.apply-success-btn--secondary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.apply-success-btn--secondary:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
}

@media (max-width: 520px) {
    .apply-success-panel {
        padding: 1.5rem 0.75rem 2rem;
    }

    .apply-success-icon {
        width: 60px;
        height: 60px;
    }

    .apply-success-icon svg {
        width: 28px;
        height: 28px;
    }
}