:root {
    --ink: #18233a;
    --muted: #607086;
    --brand: #2458a6;
    --brand-dark: #111b30;
    --brand-soft: #edf3ff;
    --secondary: #0c7a78;
    --secondary-soft: #e8f6f5;
    --accent: #d9922e;
    --surface: #ffffff;
    --page: #eef3f7;
    --line: #d6e0e8;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, var(--page) 100%);
    font-family: "Manrope", sans-serif;
}

main { flex: 1; }

.site-header {
    color: #fff;
    background: linear-gradient(112deg, #111827 0%, #1d3763 58%, #126976 100%);
    border-bottom: 1px solid rgba(139, 221, 219, 0.32);
    box-shadow: 0 8px 26px rgba(17, 24, 39, 0.18);
}

.navbar { min-height: 78px; }
.navbar-brand, .navbar-brand:hover { color: #fff; }
.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.24));
}

.form-hero, .verification-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(118deg, rgba(16, 24, 40, 0.1) 0%, rgba(21, 91, 112, 0.2) 100%),
        linear-gradient(124deg, #111827 0%, #223f72 62%, #14727a 100%);
}

.form-hero { padding: 4.5rem 0 6rem; }
.verification-hero { padding: 4.75rem 0 6rem; }
.form-hero::after, .verification-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(132deg, transparent 0 38px, rgba(255, 255, 255, 0.035) 38px 39px);
    pointer-events: none;
}

.form-hero h1, .verification-hero h1 {
    margin: 0.35rem 0 0.9rem;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0;
}

.form-hero .lead, .verification-hero p { color: #dce8f5; max-width: 740px; }
.verification-hero p { margin: 0 auto; }
.eyebrow { color: #8bdedb; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.id-summary {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
}
.id-summary span, .id-summary small { display: block; color: #cfe4dc; }
.id-summary strong { display: block; margin: 0.15rem 0; font-size: 2.25rem; letter-spacing: 0.04em; }

.form-section { margin-top: -3rem; padding-bottom: 5rem; position: relative; z-index: 2; }
.form-shell { max-width: 1060px; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid rgba(36, 88, 166, 0.13); border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(24, 35, 58, 0.13); }
.form-intro { padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.info-dot { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--secondary); background: var(--secondary-soft); font-weight: 800; }

.form-group-card { margin: 2rem 0 0; padding: 0; border: 0; }
.form-group-card + .form-group-card { padding-top: 2rem; border-top: 1px solid var(--line); }
.form-group-card legend { float: none; width: auto; margin-bottom: 1.5rem; font-size: 1.13rem; font-weight: 800; }
.form-group-card legend span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 0.6rem; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 0.76rem; }
.form-label { color: #26334b; font-size: 0.9rem; font-weight: 700; }
.required-mark { color: #c9363e; }
.optional-mark { margin-left: 0.3rem; padding: 0.18rem 0.45rem; color: var(--muted); background: #edf1f3; border-radius: 999px; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; }
.optional-mark.required-option { color: #8b262d; background: #fde8ea; }
.form-control, .form-select { border-color: #cbd7e1; border-radius: 8px; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: #4c75b7; box-shadow: 0 0 0 0.23rem rgba(36, 88, 166, 0.13); }
.form-control-lg, .form-select-lg { min-height: 52px; font-size: 1rem; }
.flatpickr-input + .form-control { background-color: #fff; cursor: pointer; }
textarea.form-control { padding: 0.9rem 1rem; }
.notice-box { padding: 1rem 1.1rem; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; color: #674b18; background: #fff8e9; font-size: 0.92rem; }
.section-helper { color: var(--secondary); font-weight: 700; }

.submit-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2.25rem; padding: 1.4rem; border: 1px solid #d8e4ef; border-radius: 8px; background: linear-gradient(120deg, #eef4ff 0%, #eaf7f5 100%); }
.submit-panel p { color: var(--muted); font-size: 0.88rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: #184786; --bs-btn-hover-border-color: #184786; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); background-image: linear-gradient(135deg, var(--brand), #177681); box-shadow: 0 8px 20px rgba(30, 77, 139, 0.2); }

.status-section { margin-top: -3rem; padding: 0 0 6rem; position: relative; z-index: 2; }
.status-card { max-width: 860px; padding: clamp(2rem, 6vw, 4.5rem); border: 1px solid rgba(36, 88, 166, 0.12); border-radius: 8px; background: var(--surface); box-shadow: 0 24px 70px rgba(24, 35, 58, 0.13); }
.status-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 1.25rem; border-radius: 50%; font-size: 2rem; font-weight: 900; }
.status-icon-success { color: #126740; background: #dff5e9; }
.status-icon-error { color: #a52e37; background: #fde7e9; }
.application-badge { display: inline-block; padding: 0.42rem 0.85rem; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.application-badge-error { color: #a52e37; background: #fde7e9; }
.verification-message { margin: 1.5rem auto; color: #27344d; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.8; }
.verification-message strong { color: var(--secondary); }
.status-card hr { margin: 2rem 0; border-color: var(--line); opacity: 1; }

.site-footer { padding: 1.5rem 0; color: #cbd8e7; background: linear-gradient(112deg, #111827, #172b4d); font-size: 0.86rem; }

@media (max-width: 767.98px) {
    .navbar { min-height: 68px; }
    .navbar .btn { display: none; }
    .form-hero { padding: 3rem 0 5rem; }
    .id-summary { margin-top: 0.5rem; }
    .submit-panel { align-items: stretch; flex-direction: column; }
    .submit-panel .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
