:root {
    --bg: #f7faf9;
    --ink: #111827;
    --muted: #5b6673;
    --line: #d9e2e5;
    --blue: #0f6fff;
    --green: #00a676;
    --dark: #071014;
    --white: #ffffff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.65; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 5vw, 72px);
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.brand { font-size: 28px; font-weight: 800; letter-spacing: 0; }
.site-header nav { display: flex; gap: 18px; align-items: center; font-weight: 700; }
.site-header form { margin: 0; }
.link-button { border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr);
    gap: 34px;
    align-items: center;
    min-height: calc(100vh - 74px);
    padding: 68px clamp(18px, 5vw, 72px);
    background:
        linear-gradient(120deg, rgba(7,16,20,.92), rgba(7,16,20,.70)),
        url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: var(--white);
}
.hero p { color: rgba(255,255,255,.82); }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: 0; }
h1 { font-size: clamp(42px, 7vw, 78px); max-width: 930px; }
h2 { font-size: clamp(30px, 4vw, 48px); max-width: 820px; }
h3 { font-size: 20px; }
.lead { max-width: 760px; font-size: 19px; }
.hero-actions, .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
    gap: 8px;
}
.button svg, .icon-card svg, .steps svg { width: 22px; height: 22px; stroke-width: 2.4; }
.button.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.button.ghost { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.button.small { min-height: 36px; padding: 8px 12px; }
.button.wide { width: 100%; }
.notice { font-size: 14px; }
.hero-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
}
.hero-panel div, .summary div {
    display: grid;
    gap: 4px;
    padding: 16px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    border-radius: 8px;
}
.metric, .summary strong { font-size: 24px; font-weight: 800; }
small, .summary span, table span { color: var(--muted); }

.section, .form-hero, .admin-shell, .confirmation {
    padding: 70px clamp(18px, 5vw, 72px);
}
.band { background: var(--white); border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 26px; }
.grid, .steps, .pricing, .detail-grid { display: grid; gap: 18px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .steps div, .pricing div, .admin-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.icon-card {
    position: relative;
    overflow: hidden;
}
.icon-card svg {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    color: var(--blue);
}
.icon-card:after {
    content: "";
    position: absolute;
    inset: auto -40px -55px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0,166,118,.12);
}
.requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
li { margin: 10px 0; line-height: 1.5; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps div { position: relative; }
.steps svg {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--green);
}
.steps strong {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
}
.pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing div {
    position: relative;
    overflow: hidden;
    border-color: #b9d9ff;
}
.pricing div:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}
.pricing span, .pricing strong { display: block; }
.pricing span { color: var(--muted); }
.pricing strong { margin: 10px 0; font-size: 42px; color: var(--green); }
.centered { text-align: center; }
.faq { max-width: 1000px; margin: 0 auto; }
details { padding: 18px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; }

.form-hero { background: var(--dark); color: var(--white); }
.form-hero p { color: rgba(255,255,255,.78); max-width: 720px; }
.driver-form, .login-box {
    max-width: 1120px;
    margin: 28px auto 70px;
    padding: 0 18px;
}
.wizard-form { margin-top: -34px; }
.wizard-progress {
    position: sticky;
    top: 74px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(17,24,39,.08);
    backdrop-filter: blur(12px);
}
.wizard-progress button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.wizard-progress button.active {
    color: var(--white);
    background: var(--dark);
}
.wizard-progress svg { width: 18px; height: 18px; }
.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.wizard-actions .button { min-width: 180px; }
fieldset {
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
legend { padding: 0 8px; font-size: 22px; font-weight: 800; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; font-weight: 700; color: var(--ink); }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b9c7cc;
    border-radius: 8px;
    font: inherit;
    background: var(--white);
}
input[type="file"] { padding: 9px; }
.payment-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.payment-options label {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.payment-options input { width: auto; min-height: auto; }
.payment-options label:has(input:checked) {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(15,111,255,.14);
}
.instructions { margin: 18px 0; padding: 16px; background: #eef7ff; border-radius: 8px; }
.legal-checks {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.legal-checks label { display: flex; align-items: flex-start; gap: 10px; }
.legal-checks input { width: auto; min-height: auto; margin-top: 4px; }
.error-box, .flash {
    max-width: 1120px;
    margin: 18px auto;
    padding: 16px;
    border-radius: 8px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}
.flash { background: #ecfdf5; border-color: #bbf7d0; }
.confirmation { max-width: 920px; margin: 0 auto; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.summary.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }

.admin-heading, .detail-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.option-editor {
    display: grid;
    gap: 14px;
}
.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}
.switch-row input {
    width: 18px;
    min-height: 18px;
}
.new-option { max-width: 720px; }
.filters { margin-bottom: 18px; }
.filters input { flex: 1 1 340px; }
.filters select { width: auto; min-width: 180px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td span { display: block; margin-top: 4px; }
.pill { display: inline-flex; padding: 6px 10px; background: #eaf2ff; border-radius: 999px; font-size: 13px; font-weight: 800; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--blue); font-weight: 800; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }
.doc-list { display: grid; gap: 10px; }
.doc-list a { padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; }
.doc-list span { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }
.note { padding: 14px 0; border-bottom: 1px solid var(--line); }
.note span { margin-left: 10px; color: var(--muted); }
.login-box { max-width: 460px; padding: 30px 18px; }
.login-box form { display: grid; gap: 16px; }

@media (max-width: 900px) {
    .hero, .three, .requirements, .steps, .pricing, .fields, .fields.two, .payment-options, .summary, .detail-grid, .options-grid {
        grid-template-columns: 1fr;
    }
    .hero { min-height: auto; padding-top: 48px; }
    .admin-heading, .detail-heading { align-items: start; flex-direction: column; }
    dl { grid-template-columns: 1fr; }
    .wizard-progress {
        position: static;
        grid-template-columns: 1fr;
    }
    .wizard-progress button { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .site-header { align-items: flex-start; gap: 12px; flex-direction: column; }
    h1 { font-size: 40px; }
    .section, .form-hero, .admin-shell, .confirmation { padding: 46px 18px; }
    fieldset { padding: 18px; }
    .button { width: 100%; }
}
