/* === GLOBAL & VARIABLES === */
:root {
    --primary: hsl(210, 85%, 56%);
    --primary-dark: hsl(210, 85%, 44%);
    --primary-bg: hsl(210, 85%, 97%);
    --success: hsl(152, 68%, 40%);
    --danger: hsl(0, 70%, 52%);
    --bg: hsl(215, 25%, 96%);
    --surface: #ffffff;
    --border: hsl(215, 20%, 88%);
    --text: hsl(215, 25%, 18%);
    --text-muted: hsl(215, 15%, 52%);
    --radius: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }

/* === index.php === */
html { scroll-behavior: smooth; }

    

    /* ─────────────────────────────────────────────────────── NAV */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 0 5%;
    }

    .navbar-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
        gap: 20px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: inherit;
    }
    .brand img { width: 38px; }
    .brand-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
    .brand-sub  { font-size: 0.72rem; color: var(--text-muted); }

    .nav-links { display: flex; align-items: center; gap: 6px; }
    .nav-links a {
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-muted);
        text-decoration: none;
        padding: 8px 14px;
        border-radius: 8px;
        transition: color 0.2s, background 0.2s;
    }
    .nav-links a:hover { color: var(--primary); background: var(--primary-bg); }

    .nav-cta {
        background: var(--primary);
        color: white !important;
        font-weight: 600 !important;
        padding: 9px 20px !important;
        border-radius: 8px !important;
        box-shadow: 0 3px 10px rgba(37,99,235,0.3);
        transition: all 0.2s !important;
    }
    .nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); color: white !important; }

    /* ─────────────────────────────────────────────────────── HERO GUIDE */
    .hero-guide {
        background: linear-gradient(145deg, var(--primary) 0%, hsl(210,85%,35%) 60%, hsl(220,80%,28%) 100%);
        color: white;
        padding: 80px 5% 100px;
        position: relative;
        overflow: hidden;
    }

    .hero-guide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: 
            radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
            radial-gradient(circle at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
    }

    .hero-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: block;
        position: relative;
        z-index: 2;
    }

    .hero-text-side h1 {
        font-size: clamp(2.2rem, 4.5vw, 3.6rem);
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: -0.04em;
        margin-bottom: 20px;
    }
    .hero-text-side h1 em { font-style: normal; color: hsl(190,100%,50%); }

    .hero-intro {
        font-size: 1.1rem;
        margin-left: auto; 
        margin-right: auto;
        color: white;
        opacity: 1;
        line-height: 1.7;
        margin-bottom: 36px;
        max-width: 560px;
    }

    .quick-requirements {
        display: flex;
        gap: 20px;
        margin-bottom: 40px;
    }
    .req-item {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        padding: 12px 20px;
        border-radius: 12px;
        backdrop-filter: blur(8px);
    }
    .req-item span { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }
    .req-item strong { font-size: 1.3rem; font-weight: 800; }

    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
    .btn-hero-primary {
        background: white;
        color: var(--primary);
        font-weight: 700;
        padding: 15px 32px;
        border-radius: 10px;
        text-decoration: none;
        box-shadow: 0 4px 18px rgba(0,0,0,0.2);
        transition: all 0.2s;
    }
    .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

    .btn-hero-outline {
        background: rgba(255,255,255,0.12);
        border: 1.5px solid rgba(255,255,255,0.3);
        color: white;
        font-weight: 600;
        padding: 14px 28px;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.2s;
    }
    .btn-hero-outline:hover { background: rgba(255,255,255,0.2); }

    /* Guide Card */
    .guide-card {
        background: transparent;
        color: var(--text);
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    .guide-section { margin-bottom: 24px; }
    .guide-section h3 {
        font-size: 0.9rem;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--text);
        letter-spacing: 0.05em;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-bg);
    }
    
    .guide-flow { display: flex; flex-direction: column; gap: 20px; }
    .flow-step { border-left: 3px solid var(--primary-light); padding-left: 20px; }
    .flow-step strong { font-size: 0.95rem; color: var(--primary); margin-bottom: 6px; }
    .flow-step h3 {display: block; font-size: 0.95rem; color: var(--primary); margin-bottom: 6px;}
    .flow-step p { font-size: 0.88rem; color: #444; line-height: 1.6; margin: 0; }
    .guide-section ul { list-style: none; }
    .guide-section li {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 14px;
        padding-left: 20px;
        position: relative;
    }
    .guide-section li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--primary);
        font-weight: 900;
    }

    .account-details {
        background: var(--primary-bg);
        border: 1.5px dashed hsl(210,85%,85%);
        max-width: 500px;
        border-radius: 10px;
        line-height: 1.6;
        padding: 14px 18px;
        letter-spacing: 0.06em;
        margin-top: 10px;
        font-size: 0.95rem;
    }

    .account-title {
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        
        color: var(--primary);
        margin-bottom: 4px;
        padding-bottom: 4px;
        border-bottom: 2px solid var(--primary-light);
    }

    .guide-section.requirements p {
        background: hsl(215,25%,97%);
        padding: 16px;
        border-radius: 12px;
        font-size: 0.85rem;
        line-height: 1.6;
        font-weight: 500;
    }

    .screening-alert {
        background: var(--primary-bg);
        border: 1px solid var(--primary-light);
        padding: 16px;
        border-radius: 12px;
        font-size: 0.9rem;
        color: var(--primary);
        text-align: center;
    }

    /* ─────────────────────────────────────────────────────── PROCESS */
    .section { padding: 70px 5%; }
    .section-inner { max-width: 1200px; margin: 0 auto; }

    .section-tag {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--primary);
        margin-bottom: 10px;
    }
    .section-title {
        font-size: clamp(1.4rem, 2.5vw, 2rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 14px;
        color: var(--text);
    }
    .section-sub { font-size: 1rem; color: var(--text-muted); max-width: 520px; }

    .process-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0;
        margin-top: 48px;
        position: relative;
    }

    .process-grid::before {
        content: '';
        position: absolute;
        top: 36px;
        left: 8%;
        right: 8%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-bg), var(--primary-light), var(--primary-bg));
        z-index: 0;
    }

    .process-step {
        text-align: center;
        padding: 0 12px;
        position: relative;
        z-index: 1;
    }

    .step-bubble {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: var(--surface);
        border: 2.5px solid var(--primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 18px;
        color: var(--primary);
        box-shadow: 0 4px 16px rgba(37,99,235,0.15);
        transition: all 0.2s;
    }

    .process-step:hover .step-bubble {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(37,99,235,0.3);
    }

    .step-num-label {
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--primary);
        margin-bottom: 6px;
    }

    .process-step h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
    .process-step p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

    /* ─────────────────────────────────────────────────────── CTA */
    .cta-section {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        margin: 0 auto 60px;
        border-radius: 20px;
        padding: 56px 60px;
        color: white;
        display: flex;
        width: 90%;
        max-width: 1200px;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        flex-wrap: wrap;
        box-shadow: var(--shadow-lg);
    }

    .cta-text h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
    .cta-text p  { font-size: 0.95rem; opacity: 0.85; color: #fff; }

    .cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

    .btn-cta-white {
        background: white;
        color: var(--primary-dark);
        font-weight: 700;
        font-size: 0.95rem;
        padding: 14px 28px;
        border-radius: 10px;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(0,0,0,0.1);
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

    .btn-cta-ghost {
        background: rgba(255,255,255,0.12);
        border: 1.5px solid rgba(255,255,255,0.3);
        color: white;
        font-weight: 600;
        font-size: 0.92rem;
        padding: 13px 22px;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .btn-cta-ghost:hover { background: rgba(255,255,255,0.22); }

    /* ─────────────────────────────────────────────────────── FOOTER */
    footer {
        background: hsl(215,25%,14%);
        color: hsl(215,15%,65%);
        padding: 40px 5%;
        text-align: center;
        font-size: 0.85rem;
    }
    footer strong { color: hsl(215,15%,85%); }
    footer .footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
    footer .footer-links a { color: hsl(215,15%,60%); text-decoration: none; transition: color 0.2s; }
    footer .footer-links a:hover { color: var(--primary-light); }

    /* ─────────────────────────────────────────────────────── RESPONSIVE */
    @media (max-width: 1024px) {
        .hero-inner { grid-template-columns: 1fr; gap: 40px; }
        .hero-text-side { text-align: center; }
        .hero-intro { margin-inline: auto; }
        .quick-requirements { justify-content: center; }
        .hero-actions { justify-content: center; }
        .guide-card { max-width: 600px; margin: 0 auto; }
    }

    @media (max-width: 768px) {
        .hero-guide { padding-top: 60px; }
        .cta-section { padding: 36px 28px; }
        .process-grid::before { display: none; }
        .nav-links .hide-mobile { display: none; }
    }

/* === start-application.php === */
.page-card {
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        width: 100%;
        max-width: 760px;
        margin: 40px auto;
    }

    /* Header */
    .page-head {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        padding: 36px 44px;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .page-head img { width: 60px; flex-shrink: 0; }
    .page-head h1 { font-size: 1.4rem; font-weight: 700; }
    .page-head p  { font-size: 0.85rem; opacity: 0.88; margin-top: 4px; }

    /* Steps indicator */
    .steps-bar {
        display: flex;
        gap: 0;
        background: hsl(210,85%,97%);
        border-bottom: 1px solid hsl(210,85%,88%);
        padding: 0 44px;
        overflow-x: auto;
    }
    .step-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 18px 14px 0;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--text-muted);
        white-space: nowrap;
    }
    .step-item .step-num {
        width: 22px; height: 22px;
        border-radius: 50%;
        background: var(--border);
        color: var(--text-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 700;
        flex-shrink: 0;
    }
    .step-item.active .step-num { background: var(--primary); color: white; }
    .step-item.active { color: var(--primary); }
    .step-arrow { color: var(--border); font-size: 0.8rem; margin-right: 18px; }

    /* Body */
    .page-body { padding: 36px 44px 44px; }

    /* Error/success alerts */
    .alert {
        border-radius: 8px;
        padding: 14px 18px;
        font-size: 0.875rem;
        margin-bottom: 28px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    .alert-error { background: var(--danger-bg); border: 1.5px solid hsl(0,70%,85%); color: hsl(0,55%,30%); }
    .alert-icon { flex-shrink: 0; font-size: 1rem; }

    /* Panels */
    .panel {
        border: 1.5px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 20px;
    }
    .panel-head {
        background: hsl(215,25%,98%);
        border-bottom: 1.5px solid var(--border);
        padding: 14px 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .panel-head h2 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
    .panel-head p  { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
    .panel-body { padding: 24px 28px; }

    .divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 6px 0 20px;
        color: var(--text-muted);
        font-size: 0.8rem;
        font-weight: 600;
    }
    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .form-group { margin-bottom: 16px; }
    label {
        display: block;
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin-bottom: 6px;
    }
    input[type="email"],
    input[type="text"] {
        width: 100%;
        padding: 11px 14px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        font-family: inherit;
        font-size: 0.95rem;
        color: var(--text);
        background: hsl(215,25%,99%);
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(210,85%,92%); background: #fff; }

    .btn {
        width: 100%;
        padding: 13px;
        border: none;
        border-radius: 8px;
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        box-shadow: 0 4px 14px rgba(37,99,235,0.28);
    }
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.38); }

    .btn-outline {
        background: transparent;
        border: 1.5px solid var(--border);
        color: var(--text-muted);
    }
    .btn-outline:hover { background: hsl(215,20%,96%); border-color: var(--primary); color: var(--primary); }

    .tip-box {
        background: var(--primary-bg);
        border-left: 4px solid var(--primary);
        border-radius: 0 8px 8px 0;
        padding: 12px 16px;
        font-size: 0.82rem;
        color: hsl(210,50%,30%);
        margin-top: 14px;
        line-height: 1.6;
    }

    .new-payment-link {
        text-align: center;
        margin-top: 24px;
        font-size: 0.85rem;
        color: var(--text-muted);
    }
    .new-payment-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
    .new-payment-link a:hover { text-decoration: underline; }

    @media (max-width: 600px) {
        .page-head { padding: 24px 20px; flex-direction: column; text-align: center; }
        .page-
        .steps-bar { padding: 0 20px; }
    }

/* === payment.php === */
* {
        box-sizing: border-box;
    }

    

    .container {
        max-width: 500px;
        width: 100%;
        background-color: white;
        padding: 40px;
        border-radius: 14px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    }

    .header {
        text-align: center;
        margin-bottom: 30px;
    }

    .header h1 {
        color: hsl(210, 85%, 50%);
        font-size: 24px;
        font-weight: 700;
        margin: 0 0 10px 0;
    }

    .header p {
        color: #666;
        margin: 0;
        font-size: 14px;
    }

    .logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
        background: linear-gradient(135deg, hsl(210,85%,56%), hsl(210,85%,44%));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        color: white;
        box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    }

    .info-box {
        background-color: #f0f7ff;
        border-left: 4px solid #007bff;
        padding: 15px;
        margin-bottom: 25px;
        border-radius: 4px;
    }

    .info-box h3 {
        margin: 0 0 10px 0;
        color: #007bff;
        font-size: 16px;
    }

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

    .fee-display {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
    }

    .fee-display .label {
        font-weight: 600;
        color: #333;
    }

    .fee-display .amount {
        font-size: 24px;
        font-weight: 700;
        color: #007bff;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

    input[type="email"],
    select {
        width: 100%;
        padding: 12px;
        border: 2px solid #e0e0e0;
        border-radius: 4px;
        font-size: 14px;
        font-family: inherit;
        transition: all 0.3s;
    }

    input[type="email"]:focus,
    select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

    .error {
        background-color: #fff3cd;
        color: #856404;
        padding: 12px;
        border-radius: 4px;
        margin-bottom: 20px;
        border: 1px solid #ffc107;
        display: none;
    }

    .error.show {
        display: block;
    }

    button {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, hsl(210,85%,56%) 0%, hsl(210,85%,44%) 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        margin-top: 10px;
        box-shadow: 0 4px 14px rgba(37,99,235,0.28);
    }

    button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,235,0.38);
    }

    button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        box-shadow: none;
    }

    .terms {
        font-size: 12px;
        color: #999;
        margin-top: 15px;
        text-align: center;
    }

    .terms a {
        color: #007bff;
        text-decoration: none;
    }

    .terms a:hover {
        text-decoration: underline;
    }

    .payment-methods {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        font-size: 12px;
        color: #666;
    }

    .payment-methods span {
        background-color: #f0f0f0;
        padding: 4px 8px;
        border-radius: 3px;
    }

    .footer-text {
        text-align: center;
        margin-top: 20px;
        font-size: 13px;
        color: #999;
    }

    .spinner {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 8px;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

/* === application.php === */
.page-wrapper { max-width: 900px; margin: 0 auto; }

    /* Header */
    .page-header {
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 28px 36px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .page-header img { width: 64px; }
    .page-header h1 { font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1.3; }
    .page-header p { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }

    /* Payment status */
    .paid-notice {
        background: var(--success-bg);
        border: 1.5px solid var(--success-border);
        border-radius: 8px;
        padding: 12px 18px;
        font-size: 0.875rem;
        color: hsl(152, 40%, 28%);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Card sections */
    .form-card {
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 32px 36px;
        margin-bottom: 20px;
    }

    .section-heading {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        padding-bottom: 12px;
        border-bottom: 2px solid var(--primary-bg);
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Form elements */
    .row { display: flex; gap: 18px; margin-bottom: 18px; }
    .row .form-group { flex: 1; margin-bottom: 0; }
    .form-group { margin-bottom: 18px; }

    label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 6px;
    }

    label .req { color: var(--danger); margin-left: 2px; }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    input[type="file"],
    select,
    textarea {
        width: 100%;
        padding: 11px 14px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        font-family: inherit;
        font-size: 0.95rem;
        color: var(--text);
        background: hsl(215, 25%, 99%);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px hsl(210, 85%, 92%);
        background: #fff;
    }

    input::placeholder, textarea::placeholder { color: hsl(215, 15%, 68%); }

    .hint { font-size: 0.775rem; color: var(--text-muted); margin-top: 5px; }
    .hint.danger { color: var(--danger); }

    /* Education entries */
    .education-entry {
        border: 1.5px solid var(--border);
        border-radius: 10px;
        padding: 22px;
        margin-bottom: 16px;
        background: hsl(215, 25%, 99%);
        position: relative;
        transition: border-color 0.2s;
    }
    .education-entry:hover { border-color: hsl(210, 40%, 78%); }

    .edu-entry-num {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--primary);
        margin-bottom: 16px;
        padding: 4px 10px;
        background: var(--primary-bg);
        border-radius: 20px;
        display: inline-block;
    }

    /* Document entries */
    .document-entry {
        border: 1.5px solid var(--border);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 14px;
        background: hsl(215, 25%, 99%);
    }

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 11px 22px;
        border-radius: 8px;
        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.2s;
        text-decoration: none;
    }

    .btn-add {
        background: var(--primary-bg);
        color: var(--primary);
        border: 1.5px solid hsl(210, 85%, 85%);
        margin-top: 4px;
    }
    .btn-add:hover { background: hsl(210, 85%, 93%); }

    .btn-remove {
        background: var(--danger-bg);
        color: var(--danger);
        border: 1.5px solid hsl(0, 70%, 88%);
        font-size: 0.8rem;
        padding: 7px 14px;
        margin-top: 12px;
        display: none;
    }
    .btn-remove.show { display: inline-flex; }
    .btn-remove:hover { background: hsl(0, 70%, 93%); }

    .btn-review {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(37,99,235,0.35);
        justify-content: center;
        transition: all 0.2s;
    }
    .btn-review:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 22px rgba(37,99,235,0.45);
    }
    .btn-review:active { transform: translateY(0); }

    @media (max-width: 640px) {
        .form-card { padding: 20px; }
        .row { flex-direction: column; gap: 0; }
        .row .form-group { margin-bottom: 18px; }
        .page-header { flex-direction: column; text-align: center; }
    }

/* === preview.php === */
.page-wrapper { max-width: 900px; margin: 0 auto; }

    .review-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white; border-radius: var(--radius); padding: 28px 36px;
        margin-bottom: 20px; display: flex; align-items: center; gap: 20px;
    }
    .review-header img { width: 56px; }
    .review-header h1 { font-size: 1.35rem; font-weight: 700; }
    .review-header p { font-size: 0.85rem; opacity: 0.88; margin-top: 3px; }

    .ref-tag {
        text-align: right; font-size: 0.8rem; color: var(--text-muted);
        margin-bottom: 20px;
    }
    .ref-tag strong { color: var(--primary); }

    .card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 18px; }

    .section-title {
        font-size: 0.95rem; font-weight: 700; color: var(--primary);
        border-bottom: 2px solid var(--primary-bg); padding-bottom: 10px; margin-bottom: 20px;
    }

    /* Profile block */
    .profile-block { display: flex; gap: 24px; align-items: flex-start; }
    .passport-box {
        flex: 0 0 130px; height: 160px; border: 3px solid var(--border);
        border-radius: 8px; overflow: hidden; background: hsl(215,20%,95%);
        display: flex; align-items: center; justify-content: center;
    }
    .passport-box img { width: 100%; height: 100%; object-fit: cover; }
    .passport-placeholder { font-size: 0.75rem; color: var(--text-muted); text-align: center; padding: 10px; }
    .profile-details { flex: 1; }
    .profile-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

    .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .detail-item label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: block; margin-bottom: 2px; }
    .detail-item span { font-size: 0.9rem; font-weight: 500; }

    /* Education cards */
    .edu-card {
        border: 1.5px solid var(--border); border-radius: 8px; padding: 16px 18px;
        margin-bottom: 12px; border-left: 4px solid var(--success);
    }
    .edu-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
    .edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
    .edu-field strong { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; }
    .edu-field span { font-size: 0.88rem; font-weight: 500; }

    .badge {
        display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    }
    .badge-awaiting { background: hsl(38,90%,93%); color: hsl(30,60%,30%); }
    .badge-has { background: hsl(152,68%,92%); color: hsl(152,60%,28%); }

    /* Documents list */
    .doc-list { display: flex; flex-wrap: wrap; gap: 10px; }
    .doc-chip {
        background: var(--primary-bg); border: 1.5px solid hsl(210,85%,85%);
        color: var(--primary); border-radius: 6px; padding: 7px 14px; font-size: 0.83rem; font-weight: 600;
    }

    /* Warning */
    .warn-box {
        background: var(--warning-bg); border-left: 4px solid var(--warning-border);
        border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 0.85rem;
        color: hsl(30,55%,28%); margin-top: 12px;
    }

    /* Declaration */
    .declaration-box {
        background: hsl(38,100%,97%); border: 1.5px solid hsl(38,90%,75%);
        border-radius: 10px; padding: 20px 24px; margin-top: 8px;
    }
    .declaration-text { font-size: 0.875rem; color: hsl(30,40%,30%); line-height: 1.7; margin-bottom: 14px; }
    .checkbox-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
    .checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
    .checkbox-row label { font-weight: 600; font-size: 0.9rem; cursor: pointer; }

    /* Buttons */
    .btn-row { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
    .btn {
        flex: 1; padding: 14px 20px; border-radius: 8px; font-family: inherit;
        font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; text-align: center;
        transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    }
    .btn-submit {
        background: linear-gradient(135deg, var(--success) 0%, hsl(152,68%,32%) 100%);
        color: white; box-shadow: 0 4px 14px rgba(22,163,74,0.3);
    }
    .btn-submit:disabled { background: hsl(215,15%,78%); box-shadow: none; cursor: not-allowed; }
    .btn-submit:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,0.4); }
    .btn-back { background: hsl(215,15%,92%); color: var(--text-muted); }
    .btn-back:hover { background: hsl(215,15%,86%); }

    @media (max-width: 640px) {
        .profile-block { flex-direction: column; }
        .detail-grid { grid-template-columns: 1fr; }
        .card { padding: 20px; }
    }

