:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #687286;
    --primary: #214f9b;
    --primary-dark: #183c77;
    --line: #dfe5ef;
    --danger: #b42318;
    --ok: #087443;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.page {
    min-height: 100vh;
    padding: 32px;
}

.claim-form {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    max-width: 1180px;
    margin: 0 auto;
    gap: 24px;
}

.steps,
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.steps {
    align-self: start;
    padding: 18px;
    position: sticky;
    top: 24px;
}

.brand {
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--primary);
}

.step-tab {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
}

.step-tab.active {
    border-color: #c9d8f2;
    background: #edf4ff;
    color: var(--primary);
    font-weight: 700;
}

.panel {
    padding: 32px;
}

h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.intro {
    margin-top: 0;
    color: var(--muted);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    margin: 10px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.choice:hover {
    border-color: #b9cae6;
}

.choice.compact {
    padding: 11px 12px;
}

.field {
    display: block;
    margin: 16px 0;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="file"],
textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

input[type="file"] {
    padding: 18px;
    background: #f9fbff;
}

textarea {
    resize: vertical;
}

small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 400;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.group-title {
    margin: 24px 0 10px;
    font-weight: 700;
}

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

.inline-options label {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.conditional {
    display: none;
}

.conditional.visible {
    display: block;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

button,
.button {
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

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

.secondary {
    background: #e8edf5;
    color: var(--text);
}

.secondary:hover {
    background: #d9e1ec;
}

.hidden {
    display: none;
}

.alert {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #f3b5af;
    border-radius: 6px;
    background: #fff1f0;
    color: var(--danger);
}

.summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.summary-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
    border-bottom: 0;
}

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

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks {
    max-width: 720px;
}

@media (max-width: 860px) {
    .page {
        padding: 16px;
    }

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

    .steps {
        position: static;
    }

    .grid,
    .summary-row {
        grid-template-columns: 1fr;
    }
}
