:root {
    --ink: #0b1735;
    --ink-soft: #3f4b66;
    --paper: #f7f5ef;
    --white: #ffffff;
    --brand: #ee8c39;
    --brand-deep: #b95214;
    --brand-soft: #ffe2ca;
    --line: #dcded8;
    --danger: #c43a3a;
    --shadow: 0 24px 70px rgba(11, 23, 53, 0.1);
    --radius-lg: 32px;
    --radius-md: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 86% 0%, rgba(238, 140, 57, .2), transparent 29rem),
        var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, input, select { font: inherit; }

.site-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(11, 23, 53, .11);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img { display: block; width: 142px; height: 36px; object-fit: contain; }

.header-badge {
    padding: 9px 13px;
    border: 1px solid rgba(11, 23, 53, .16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

main { flex: 1; }

.hero { padding: 82px 0 52px; }
.eyebrow, .step-label { color: var(--brand-deep); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(238, 140, 57, .17); }

.hero h1, .form-intro h1, .success-page h1, .legal-page h1 {
    max-width: 900px;
    margin: 20px 0 23px;
    font-size: clamp(54px, 8vw, 102px);
    line-height: .92;
    letter-spacing: -.075em;
    font-weight: 830;
}

h1 em { color: var(--brand-deep); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.hero-copy {
    max-width: 730px;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.55;
    letter-spacing: -.02em;
}

.role-section { margin-top: 78px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading p { margin: 0; }
.section-heading h2 { max-width: 470px; margin: 0; text-align: right; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.045em; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-card {
    position: relative;
    min-height: 210px;
    padding: 28px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: end;
    overflow: hidden;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
}
.role-card:hover, .role-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); }
.role-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.role-card--passenger { background: var(--ink); color: var(--white); }
.role-card--driver { background: var(--brand); color: var(--ink); }
.role-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -80px; top: -115px; border: 48px solid rgba(255,255,255,.08); }
.role-card--driver::after { border-color: rgba(11,23,53,.07); }
.role-icon { width: 62px; height: 62px; border: 1px solid currentColor; border-radius: 19px; display: grid; place-items: center; font-size: 21px; font-weight: 850; }
.role-card-content { display: flex; flex-direction: column; gap: 8px; max-width: 310px; }
.role-card-content strong { font-size: 25px; letter-spacing: -.04em; }
.role-card-content > span { opacity: .7; font-size: 14px; line-height: 1.45; }
.role-arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 22px; }
.role-card--driver .role-arrow { background: rgba(11,23,53,.1); }

.benefit-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; color: var(--ink-soft); }
.benefit-strip span::before { content: "✓"; margin-right: 8px; color: var(--brand-deep); font-weight: 900; }
.campaign-note { color: #707888; font-size: 12px; }

.site-footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(11, 23, 53, .11); color: #687084; font-size: 13px; }
.site-footer a { text-underline-offset: 4px; }

.form-page, .legal-page { padding: 42px 0 70px; }
.back-link { display: inline-block; margin-bottom: 55px; color: #596277; font-size: 14px; font-weight: 650; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.form-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(520px, 1.15fr); gap: clamp(42px, 8vw, 100px); align-items: start; }
.form-intro { position: sticky; top: 30px; }
.form-intro h1 { margin: 22px 0; font-size: clamp(43px, 5.6vw, 71px); }
.form-intro > p:not(.step-label) { color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.privacy-promise { display: flex; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); color: #596277; font-size: 13px; line-height: 1.55; }
.privacy-promise span { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-deep); font-weight: 900; }
.privacy-promise p { margin: 1px 0 0; }

.form-card { padding: clamp(25px, 4.2vw, 48px); background: var(--white); border: 1px solid rgba(11,23,53,.08); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field--full { grid-column: 1 / -1; }
.field label, .choice-group legend { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 780; }
.field input, .field select {
    width: 100%; height: 55px; border: 1px solid #d5d9d2; border-radius: 14px; background: #fbfbf9; color: var(--ink); padding: 0 16px; outline: none; transition: border .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(238,140,57,.16); background: var(--white); }
.field input::placeholder { color: #9ca2af; }
.select-wrap { position: relative; }
.select-wrap::after { content: "⌄"; position: absolute; right: 17px; top: 15px; pointer-events: none; }
.field select { appearance: none; }
.field--error input, .field--error select, .fieldset--error .segmented-options { border-color: var(--danger); }
.field-error { display: block; margin-top: 7px; color: var(--danger); font-size: 12px; font-weight: 650; }

.choice-group { margin: 30px 0 0; padding: 0; border: 0; }
.segmented-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; border: 1px solid #d5d9d2; border-radius: 16px; background: #f6f7f3; }
.segmented-options--two { grid-template-columns: 1fr 1fr; }
.segmented-options label { cursor: pointer; }
.segmented-options input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-options span { min-height: 43px; display: grid; place-items: center; padding: 7px 8px; border-radius: 11px; color: #626b7e; font-size: 13px; font-weight: 700; text-align: center; }
.segmented-options input:checked + span { background: var(--ink); color: var(--white); box-shadow: 0 7px 18px rgba(11,23,53,.15); }
.segmented-options input:focus-visible + span { outline: 3px solid var(--brand); }

.consent-section { margin-top: 30px; padding-top: 27px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.consent-box { display: flex; align-items: flex-start; gap: 13px; margin-top: 22px; padding: 16px; border: 1px solid #d8ddd3; border-radius: 15px; cursor: pointer; background: #fafbf7; }
.consent-section .consent-box { margin-top: 0; }
.consent-box--optional { background: transparent; }
.consent-box--error { border-color: var(--danger); }
.consent-box input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.consent-box span { color: #596277; font-size: 12.5px; line-height: 1.55; }
.consent-box a { font-weight: 800; text-underline-offset: 3px; }
.consent-box strong { color: var(--ink); }
.consent-error { margin-left: 6px; }

.primary-button {
    width: 100%; min-height: 59px; margin-top: 26px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--brand); color: var(--ink); display: flex; align-items: center; justify-content: space-between; font-weight: 830; cursor: pointer; transition: background .18s, transform .18s;
}
.primary-button:hover { background: #f29b50; transform: translateY(-1px); }
.primary-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.primary-button:disabled { opacity: .66; cursor: wait; }
.form-footnote { margin: 12px 0 0; text-align: center; color: #8a91a0; font-size: 11px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.error-summary { margin-bottom: 24px; padding: 15px 17px; border-left: 4px solid var(--danger); border-radius: 9px; background: #fff4f3; outline: none; }
.error-summary strong { font-size: 14px; }
.error-summary p { margin: 4px 0 0; color: #78504f; font-size: 12px; }

.success-page { max-width: 780px; margin: 0 auto; padding: 75px 0 90px; text-align: center; }
.success-mark { width: 76px; height: 76px; margin: 0 auto 30px; border-radius: 25px; background: var(--brand); display: grid; place-items: center; transform: rotate(-5deg); }
.success-mark span { font-size: 31px; font-weight: 900; transform: rotate(5deg); }
.success-page h1 { margin-left: auto; margin-right: auto; font-size: clamp(54px, 7.7vw, 88px); }
.success-copy { max-width: 650px; margin: 0 auto; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.code-card { max-width: 520px; margin: 38px auto; padding: 24px; background: var(--ink); color: white; border-radius: 24px; display: grid; gap: 10px; }
.code-card > span { opacity: .62; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.code-card strong { color: #ffa866; font-size: clamp(30px, 6vw, 43px); letter-spacing: .06em; }
.code-card button { justify-self: center; border: 0; border-bottom: 1px solid rgba(255,255,255,.42); background: transparent; color: white; padding: 4px 0; cursor: pointer; font-size: 12px; }
.success-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.success-benefits > div { padding: 20px; border: 1px solid var(--line); border-radius: 18px; display: flex; gap: 14px; }
.success-benefits > div > span { color: var(--brand-deep); font-weight: 850; }
.success-benefits p { margin: 0; color: #697184; font-size: 12px; line-height: 1.45; }
.success-benefits strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.success-page .campaign-note { margin-top: 22px; }
.text-link { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 780; text-underline-offset: 4px; }

.legal-page { max-width: 900px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(45px, 7vw, 78px); }
.legal-lead { max-width: 730px; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.legal-content { margin-top: 50px; display: grid; gap: 14px; }
.legal-content section { padding: 24px 27px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.5); }
.legal-content h2 { margin: 0 0 10px; font-size: 17px; }
.legal-content p { margin: 0; color: #596277; line-height: 1.7; font-size: 14px; }
.legal-content a { font-weight: 700; }
.error-page { max-width: 600px; margin: 0 auto; padding: 120px 0; text-align: center; }
.error-code { margin: 0; color: var(--brand-deep); font-size: 70px; font-weight: 900; letter-spacing: -.06em; }
.error-page h1 { margin: 10px 0; font-size: 42px; letter-spacing: -.05em; }
.error-page > p:not(.error-code) { color: var(--ink-soft); line-height: 1.6; }
.primary-button--inline { width: auto; display: inline-flex; gap: 40px; text-decoration: none; }

@media (max-width: 850px) {
    .form-layout { grid-template-columns: 1fr; gap: 30px; }
    .form-intro { position: static; }
    .form-intro > p:not(.step-label), .privacy-promise { max-width: 600px; }
    .form-intro h1 br { display: none; }
}

@media (max-width: 680px) {
    .site-shell { width: min(100% - 28px, 1180px); }
    .site-header { min-height: 76px; }
    .brand img { width: 126px; height: auto; }
    .header-badge { font-size: 10px; }
    .hero { padding-top: 55px; }
    .hero h1 { font-size: clamp(48px, 15.2vw, 74px); }
    .hero-copy { font-size: 17px; }
    .role-section { margin-top: 55px; }
    .section-heading { display: block; }
    .section-heading h2 { margin-top: 10px; text-align: left; }
    .role-grid { grid-template-columns: 1fr; }
    .role-card { min-height: 175px; padding: 22px; gap: 15px; }
    .role-icon { width: 52px; height: 52px; border-radius: 16px; }
    .role-card-content strong { font-size: 21px; }
    .role-arrow { width: 40px; height: 40px; }
    .site-footer { padding: 24px 0; min-height: 0; align-items: flex-start; }
    .back-link { margin-bottom: 36px; }
    .form-page { padding-top: 30px; }
    .form-card { border-radius: 23px; }
    .field-grid { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
    .segmented-options { grid-template-columns: 1fr; }
    .segmented-options--two { grid-template-columns: 1fr 1fr; }
    .success-benefits { grid-template-columns: 1fr; }
    .success-page { padding-top: 55px; }
}

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

/* Admin */
.admin-body { background: #eef0ec; }
.admin-shell { min-height: 100vh; }
.admin-header {
    min-height: 76px;
    padding: 0 clamp(20px, 4vw, 58px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ink);
    color: white;
}
.admin-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.admin-brand img { width: 126px; height: auto; display: block; }
.admin-brand span { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.66); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-logout { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: transparent; color: white; padding: 9px 14px; cursor: pointer; font-size: 12px; font-weight: 750; }
.admin-logout:hover, .admin-logout:focus-visible { background: white; color: var(--ink); }

.admin-main { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-page-heading h1 { margin: 8px 0; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.06em; line-height: 1; }
.admin-page-heading > div > p:last-child { margin: 0; color: var(--ink-soft); }
.admin-export { padding: 13px 17px; border-radius: 12px; background: var(--brand); text-decoration: none; font-size: 13px; font-weight: 820; white-space: nowrap; }
.admin-export:hover, .admin-export:focus-visible { background: #f29b50; }

.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 35px 0 18px; }
.admin-kpis article { min-height: 156px; padding: 22px; border: 1px solid rgba(11,23,53,.08); border-radius: 22px; background: white; display: flex; flex-direction: column; }
.admin-kpis article:first-child { background: var(--ink); color: white; }
.admin-kpis article > span { color: #7c8495; font-size: 12px; font-weight: 720; }
.admin-kpis article:first-child > span, .admin-kpis article:first-child small { color: rgba(255,255,255,.58); }
.admin-kpis strong { margin-top: auto; font-size: 43px; line-height: 1; letter-spacing: -.055em; }
.admin-kpis small { margin-top: 8px; color: #8a91a0; font-size: 11px; }

.admin-panel { margin-top: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(11,23,53,.08); border-radius: 24px; background: white; }
.admin-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-panel-heading p, .admin-panel-heading h2 { margin: 0; }
.admin-panel-heading h2 { margin-top: 6px; font-size: 25px; letter-spacing: -.04em; }
.admin-panel-heading > span { color: #8a91a0; font-size: 12px; }
.admin-city-list { display: grid; gap: 14px; }
.admin-city-row { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(180px, 2fr) minmax(170px, .8fr); gap: 20px; align-items: center; }
.admin-city-name { display: flex; flex-direction: column; gap: 3px; }
.admin-city-name strong { font-size: 14px; }
.admin-city-name span { color: #8a91a0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-city-bar { height: 9px; border-radius: 999px; background: #eef0ec; overflow: hidden; }
.admin-city-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ffb471); }
.admin-bar--10 { width: 10%; }.admin-bar--20 { width: 20%; }.admin-bar--30 { width: 30%; }.admin-bar--40 { width: 40%; }.admin-bar--50 { width: 50%; }
.admin-bar--60 { width: 60%; }.admin-bar--70 { width: 70%; }.admin-bar--80 { width: 80%; }.admin-bar--90 { width: 90%; }.admin-bar--100 { width: 100%; }
.admin-city-counts { display: flex; justify-content: flex-end; gap: 12px; color: #697184; font-size: 11px; }

.admin-filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(135px, .7fr)) auto auto; gap: 10px; align-items: end; margin-bottom: 24px; padding: 18px; border-radius: 18px; background: #f4f5f1; }
.admin-filters .field label { font-size: 11px; }
.admin-filters .field input, .admin-filters .field select { height: 45px; background: white; font-size: 12px; }
.admin-filter-button { height: 45px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ink); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.admin-clear-filter { height: 45px; display: grid; place-items: center; color: #626b7e; font-size: 11px; font-weight: 700; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 1070px; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #858c9b; text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { padding: 15px 12px; border-bottom: 1px solid #eceee9; color: #4f596f; vertical-align: middle; }
.admin-table tbody tr:hover { background: #fafbf8; }
.admin-table td strong { display: block; color: var(--ink); font-size: 12px; }
.admin-table td small { display: block; margin-top: 4px; color: #8a91a0; font-size: 10px; }
.admin-table td a { color: var(--ink); text-underline-offset: 3px; }
.admin-role, .admin-consent { display: inline-block; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.admin-role--passenger { background: #e8eefc; color: #31569b; }
.admin-role--driver { background: var(--brand-soft); color: #9c470f; }
.admin-consent--yes { background: #e0f5e9; color: #267247; }
.admin-consent--no { background: #eff0ed; color: #747b89; }
.admin-empty { padding: 30px !important; color: #8a91a0 !important; text-align: center !important; }
.admin-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 24px; font-size: 12px; }
.admin-pagination a { min-width: 90px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: center; text-decoration: none; font-weight: 700; }
.admin-pagination a[aria-disabled="true"] { opacity: .38; pointer-events: none; }

.admin-login-shell { width: min(100% - 28px, 520px); min-height: 100vh; margin: 0 auto; padding: 45px 0; display: grid; place-items: center; }
.admin-login-card { width: 100%; padding: clamp(27px, 6vw, 48px); border: 1px solid rgba(11,23,53,.09); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.admin-login-logo { display: inline-block; margin-bottom: 50px; }
.admin-login-logo img { width: 142px; height: auto; display: block; }
.admin-login-heading h1, .admin-login-card > h1 { margin: 9px 0 12px; font-size: 38px; line-height: 1.05; letter-spacing: -.055em; }
.admin-login-heading > p:last-child, .admin-login-card > p:not(.step-label) { margin: 0 0 26px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.admin-login-form { display: grid; gap: 17px; }
.admin-login-form .primary-button { margin-top: 3px; }
.admin-back-link { display: inline-block; margin-top: 25px; color: #7a8292; font-size: 12px; text-decoration: none; }
.admin-notice { margin-bottom: 22px; padding: 15px; border-radius: 13px; font-size: 12px; }
.admin-notice strong { display: block; margin-bottom: 4px; }
.admin-notice p { margin: 0; line-height: 1.5; }
.admin-notice--warning { background: #fff2cf; color: #675220; }
.admin-notice--error { background: #fff0ef; color: #853b38; }
.admin-notice--success { background: #e0f5e9; color: #246841; }
.field-help { display: block; margin-top: 7px; color: #858c9b; font-size: 11px; }

@media (max-width: 1050px) {
    .admin-kpis { grid-template-columns: 1fr 1fr; }
    .admin-filters { grid-template-columns: 1fr 1fr 1fr; }
    .admin-search-field { grid-column: span 3; }
}

@media (max-width: 680px) {
    .admin-header { padding: 0 15px; }
    .admin-brand img { width: 110px; }
    .admin-brand span { display: none; }
    .admin-main { width: min(100% - 24px, 1440px); padding-top: 35px; }
    .admin-page-heading { display: block; }
    .admin-export { display: inline-block; margin-top: 20px; }
    .admin-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
    .admin-kpis article { min-height: 135px; padding: 17px; }
    .admin-kpis strong { font-size: 35px; }
    .admin-city-row { grid-template-columns: 105px 1fr; gap: 12px; }
    .admin-city-counts { grid-column: 2; justify-content: flex-start; margin-top: -7px; }
    .admin-filters { grid-template-columns: 1fr; }
    .admin-search-field { grid-column: auto; }
    .admin-filter-button, .admin-clear-filter { width: 100%; }
}
