:root {
    --navy: #002663;
    --blue: #007cc3;
    --blue-soft: #d9eefb;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #10233f;
    --muted: #5f718c;
    --border: #d8e0ea;
    --success: #0d7a46;
    --danger: #b42318;
    --shadow: 0 18px 40px rgba(0, 38, 99, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 124, 195, 0.10), transparent 26%),
        linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(135deg, #001c4a 0%, var(--navy) 60%, #0b4a8d 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
}

.subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}


.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

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

.brand {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}


.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a,
.btn {
    border: 1px solid rgba(0, 38, 99, 0.12);
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
}

.btn-primary,
.nav a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.page {
    padding: 32px 0 48px;
}

.hero,
.grid {
    display: grid;
    gap: 20px;
}

.stack {
    display: grid;
    gap: 16px;
}

.hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    min-height: 62vh;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three,
.offers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offers {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.hero-copy h1,
.card h1,
.card h2 {
    margin-top: 0;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.02;
    max-width: 12ch;
}

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

.form-card {
    max-width: 440px;
    justify-self: end;
    width: 100%;
}

.offer-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quote-card {
    max-width: 960px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.section-head,
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--text);
}

.flash {
    margin-bottom: 20px;
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 600;
}

.flash-success {
    background: #e8f7ef;
    color: var(--success);
}

.flash-error {
    background: #fdecea;
    color: var(--danger);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.guarantees-table th:last-child,
.guarantees-table td:last-child {
    width: 180px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-chip.is-covered {
    background: #e8f7ef;
    color: var(--success);
}

.status-chip.is-not-covered {
    background: #fdecea;
    color: var(--danger);
}

.simple-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}

.price {
    margin: 6px 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.price span {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

.stepper-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.step-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

.step-pill.is-active {
    background: var(--blue-soft);
    color: var(--navy);
    border-color: rgba(0, 124, 195, 0.25);
}

.step-panel {
    display: none;
}

.step-panel.is-active {
    display: block;
}

.stat-card h1 {
    margin-bottom: 0;
    font-size: 2.6rem;
}

.admin-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.inline-form {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.guarantee-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, auto) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.checkbox-row input {
    width: auto;
}

.user-row {
    display: grid;
    grid-template-columns: 1.6fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.user-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.legal {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 860px) {
    .hero,
    .grid.two,
    .grid.three,
    .offers {
        grid-template-columns: 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    .guarantee-form,
    .user-row {
        grid-template-columns: 1fr;
    }

    .user-actions {
        flex-wrap: wrap;
    }

    .form-card {
        justify-self: stretch;
        max-width: none;
    }

    .topbar-inner,
    .section-head {
        align-items: flex-start;
    }
}

@media print {
    .topbar,
    .no-print,
    .nav {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page,
    .print-page {
        padding: 0;
    }

    .card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
