:root {
    --bg: #f5f2ec;
    --panel: #fff;
    --ink: #211f1d;
    --muted: #6c6258;
    --line: #d8d0c5;
    --accent: #b3261e;
    --accent-dark: #7e1712;
    --green: #1f7049;
    --green-soft: #e7f3ec;
    --amber: #8a5a00;
    --amber-soft: #fff3d4;
    --red-soft: #fde9e7;
    --focus: #1769aa;
    --shadow: 0 10px 30px rgba(33, 31, 29, 0.1);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    color-scheme: light;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(23, 105, 170, 0.3);
    outline-offset: 2px;
}

.topbar {
    background: #211f1d;
    color: #fff;
    padding: 12px 18px;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 74px;
    height: auto;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.nav-toggle:hover {
    background: #fff;
    color: #211f1d;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.nav-toggle-lines {
    position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    position: absolute;
    left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link,
.nav-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-link:hover,
.nav-button:hover,
.nav-item:focus-within > .nav-button {
    background: #fff;
    color: #211f1d;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 180px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #211f1d;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: #f0ede7;
    color: var(--accent);
}

.page-shell {
    width: min(960px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 50px;
}

.page-heading {
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.18;
}

.page-heading > p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
}

.progress {
    display: grid;
    grid-template-columns: repeat(7, minmax(74px, 1fr));
    gap: 0;
    margin: 0 0 20px;
    padding: 0 0 8px;
    overflow-x: auto;
    list-style: none;
}

.progress li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #81766b;
    font-size: 0.74rem;
    text-align: center;
}

.progress li::before {
    position: absolute;
    top: 16px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--line);
    content: "";
}

.progress li:first-child::before {
    left: 50%;
    width: 50%;
}

.progress li:last-child::before {
    width: 50%;
}

.progress span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    font-weight: 800;
}

.progress li.active,
.progress li.complete {
    color: var(--green);
}

