:root {
    --bg: #f3f6fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #647187;
    --border: #dfe6f1;
    --primary: #113c74;
    --primary-dark: #0b2d58;
    --secondary: #e8eef7;
    --accent: #c99a2e;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --success: #107c41;
    --success-bg: #edfdf3;
    --warning: #9a6700;
    --warning-bg: #fff7d6;
    --shadow: 0 20px 60px rgba(23, 32, 51, .10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(17, 60, 116, .12), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    min-height: 100vh;
}

.page-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 56px;
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    position: absolute;
    right: -100px;
    top: -120px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.logo-mark {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 12px;
    flex: 0 0 auto;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
}

.hero h1,
.success-card h1 {
    margin: 0;
    line-height: 1.1;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -.03em;
}

.hero-text {
    margin: 22px 0 0;
    max-width: 820px;
    line-height: 1.72;
    font-size: 17px;
    color: rgba(255, 255, 255, .88);
    position: relative;
    z-index: 1;
}

.grid-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 24px;
    margin-top: 24px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.section-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 18px;
}

.card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -.02em;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
    margin-top: 0;
}

.steps {
    margin: 18px 0 22px;
    padding-left: 22px;
    color: #334155;
    line-height: 1.8;
}

.download-box {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-submit {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 26px rgba(17, 60, 116, .22);
}

.btn-primary:hover,
.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
}

.notice {
    border-left: 4px solid var(--accent);
    background: #fff8e8;
    padding: 14px 16px;
    border-radius: 14px;
    color: #4f3b11;
    line-height: 1.6;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 16px 0;
    line-height: 1.55;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #ffd4d0;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #b7f0c9;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid #f5dc7b;
}

.osb-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field label,
.checkbox-row {
    font-weight: 750;
    color: #273349;
}

.field label {
    display: block;
    margin-bottom: 8px;
}

.field span,
.checkbox-row strong {
    color: var(--danger);
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border .18s ease, box-shadow .18s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(17, 60, 116, .55);
    box-shadow: 0 0 0 4px rgba(17, 60, 116, .10);
}

textarea {
    resize: vertical;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.upload-area {
    display: grid !important;
    place-items: center;
    text-align: center;
    gap: 8px;
    border: 2px dashed #b7c4d8;
    border-radius: 18px;
    padding: 26px;
    background: #f8fbff;
    cursor: pointer;
    transition: border .18s ease, background .18s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: #eef5ff;
}

.upload-area input {
    display: none;
}

.upload-icon {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 900;
}

.upload-title {
    color: var(--text) !important;
    font-weight: 900;
}

.upload-subtitle,
.selected-file {
    color: var(--muted) !important;
    font-size: 14px;
    font-weight: 600;
}

.selected-file {
    color: var(--primary) !important;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
    color: #273349;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 900;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.btn-submit {
    width: 100%;
    font-size: 16px;
}

.form-footnote {
    color: var(--muted);
    margin: -4px 0 0;
    font-size: 13px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 25, .58);
}

.modal-panel {
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    position: relative;
    margin: 24px auto;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--secondary);
    color: var(--primary);
    font-size: 26px;
    cursor: pointer;
}

.modal-note {
    padding: 12px 14px;
    background: #fff8e8;
    border-radius: 14px;
    color: #59400e;
}

.success-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.success-card {
    text-align: center;
    max-width: 660px;
}

.success-card .hero-text {
    color: var(--muted);
    margin-left: auto;
    margin-right: auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--success-bg);
    color: var(--success);
    font-size: 44px;
    font-weight: 900;
    margin: 0 auto 18px;
}

.application-box {
    display: grid;
    gap: 8px;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    margin: 24px 0;
}

.application-box span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
}

.application-box strong {
    font-size: 34px;
    letter-spacing: .02em;
    color: var(--primary);
}

.check-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    text-align: left;
}

.check-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px;
}

.ok,
.fail {
    font-weight: 900;
}

.ok {
    color: var(--success);
}

.fail {
    color: var(--danger);
}

@media (max-width: 900px) {
    .grid-layout,
    .two-col {
        grid-template-columns: 1fr;
    }

    .hero,
    .card {
        padding: 22px;
    }

    .brand-row {
        align-items: flex-start;
    }

    .logo-mark {
        width: 76px;
        height: 76px;
        border-radius: 18px;
        padding: 9px;
    }

    .brand-row {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 20px, 1160px);
        padding: 18px 0 28px;
    }

    .logo-mark {
        width: 52px;
        height: 52px;
    }

    .application-box strong {
        font-size: 26px;
    }
}
