@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --ink: #222820;
    --muted: #85877e;
    --green: #52694d;
    --green-dark: #3d5039;
    --green-light: #edf1e9;
    --cream: #faf9f5;
    --border: #e9e8df;
    --gold: #c2a16c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 10% 10%, #eeeee4 0, transparent 42%),
        var(--cream);
    color: var(--ink);
    font-family: system-ui;
    padding: 36px 18px 60px;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.page {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-icon {
    color: var(--green);
    font-size: 27px;
}

.booking-card,
.confirmation {
    padding: 44px;
    background: #fff;
    border: 1px solid #efeee8;
    border-radius: 20px;
    box-shadow: 0 22px 70px #33351c0a;
    animation: rise-in .5s ease both;
}

.eyebrow {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

h1 {
    margin: 13px 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 7vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.intro>p,
.section-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.intro>p {
    max-width: 360px;
}

.progress {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 32px 0 36px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #b1b1a9;
}

.progress-step>span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 10px;
}

.progress-step small {
    font-size: 11px;
}

.progress-step.active {
    color: var(--green);
}

.progress-step.active>span {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.progress-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.section-number {
    padding-top: 5px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
}

.section-heading p {
    margin: 6px 0 0;
}

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

.location-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    transition: .2s ease;
}

.location-option:hover {
    border-color: #a4b19d;
}

.location-option.selected {
    border: 1px solid var(--green);
    background: #f7f9f4;
}

.location-symbol {
    margin-bottom: 15px;
    color: var(--green);
    font-size: 23px;
}

.location-name {
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    color: black;
}

.location-subtitle {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.location-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: none;
    color: var(--green);
}

.location-option.selected .location-check {
    display: block;
}

.field-group {
    margin-top: 25px;
}

.field-group[hidden] {
    display: none;
}

.field-group>label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;
}

.field-hint {
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 11px;
}

input,
select {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}

input:focus,
select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px #52694d14;
}

.calendar {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.calendar-header strong {
    font-size: 13px;
}

.calendar-header button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--green);
    font-size: 22px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    text-align: center;
}

.calendar-weekdays {
    margin-bottom: 9px;
}

.calendar-weekdays span {
    color: var(--muted);
    font-size: 10px;
}

.calendar-day {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    transition: .15s ease;
}

.calendar-day:not(:disabled):hover {
    background: var(--green-light);
}

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

.calendar-day:disabled {
    color: #d4d4ce;
    cursor: not-allowed;
}

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

.calendar-day.empty {
    pointer-events: none;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.time-slot {
    min-height: 39px;
    padding: 8px 3px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    font-size: 11px;
    transition: .15s ease;
}

.time-slot:hover {
    border-color: var(--green);
}

.time-slot.selected {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

.appointment-summary {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding: 16px;
    border: 1px solid #dfe7d9;
    border-radius: 10px;
    background: #f7f9f4;
}

.summary-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #e3eadc;
    color: var(--green);
    font-size: 13px;
}

.appointment-summary strong {
    font-size: 12px;
}

.appointment-summary p {
    margin: 6px 0;
    font-size: 12px;
}

.appointment-summary small {
    color: var(--muted);
    font-size: 10px;
}

.primary-button,
.secondary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 49px;
    padding: 0 19px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: .2s ease;
    line-height: 1;
}

.primary-button {
    width: 100%;
    margin-top: 27px;
    border: 1px solid var(--green);
    background: var(--green);
    color: white;
}

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

.primary-button:disabled {
    opacity: .6;
    cursor: wait;
}

.secondary-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--ink);
}

.button-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 27px;
}

.button-row .primary-button {
    margin-top: 0;
}

.error-message {
    color: #b34040;
    font-size: 12px;
    line-height: 1.5;
}

footer {
    margin-top: 27px;
    color: #a2a298;
    text-align: center;
    font-size: 10px;
}

.confirmation {
    text-align: center;
}

.confirmation[hidden] {
    display: none;
}

.confirmation h1 {
    margin-top: 20px;
}

.confirmation-message {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.success-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
}

.success-animation svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.success-circle {
    fill: #edf3e9;
    stroke: var(--green);
    stroke-width: 2;
    stroke-dasharray: 277;
    stroke-dashoffset: 277;
    animation: draw-circle .8s ease forwards;
}

.success-check {
    fill: none;
    stroke: var(--green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: draw-check .5s .65s ease forwards;
}

.confirmation-details {
    margin-top: 28px;
    padding: 5px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
}

.confirmation-details>div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.confirmation-details>div:last-child {
    border-bottom: 0;
}

.confirmation-details span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.confirmation-details strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.demo-note {
    margin-top: 20px;
    color: #a34c37;
    font-size: 11px;
    line-height: 1.6;
}

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

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    body {
        padding: 0;
        background: white;
        min-height: unset;
    }

    .booking-card,
    .confirmation {
        padding: 25px 19px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .progress {
        gap: 8px;
    }

    .progress-step {
        gap: 6px;
    }

    .progress-step small {
        font-size: 10px;
    }

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

    .calendar {
        padding: 10px;
    }

    .calendar-weekdays,
    .calendar-days {
        gap: 2px;
    }
}

#date-group,
#single-date,
#reservation-time,
#time-group {
    cursor: pointer;
}

.cl_timePopover_time.is-blocked {
    display: none;
}

@media (max-width: 640px) {
    .cl_timePopover_panel {
        border-top: 1px solid gray;
    }
}