:root {
    --ink: #1f2925;
    --muted: #67716c;
    --paper: #fffdf9;
    --canvas: #f3f1eb;
    --line: #deddd6;
    --accent: #b84e32;
    --accent-dark: #8f3824;
    --forest: #4b2381;
    --forest-soft: #e5eee9;
    --shadow: 0 20px 55px rgba(34, 43, 38, 0.09);
    --radius-lg: 24px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 7%, rgba(184, 78, 50, 0.08), transparent 27rem),
        var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.site-header,
footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--forest);
    font-family: Georgia, serif;
    font-size: 1.4rem;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.93rem;
    letter-spacing: 0.01em;
}

.brand small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.72rem;
}

.secure-note {
    color: var(--muted);
    font-size: 0.83rem;
}

.secure-note span {
    margin-right: 7px;
    color: #4d9a6e;
    font-size: 0.65rem;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 30px auto 80px;
}

.intro {
    max-width: 760px;
    margin-bottom: 38px;
}

.eyebrow,
.step-label {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.intro h1 {
    max-width: 720px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.1rem, 7vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.intro > p:last-child {
    max-width: 600px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.booking-card,
.side-card,
.confirmation-card {
    border: 1px solid rgba(31, 41, 37, 0.09);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.booking-card {
    padding: clamp(24px, 4vw, 46px);
    border-radius: var(--radius-lg);
}

.step-heading {
    display: flex;
    gap: 14px;
    align-items: center;
}

.step-heading h2,
.side-card h2,
.confirmation-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.step-heading .step-label {
    margin-bottom: 2px;
}

.step-number {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #cfd4d0;
    border-radius: 50%;
    color: var(--forest);
    font-size: 0.78rem;
    font-weight: 800;
}

.duration-fieldset {
    min-width: 0;
    margin: 32px 0;
    padding: 0;
    border: 0;
}

.duration-fieldset legend,
.field span {
    margin-bottom: 10px;
    color: #49524d;
    font-size: 0.8rem;
    font-weight: 750;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.duration-option {
    cursor: pointer;
}

.duration-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.duration-option span {
    display: flex;
    min-height: 52px;
    gap: 4px;
    align-items: baseline;
    justify-content: center;
    padding: 13px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--muted);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.duration-option strong {
    color: var(--ink);
    font-size: 1rem;
}

.duration-option input:checked + span {
    border-color: var(--forest);
    color: white;
    background: var(--forest);
    transform: translateY(-1px);
}

.duration-option input:checked + span strong {
    color: white;
}

.duration-option input:focus-visible + span {
    outline: 3px solid rgba(30, 75, 58, 0.22);
    outline-offset: 2px;
}

.calendar-time-grid {
    display: grid;
    grid-template-columns: minmax(350px, 1.2fr) minmax(230px, 0.8fr);
    gap: 28px;
}

.calendar {
    min-width: 0;
}

.calendar-header,
.times-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-header h3,
.times-heading h3 {
    margin: 0;
    font-size: 0.96rem;
}

.icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.icon-button:hover:not(:disabled) {
    border-color: var(--forest);
}

.icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays {
    margin: 18px 0 7px;
}

.weekdays span {
    padding: 4px;
    color: #8a918d;
    font-size: 0.64rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-grid {
    gap: 4px;
}

.calendar-day {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}

.calendar-day:not(:disabled):hover {
    background: var(--forest-soft);
}

.calendar-day:not(:disabled)::after {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #75a68c;
    content: "";
    transform: translateX(-50%);
}

.calendar-day.selected {
    color: white;
    background: var(--accent);
}

.calendar-day.selected:not(:disabled):hover {
    background: var(--accent-dark);
}

.calendar-day.selected::after {
    background: white;
}

.calendar-day.today:not(.selected) {
    box-shadow: inset 0 0 0 1px var(--forest);
}

.calendar-day:disabled {
    color: #b8bcb9;
    cursor: default;
}

.calendar-day.outside-month {
    opacity: 0;
}

.calendar-day.closed-day {
    color: #c8cbc9;
    text-decoration: line-through;
}

.calendar-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.68rem;
}

.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #75a68c;
}

.legend-dot.selected {
    background: var(--accent);
}

.times {
    min-height: 320px;
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.times-heading .step-label {
    margin-bottom: 2px;
}

.timezone {
    color: var(--muted);
    font-size: 0.64rem;
}

.time-status {
    margin: 58px 10px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 282px;
    margin-top: 17px;
    padding-right: 4px;
    overflow-y: auto;
}

.time-button {
    min-height: 43px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
}

.time-button:hover {
    border-color: var(--forest);
}

.time-button.selected {
    border-color: var(--forest);
    color: white;
    background: var(--forest);
}

.time-button.booked,
.time-button.booked:hover,
.time-button.booked:disabled {
    border-color: #dca39a;
    color: #922f26;
    background: #fbe9e6;
    cursor: not-allowed;
    opacity: 1;
}

.divider {
    height: 1px;
    margin: 42px 0 36px;
    background: var(--line);
}

.details-heading {
    margin-bottom: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: grid;
}

.field span {
    margin-bottom: 7px;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: white;
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(30, 75, 58, 0.1);
}

.field input::placeholder {
    color: #a5aaa7;
}

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

.captcha-field > label {
    margin-bottom: 7px;
}

.captcha-control {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-code {
    display: grid;
    min-width: 118px;
    min-height: 50px;
    place-items: center;
    padding: 8px 15px;
    border: 1px dashed var(--forest);
    border-radius: 11px;
    color: var(--forest);
    background: #f1f6f3;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    user-select: none;
}

.captcha-control input {
    max-width: 180px;
}

.captcha-field small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.72rem;
}

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

.booking-action {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.mini-summary span,
.mini-summary strong {
    display: block;
}

.mini-summary span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.72rem;
}

.mini-summary strong {
    font-size: 0.87rem;
}

.primary-button,
.secondary-button {
    min-height: 50px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    min-width: 190px;
    padding: 13px 20px;
    border: 0;
    color: white;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(184, 78, 50, 0.2);
}

.primary-button span {
    margin-left: 16px;
}

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

.primary-button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.45;
}

.privacy-note {
    margin: 14px 0 0;
    color: #858c88;
    font-size: 0.67rem;
    text-align: right;
}

.form-message {
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid #e5b5a9;
    border-radius: 10px;
    color: #7c2f1f;
    background: #fff0ec;
    font-size: 0.82rem;
}

.side-card {
    position: sticky;
    top: 22px;
    padding: 32px;
    border-radius: var(--radius-lg);
    color: white;
    background: var(--forest);
}

.side-card .eyebrow {
    color: #b9d3c5;
}

.side-card h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.benefits {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #e0ebe5;
    font-size: 0.81rem;
}

.benefits li span {
    color: #8fb4a1;
    font-size: 0.64rem;
    font-weight: 800;
}

.side-note {
    margin: 32px 0 0;
    color: #a9c5b6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    font-style: italic;
}

.confirmation-card {
    max-width: 680px;
    margin: 80px auto;
    padding: clamp(34px, 7vw, 70px);
    border-radius: var(--radius-lg);
    text-align: center;
}

.success-mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 25px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--forest);
    font-size: 1.5rem;
}

.confirmation-card h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.confirmation-card > p:not(.eyebrow) {
    color: var(--muted);
}

.confirmation-email {
    max-width: 500px;
    margin: 10px auto;
}

.reference {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    margin: 20px 0 28px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #faf8f3;
}

.reference span {
    color: var(--muted);
    font-size: 0.72rem;
}

.reference strong {
    letter-spacing: 0.12em;
}

.secondary-button {
    display: block;
    margin: 0 auto;
    padding: 12px 20px;
    border: 1px solid var(--forest);
    color: var(--forest);
    background: transparent;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 26px 0 40px;
    border-top: 1px solid rgba(31, 41, 37, 0.12);
    color: var(--muted);
    font-size: 0.72rem;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(184, 78, 50, 0.26);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 960px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
        display: none;
    }
}

@media (max-width: 720px) {
    .site-header,
    .page,
    footer {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        min-height: 76px;
    }

    .brand small,
    .secure-note {
        display: none;
    }

    .page {
        margin-top: 20px;
    }

    .intro {
        margin-bottom: 28px;
    }

    .intro h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .booking-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .duration-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-time-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .times {
        min-height: auto;
        padding: 28px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .time-status {
        margin: 34px 10px;
    }

    .time-grid {
        max-height: none;
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .captcha-control input {
        max-width: none;
    }

    .booking-action {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
    }

    .privacy-note {
        text-align: left;
    }

    footer {
        gap: 10px;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-day {
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
