:root {
    --background: #faf7f2;
    --text: #342e2b;
    --muted: #79716c;
    --accent: #885647;
    --border: #e5ddd5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.header,
main,
footer {
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

a {
    color: inherit;
    text-decoration: none;
}

.logo {
    font-family: Georgia, serif;
    font-size: 34px;
    letter-spacing: -1.5px;
}

.logo span {
    display: block;
    margin-top: 6px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
}

.contact {
    font-size: 13px;
}

.contact:hover {
    text-decoration: underline;
}

.intro {
    padding: 74px 0 52px;
    text-align: center;
}

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

h1 {
    margin: 22px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -2px;
}

h1 em {
    color: var(--accent);
    font-weight: 400;
}

.intro p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

fieldset {
    min-width: 0;
    margin: 0 0 38px;
    padding: 0;
    border: 0;
}

legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0;
    font-size: 17px;
}

.step {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 11px;
}

.locations,
.services {
    display: grid;
    gap: 16px;
}

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

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

.choice {
    position: relative;
    cursor: pointer;
}

/* Keep the radio buttons accessible to keyboard users. */
.choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.card {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fffdf9;
    transition: border-color 180ms, background 180ms, box-shadow 180ms;
}

.choice:hover .card {
    border-color: #b9998b;
}

.choice input:checked + .card {
    border-color: var(--accent);
    background: #f3e9e1;
    box-shadow: 0 0 0 1px var(--accent);
}

.choice input:focus-visible + .card {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
}

.tag,
.service-number {
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.indicator {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    border: 1px solid #cbbdb1;
    border-radius: 50%;
}

.choice input:checked + .card .indicator {
    border: 5px solid var(--accent);
    background: white;
}

.card strong {
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.location-card strong {
    font-size: 34px;
}

.service-card strong {
    font-size: 22px;
    line-height: 1.3;
}

.description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.booking-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 0 56px;
    border-top: 1px solid var(--border);
}

.booking-bottom p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: 18px 25px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

button:hover {
    background: #704536;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

button span {
    font-size: 22px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 700px) {
    .header,
    main,
    footer {
        width: calc(100% - 32px);
    }

    .intro {
        padding-top: 50px;
    }

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

    .card {
        padding: 22px;
    }

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

    footer {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .locations {
        grid-template-columns: 1fr;
    }

    .contact {
        max-width: 110px;
        font-size: 12px;
    }
}

.service-picker {
    min-width: 0;
    margin: 40px 0;
    padding: 0;
    border: 0;
}

.service-picker legend {
    margin-bottom: 24px;
    font-size: 20px;
}

.service-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-button {
    padding: 12px 20px;
    border: 1px solid #e6dcd3;
    border-radius: 999px;
    background: #fffdfa;
    color: #584338;
    font: inherit;
    cursor: pointer;
}

.category-button.active {
    border-color: #8b5e49;
    background: #8b5e49;
    color: white;
}

.category-button:focus-visible {
    outline: 2px solid #8b5e49;
    outline-offset: 4px;
}

.service-list {
    display: grid;
    gap: 12px;
}

.service-option {
    position: relative;
    display: block;
    cursor: pointer;
}

/* Hide visually while keeping keyboard access. */
.service-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid #e6dcd3;
    border-radius: 18px;
    background: #fffdfa;
    transition: background 150ms, border-color 150ms;
}

.service-info {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 6px;
}

.service-name {
    color: #352b25;
    font-size: 18px;
}

.service-duration {
    color: #8a796c;
    font-size: 14px;
}

.service-price {
    color: #584338;
    font-size: 18px;
    white-space: nowrap;
}

.service-radio {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 1px solid #cdb9aa;
    border-radius: 50%;
}

.service-option:hover .service-card {
    border-color: #b68d73;
}

.service-option > input:checked + .service-card {
    border-color: #8b5e49;
    background: #f5eee7;
}

.service-option > input:checked + .service-card .service-radio {
    border-color: #8b5e49;
}

.service-option > input:checked + .service-card .service-radio::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8b5e49;
}

.service-option > input:focus-visible + .service-card {
    outline: 2px solid #8b5e49;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .category-button {
        padding: 10px 14px;
        font-size: 14px;
    }

    .service-card {
        gap: 12px;
        padding: 18px 16px;
    }

    .service-name,
    .service-price {
        font-size: 16px;
    }
}

.service-option input:checked + .service-card {
    outline: 2px solid #885d49;
    outline-offset: -2px;
}

.service-option input:focus-visible + .service-card {
    outline: 2px solid #885d49;
    outline-offset: 3px;
}

.service-option.is-unavailable .service-card {
    background: #f4efe9;
    cursor: not-allowed;
}

.service-unavailable-reason {
    display: block;
    margin-top: 0.35rem;
}

.selection-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #e7ded4;
    border-radius: 12px;
}

#selectedServices {
    list-style: none;
    padding: 0;
}

#selectedServices li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

#selectionTotal {
    font-weight: 600;
}

#continueToCalendar:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .header {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .header .logo,
    .header .contact {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }

    #serviceSelectionForm,
    #serviceSelectionForm fieldset {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #serviceSelectionForm .locations {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    #serviceSelectionForm .choice,
    #serviceSelectionForm .location-card,
    #serviceSelectionForm .service-option,
    #serviceSelectionForm .service-card {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #serviceSelectionForm .service-categories {
        flex-wrap: wrap;
    }

    #serviceSelectionForm .service-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 0.5rem;
    }

    #serviceSelectionForm .service-info {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #serviceSelectionForm .service-price {
        max-width: 6rem;
        white-space: normal;
        text-align: right;
    }

    #serviceSelectionForm .booking-bottom {
        flex-wrap: wrap;
    }

    #continueToCalendar {
        width: 100%;
        white-space: normal;
    }
}
#serviceSelectionForm .selection-summary {
    margin-top: 1.5rem;
    padding: clamp(1rem, 3vw, 1.75rem);
    background: #fffcf8;
    border: 1px solid #e7ded4;
    border-radius: 1rem;
    color: #382b24;
}

#selectionTitle {
    margin: 0 0 0.75rem;
    font: 400 clamp(1.5rem, 3vw, 2rem) / 1.2 Georgia, serif;
}

#selectionEmpty {
    margin: 0;
    color: #6d594e;
}

#selectedServices {
    margin: 0;
    padding: 0;
    list-style: none;
}

#selectedServices li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee5db;
    overflow-wrap: anywhere;
}

#serviceSelectionForm #selectedServices button {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ded0c4;
    border-radius: 0.5rem;
    background: transparent;
    color: #744d3c;
    font-size: 0.875rem;
    cursor: pointer;
}

#serviceSelectionForm #selectedServices button:hover {
    background: #f3e9df;
}

#serviceSelectionForm #selectedServices button:focus-visible {
    outline: 2px solid #885d49;
    outline-offset: 2px;
}

#selectionTotal {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    background: #f3e9df;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.service-placeholder {
    min-height: 76px;
    border: 1px solid #e6dcd3;
    border-radius: 14px;
    background: #f0e9e2;
}

.button-arrow {
    display: inline-block;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
}

.contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #885d49;
    text-decoration: none;
}

a.contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #885d49;
    font-size: 14px;
    text-decoration: none;
}

a.contact:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

#continueToCalendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}
.locations input:checked + .location-card {
    background: #efe1d7;
    border-color: #885d49;
    outline: 2px solid #885d49;
    outline-offset: 2px;
}