:root {
    color-scheme: light;
    --page: #f4f5f9;
    --surface: #ffffff;
    --surface-soft: #f8f8fc;
    --text: #2f2b3d;
    --muted: #6f6b7d;
    --border: #e6e6ef;
    --primary: #696cff;
    --primary-dark: #5558e3;
    --primary-soft: #efefff;
    --success: #28a745;
    --success-soft: #eaf8ef;
    --danger: #d93025;
    --danger-soft: #fff0ef;
    --shadow: 0 18px 55px rgba(47, 43, 61, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(105, 108, 255, 0.08), transparent 30rem),
        var(--page);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--primary);
}

button,
input {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.quote-page {
    min-height: 100vh;
}

.quote-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
}

.quote-header-inner,
.quote-content {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.quote-header-inner {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--border);
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #8f91ff);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

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

.company-name {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.company-contact {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
}

.company-contact a {
    color: var(--muted);
    text-decoration: none;
}

.company-contact a:hover {
    color: var(--primary);
}

.quote-content {
    padding: 42px 0 60px;
}

.intro-card,
.quote-option,
.simple-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.intro-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
}

.intro-card h2,
.section-heading h2 {
    margin: 0;
    line-height: 1.25;
}

.intro-card h2 {
    font-size: clamp(26px, 4vw, 36px);
}

.event-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 24px;
}

.event-detail {
    display: grid;
    gap: 3px;
}

.event-label,
.valid-until span,
.quote-price span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.valid-until {
    display: grid;
    min-width: 145px;
    gap: 4px;
    padding: 12px 15px;
    border-radius: 12px;
    background: var(--surface-soft);
    text-align: right;
}

.offer-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--primary-soft);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 42px 0 18px;
}

.section-heading > span {
    color: var(--muted);
    font-size: 14px;
}

.quote-options {
    display: grid;
    gap: 20px;
}

.quote-option {
    overflow: hidden;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.quote-option-selected {
    border-color: rgba(105, 108, 255, 0.55);
    box-shadow: 0 18px 55px rgba(105, 108, 255, 0.14);
}

.quote-option-accepted {
    border-color: rgba(40, 167, 69, 0.55);
    box-shadow: 0 18px 55px rgba(40, 167, 69, 0.12);
}

.quote-option-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px 22px;
}

.quote-option h3 {
    margin: 5px 0 0;
    font-size: 22px;
}

.quote-note {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--muted);
}

.quote-price {
    display: grid;
    min-width: 150px;
    gap: 2px;
    text-align: right;
}

.quote-price strong {
    font-size: 27px;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 12px;
    font-weight: 800;
}

.status-accepted {
    color: #187432;
    background: var(--success-soft);
}

.status-muted {
    color: var(--muted);
    background: var(--surface-soft);
}

.quote-items {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.quote-item {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 28px;
}

.quote-item + .quote-item {
    border-top: 1px solid var(--border);
}

.quote-item > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-check {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #187432;
    background: var(--success-soft);
    font-size: 12px;
    font-weight: 900;
}

.quote-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 28px 24px;
}

.quote-actions p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.accept-button {
    min-width: 180px;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(105, 108, 255, 0.2);
}

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

.accept-button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(105, 108, 255, 0.26);
    outline-offset: 3px;
}

.accepted-option-note {
    padding: 19px 28px 23px;
    color: #187432;
}

.alert,
.accepted-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 15px 18px;
}

.alert {
    flex-wrap: wrap;
}

.alert-success,
.accepted-banner {
    color: #155b29;
    background: var(--success-soft);
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.alert-error {
    color: #8d2018;
    background: var(--danger-soft);
    border: 1px solid rgba(217, 48, 37, 0.18);
}

.accepted-banner {
    margin-top: 22px;
}

.accepted-banner > div {
    display: grid;
    gap: 2px;
}

.accepted-banner > div span {
    color: #447251;
    font-size: 14px;
}

.accepted-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--success);
    font-weight: 900;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 40px;
    background: var(--surface);
    text-align: center;
}

.empty-state h2,
.empty-state p {
    margin: 0;
}

.empty-state p {
    margin-top: 7px;
    color: var(--muted);
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 4px 0;
    color: var(--muted);
    font-size: 13px;
}

.quote-footer a {
    color: var(--muted);
}

.simple-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.simple-card {
    width: min(560px, 100%);
    padding: 38px;
    text-align: center;
}

.simple-card .brand-mark {
    margin: 0 auto 22px;
}

.simple-card h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 38px);
}

.simple-card p {
    margin: 14px auto 0;
    max-width: 440px;
}

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

@media (max-width: 720px) {
    .quote-header-inner,
    .quote-content {
        width: min(100% - 22px, 1080px);
    }

    .quote-header-inner {
        min-height: 78px;
    }

    .company-logo,
    .brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .company-name {
        font-size: 18px;
    }

    .company-contact {
        display: none;
    }

    .quote-content {
        padding-top: 22px;
    }

    .intro-card,
    .quote-option-header,
    .quote-actions {
        flex-direction: column;
    }

    .intro-card {
        padding: 22px;
    }

    .valid-until,
    .quote-price {
        min-width: 0;
        text-align: left;
    }

    .event-summary {
        gap: 18px 26px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 30px;
    }

    .quote-option-header {
        padding: 22px 20px 18px;
    }

    .quote-price strong {
        font-size: 24px;
    }

    .quote-item {
        padding: 10px 20px;
    }

    .quote-actions {
        align-items: stretch;
        padding: 18px 20px 22px;
    }

    .accept-button {
        width: 100%;
    }

    .quote-actions p {
        text-align: left;
    }

    .quote-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