/* === review.php === */
    .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
    .info-item { margin-bottom: 4px; }
    .info-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 2px; }
    .info-value { font-size: 0.95rem; font-weight: 500; color: var(--text); }
    
    .status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
    .status-submitted { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
    .status-pending { background: hsl(38,90%,93%); color: hsl(30,60%,30%); border: 1px solid hsl(38,90%,85%); }

    .ref-banner {
        background: var(--primary-bg);
        border: 1.5px dashed var(--primary-light);
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        margin-bottom: 20px;
    }
    .ref-banner .label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
    .ref-banner .code { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: 0.05em; }

.box{background:#fff;border-radius:12px;padding:48px;text-align:center;max-width:440px;box-shadow:0 4px 24px rgba(0,0,0,.07)}
    h1{font-size:1.4rem;color:hsl(0,70%,52%);margin-bottom:12px} p{color:hsl(215,15%,50%);font-size:.9rem;line-height:1.6}
    a{color:hsl(210,85%,56%);font-weight:600;text-decoration:none}

/* === submit.php === */
.page-wrapper {
        max-width: 860px;
        margin: 0 auto;
    }

    /* ── Acknowledgement Card ── */
    .ack-card {
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .ack-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        padding: 36px 40px;
        text-align: center;
        position: relative;
    }

    .ack-header .school-logo {
        width: 72px;
        height: 72px;
        margin: 0 auto 16px;
        display: block;
    }

    .ack-header h1 {
        font-size: 1.6rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 6px;
    }

    .ack-header p {
        opacity: 0.88;
        font-size: 0.95rem;
    }

    .ack-

    /* Success banner */
    .success-banner {
        background: var(--success-light);
        border: 1.5px solid var(--success-border);
        border-radius: 10px;
        padding: 18px 22px;
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 32px;
    }

    .success-banner .icon { font-size: 1.8rem; flex-shrink: 0; }
    .success-banner strong { display: block; color: var(--success); font-size: 1rem; font-weight: 700; }
    .success-banner span { font-size: 0.875rem; color: hsl(152, 40%, 35%); }

    /* Ref code box */
    .ref-box {
        background: hsl(210, 85%, 97%);
        border: 1.5px dashed var(--primary-light);
        border-radius: 10px;
        text-align: center;
        padding: 24px;
        margin-bottom: 32px;
    }

    .ref-box .label {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-secondary);
        margin-bottom: 8px;
    }

    .ref-box .code {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--primary);
        letter-spacing: 0.04em;
        font-variant-numeric: tabular-nums;
    }

    .ref-box small {
        display: block;
        margin-top: 8px;
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    /* Steps / instructions */
    .steps {
        background: hsl(38, 100%, 97%);
        border-left: 4px solid var(--warning);
        border-radius: 0 8px 8px 0;
        padding: 16px 20px;
        margin-bottom: 32px;
        font-size: 0.875rem;
        color: hsl(30, 50%, 30%);
        line-height: 1.8;
    }

    .steps strong { display: block; margin-bottom: 4px; font-size: 0.9rem; color: hsl(30, 60%, 25%); }

    /* Summary section */
    .section-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        border-bottom: 2px solid hsl(210, 85%, 92%);
        padding-bottom: 8px;
        margin-bottom: 18px;
        margin-top: 32px;
    }

    .summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }

    .summary-item {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px 16px;
    }

    .summary-item .s-label {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--text-secondary);
        margin-bottom: 4px;
    }

    .summary-item .s-value {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
    }

    /* Buttons */
    .action-row {
        display: flex;
        gap: 14px;
        margin-top: 36px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 13px 28px;
        border-radius: 8px;
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s;
        border: none;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    }

    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }

    .btn-outline {
        background: transparent;
        border: 1.5px solid var(--border);
        color: var(--text-secondary);
    }

    .btn-outline:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }

    .btn-print { background: var(--bg); border: 1.5px solid var(--border); color: var(--text-primary); }
    .btn-print:hover { background: #eee; }

    @media print {
        
        .ack-card { box-shadow: none; }
        .action-row { display: none; }
    }

    @media (max-width: 600px) {
        .ack-
        .ack-header { padding: 28px 20px; }
        .ref-box .code { font-size: 1.4rem; }
    }

/* === UNIFIED PAGE HEADER === */
.unified-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 28px 36px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow);
}
.unified-header img {
    width: 84px;
    height: auto;
    flex-shrink: 0;
    background: white;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.unified-header .header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.unified-header h1.school-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 4px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.unified-header h2.page-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    color: hsl(210, 85%, 95%);
}
@media (max-width: 600px) {
    .unified-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
}
