:root {
    color-scheme: light;
    --ink: #191b1d;
    --muted: rgba(25, 27, 29, 0.62);
    --line: rgba(25, 27, 29, 0.14);
    --soft-line: rgba(25, 27, 29, 0.08);
    --paper: #ffffff;
    --wash: #f5f5f2;
    --accent: #191b1d;
    --danger: #b42318;
    --success: #edf7f1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wash);
    color: var(--ink);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.brand-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--soft-line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.brand-bar a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    margin-left: clamp(18px, 4vw, 54px);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand-bar img {
    width: 34px;
    height: 34px;
}

.quote-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(34px, 6vw, 72px) 0;
}

.quote-hero,
.admin-heading {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(28px, 5vw, 56px);
}

.quote-hero {
    max-width: 980px;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 980px;
    margin-bottom: 0;
    font-size: clamp(42px, 7vw, 92px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.96;
}

.quote-hero p:not(.eyebrow) {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
}

.quote-form {
    display: grid;
    gap: 18px;
}

.form-section,
.success-panel,
.login-panel,
.empty-panel,
.request-card,
.admin-list-head,
.privacy-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.form-section {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: clamp(22px, 4vw, 38px);
}

.form-section legend {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: 0;
}

.form-section legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 13px;
}

.form-section > p {
    max-width: 720px;
    margin: -8px 0 0;
    color: var(--muted);
}

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

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field-label,
.login-panel label span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 118px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ink);
    outline: 3px solid rgba(25, 27, 29, 0.12);
}

small,
.alert {
    color: var(--danger);
    font-weight: 800;
}

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

.choice,
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.choice {
    min-height: 48px;
    padding: 12px;
}

.choice input,
.privacy-check input {
    width: 16px;
    min-height: auto;
    margin: 4px 0 0;
    accent-color: var(--ink);
}

.choice span,
.privacy-check span {
    overflow-wrap: anywhere;
}

.privacy-section {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.privacy-check {
    padding: 0;
    border: 0;
}

.actions {
    display: flex;
    justify-content: flex-end;
}

button,
.logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0 28px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.logout:hover {
    background: #000;
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.alert {
    margin-bottom: 16px;
}

.success-panel,
.empty-panel {
    padding: clamp(28px, 5vw, 48px);
}

.success-panel {
    background: var(--success);
}

.success-panel h2,
.empty-panel h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
}

.success-panel p:last-child,
.empty-panel p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-heading {
    grid-template-columns: 1fr auto;
    align-items: start;
}

.admin-heading h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.login-panel {
    display: grid;
    max-width: 440px;
    gap: 16px;
    padding: 24px;
}

.login-panel label {
    display: grid;
    gap: 8px;
}

.admin-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 22px;
}

.admin-list-head h2,
.admin-list-head p {
    margin: 0;
}

.admin-list-head p {
    color: var(--muted);
}

.request-list {
    display: grid;
    gap: 18px;
}

.request-card {
    padding: clamp(22px, 4vw, 34px);
}

.request-card > header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.request-card h2 {
    margin: 4px 0 4px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
}

.request-card header p:not(.eyebrow),
.contact-links {
    color: var(--muted);
}

.contact-links {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

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

.admin-section {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.admin-section h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

dd ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

dd li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    background: #fff;
}

@media (max-width: 900px) {
    .fields-grid,
    .choice-grid,
    .admin-sections {
        grid-template-columns: 1fr;
    }

    .admin-heading,
    .request-card > header,
    .admin-list-head {
        display: grid;
    }

    .contact-links {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .brand-bar a {
        min-height: 62px;
        margin-left: 18px;
    }

    .quote-shell {
        width: min(100% - 24px, 1180px);
        padding: 28px 0;
    }

    h1 {
        font-size: 40px;
    }

    .form-section legend {
        align-items: flex-start;
        font-size: 25px;
    }

    .actions,
    button,
    .logout {
        width: 100%;
    }
}