.progress li.active span,
.progress li.complete span {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.progress li.complete::before,
.progress li.active::before {
    background: var(--green);
}

.wizard-step {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.wizard-step[hidden] {
    display: none;
}

.step-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.step-heading h2,
.success-step h2 {
    margin: 0;
    font-size: 1.35rem;
}

.step-heading p {
    margin: 3px 0 0;
    color: var(--muted);
}

.step-number {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

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

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

.compact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr);
    align-items: end;
}

.field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

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

.field > span,
legend {
    color: #332e29;
    font-size: 0.9rem;
    font-weight: 750;
}

.field small,
.muted {
    color: var(--muted);
    font-size: 0.82rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #bdb3a7;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
}

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

input[readonly] {
    background: #eeeae4;
    color: #554e47;
}

input:invalid:not(:placeholder-shown),
select:invalid:not(:focus) {
    border-color: var(--accent);
}

fieldset {
    margin: 22px 0 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

legend {
    padding: 0 8px;
}

.address-search-field {
    margin-bottom: 16px;
}

.address-grid {
    grid-template-columns: minmax(170px, 2fr) minmax(90px, 0.65fr) minmax(90px, 0.7fr) minmax(150px, 1.4fr) minmax(140px, 1fr);
}

.suggestions {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.suggestion-button {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #eee8df;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.suggestion-button:hover,
.suggestion-button:focus-visible {
    background: #f3efe9;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    background: var(--accent);
    color: #fff;
}

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

.button.secondary {
    border-color: #a89e92;
    background: #fff;
    color: var(--ink);
}

.button.secondary:hover {
    background: #eeeae4;
}

.button:disabled,
.text-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.text-button {
    border: 0;
    padding: 8px 2px;
    background: transparent;
    color: var(--accent);
    font-weight: 750;
    text-decoration: underline;
    cursor: pointer;
}

.action-field .button {
    width: 100%;
}

.code-panel {
    margin-top: 20px;
    padding: 18px;
    border-left: 4px solid var(--green);
    background: var(--green-soft);
}

.verification-privacy-note {
    margin: 0 0 20px;
    padding: 14px;
    border-left: 4px solid var(--green);
    background: var(--green-soft);
    color: #174c34;
}

.verification-privacy-note p {
    margin: 6px 0 0;
}

.verification-privacy-note a {
    color: var(--accent);
    font-weight: 750;
}

.code-panel > p {
    margin-top: 0;
}

.inline-actions,
.step-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-actions {
    margin-top: 8px;
}

.step-actions {
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.status {
    display: none;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-left: 4px solid var(--focus);
    background: #e9f2fa;
    color: #173f60;
}

.status.show { display: block; }
.status.success { border-color: var(--green); background: var(--green-soft); color: #174c34; }
.status.warning { border-color: var(--amber); background: var(--amber-soft); color: #664300; }
.status.error { border-color: var(--accent); background: var(--red-soft); color: #721c18; }

#globalStatus {
    margin: 0 0 16px;
}

.alternatives {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e5c56e;
    background: var(--amber-soft);
}

.alternatives h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.alternative-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alternative-list .button {
    min-height: 40px;
    padding: 8px 12px;
}

.product-groups {
    display: grid;
    gap: 20px;
}

.offer-type-fieldset {
    margin: 0 0 22px;
}

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

.offer-type-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #faf8f4;
    cursor: pointer;
}

.offer-type-option:hover {
    border-color: var(--green);
    background: var(--green-soft);
}

.offer-type-option input {
    flex: 0 0 auto;
    width: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    accent-color: var(--green);
}

.offer-type-option strong,
.offer-type-option small {
    display: block;
}

.offer-type-option small {
    margin-top: 5px;
    color: var(--muted);
}

.time-help,
.minimum-revenue-notice {
    margin: 14px 0 0;
    padding: 14px;
    border-left: 4px solid var(--green);
    background: var(--green-soft);
}

.time-help p,
.minimum-revenue-notice p {
    margin: 0;
}

.time-help .duration {
    margin-top: 7px;
    color: #174c34;
    font-weight: 800;
}

.minimum-revenue-notice h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.minimum-revenue-notice p + p {
    margin-top: 8px;
    font-weight: 700;
}

.minimum-revenue-menu {
    margin: 16px 0;
}

.minimum-revenue-menu h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.minimum-revenue-menu > a:first-of-type {
    display: block;
    width: min(100%, 420px);
    margin-bottom: 10px;
}

.minimum-revenue-menu img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.catering-menu-preview {
    margin: 0 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.catering-menu-preview h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.catering-menu-preview > a:first-of-type {
    display: block;
    width: min(100%, 520px);
    margin-bottom: 10px;
}

.catering-menu-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.product-group {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.product-group:last-child {
    border-bottom: 0;
}

.product-group h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

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

.product-option,
.check-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-option {
    min-height: 64px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #faf8f4;
}

.product-option.required {
    border-color: #9cc3ad;
    background: var(--green-soft);
}

.product-option input,
.check-line input {
    flex: 0 0 auto;
    width: 20px;
    min-height: 20px;
    margin: 2px 0 0;
}

.product-option strong,
.product-option small {
    display: block;
}

.product-option small {
    margin-top: 2px;
    color: var(--muted);
}

.check-line {
    margin: 8px 0;
}

.privacy-line {
    margin-top: 22px;
}

.privacy-line a,
.contact-strip a {
    color: var(--accent);
    font-weight: 750;
}

.address-summary {
    margin: 0;
    color: var(--muted);
}

.availability-summary {
    margin-bottom: 16px;
    padding: 14px;
    border-left: 4px solid var(--green);
    background: var(--green-soft);
}

.availability-summary.warning {
    border-color: var(--amber);
    background: var(--amber-soft);
}

.preview-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 12px;
    padding: 18px;
    border: 2px solid var(--green);
    background: var(--green-soft);
}

.preview-price span {
    font-weight: 750;
}

.preview-price strong {
    flex: 0 0 auto;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    font-variant-numeric: tabular-nums;
}

.cash-discount-notice {
    margin: 0 0 18px;
    padding: 14px;
    border-left: 4px solid var(--green);
    background: var(--green-soft);
    font-weight: 700;
}

.legal-notice {
    padding: 14px;
    border: 1px solid #e1c267;
    background: var(--amber-soft);
    color: #5c4100;
}

.decision-actions .text-button {
    margin-right: auto;
}

.abandonment-panel {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #faf8f4;
}

.abandonment-panel h3 {
    margin: 0 0 16px;
    font-size: 1.08rem;
    line-height: 1.4;
}

.abandonment-reasons {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.abandonment-reason {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.abandonment-reason:hover {
    border-color: var(--green);
}

.abandonment-reason input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    accent-color: var(--green);
}

.abandonment-actions {
    margin-top: 14px;
}

.abandonment-actions .text-button {
    margin-right: auto;
}

@media (max-width: 520px) {
    .preview-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

.success-step {
    text-align: center;
}

.success-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.reference {
    margin: 22px auto;
    font-size: 1.12rem;
}

.contact-strip {
    margin-top: 18px;
    padding: 14px 18px;
    border-top: 3px solid var(--accent);
    background: #fff;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 760px) {
    .topbar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px;
    }

    .brand img { width: 62px; }
    .nav-toggle { display: inline-flex; justify-self: end; }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 6px;
        padding-top: 4px;
    }

    .main-nav.open { display: flex; }
    .nav-link, .nav-button { min-height: 34px; padding: 7px 10px; font-size: 14px; }
    .nav-dropdown { right: auto; left: 0; }

    .page-shell {
        width: min(100% - 20px, 680px);
        padding-top: 18px;
    }

    .progress {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 30px;
    }

    .progress span {
        width: 30px;
        height: 30px;
    }

    .progress li::before {
        top: 14px;
    }

    .progress b {
        display: none;
    }

    .progress li.active b {
        position: absolute;
        top: 36px;
        left: 50%;
        display: block;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    h1 { font-size: 1.55rem; }
    .wizard-step { padding: 17px 14px; }
    .form-grid, .three-columns, .compact-grid, .address-grid, .product-options, .offer-type-options { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .action-field > span { display: none; }
    .step-actions .button { flex: 1 1 150px; }
    .decision-actions .text-button { flex-basis: 100%; order: 3; margin: 0 auto; }
}

@media (max-width: 420px) {
    .step-heading { gap: 9px; }
    .step-heading p { font-size: 0.9rem; }
    fieldset { padding: 14px 10px; }
}

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