.ysh-booking-form,
.ysh-booking-result {
    box-sizing: border-box;
    max-width: 760px;
    margin: 24px auto;
    padding: 28px;
    border: 1px solid #e3e6e8;
    border-radius: 12px;
    background: #fff;
    color: #222;
}

.ysh-booking-form *,
.ysh-booking-result * {
    box-sizing: border-box;
}

.page .ysh-booking-form h2,
.page .ysh-booking-result h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

.ysh-booking-note {
    padding: 12px 14px;
    border-left: 4px solid #719b69;
    background: #f3f8f1;
}

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

.ysh-booking-form label {
    display: block;
    margin: 0 0 18px;
    font-weight: 600;
}

.ysh-booking-form input,
.ysh-booking-form select,
.ysh-booking-form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font: inherit;
}

.ysh-booking-form input:focus,
.ysh-booking-form select:focus,
.ysh-booking-form textarea:focus {
    border-color: #527b4d;
    outline: 3px solid rgba(82, 123, 77, 0.18);
}

.ysh-booking-form .ysh-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 600;
}

.ysh-booking-form .ysh-consent input {
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0.38em 0 0;
    padding: 0;
    border-radius: 2px;
    accent-color: #527b4d;
}

.ysh-consent__text {
    line-height: 1.7;
}

.ysh-required-note {
    margin: -14px 0 20px;
    color: #555;
    font-size: 0.9rem;
}

.ysh-booking-form button {
    padding: 13px 24px;
    border: 0;
    border-radius: 7px;
    background: #527b4d;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ysh-booking-form button:hover {
    background: #3f623b;
}

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

.ysh-menu-field {
    grid-column: 1 / -1;
}

.ysh-field-title {
    display: none;
}

.ysh-menu-category {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #d8dfd5;
    border-radius: 9px;
}

.ysh-menu-category legend {
    padding: 0 7px;
    color: #315d37;
    font-weight: 700;
}

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

.ysh-booking-form .ysh-menu-option {
    margin: 0;
    padding: 11px;
    border: 1px solid #dfe5dc;
    border-radius: 7px;
    background: #fbfcfa;
}

.ysh-booking-form .ysh-menu-option:has(> .ysh-menu-choice input:checked) {
    border-color: #41974f;
    background: #eef7eb;
}

.ysh-booking-form .ysh-menu-choice {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 2px 9px;
    margin: 0;
    cursor: pointer;
}

.ysh-booking-form .ysh-menu-choice input {
    grid-row: 1 / 3;
    width: auto;
    margin: 3px 0 0;
}

.ysh-menu-option small {
    color: #596457;
    font-weight: 400;
}

.ysh-menu-total {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #eef7eb;
}

.ysh-menu-total strong {
    margin-left: 6px;
    color: #28743a;
    font-size: 1.12rem;
}

.ysh-menu-error {
    min-height: 1.4em;
    margin: 0;
    color: #b42318;
    font-weight: 700;
}

.ysh-booking-form .ysh-first-visit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.ysh-booking-form .ysh-first-visit input {
    width: auto;
    margin: 0;
}

@media (max-width: 640px) {
    .ysh-booking-form,
    .ysh-booking-result {
        padding: 20px;
    }

    .ysh-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ysh-menu-options {
        grid-template-columns: 1fr;
    }

    .ysh-menu-total {
        justify-content: space-between;
        gap: 10px;
    }
}

.ysh-wizard-progress {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px 0 16px;
}

.ysh-menu-total--persistent {
    margin: 0 0 12px;
    border: 1px solid #d8e5d5;
}

.ysh-wizard-progress__label {
    flex: 0 0 auto;
    color: #3f934f;
    font-weight: 700;
}

.ysh-wizard-progress__track {
    height: 9px;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 999px;
    background: #d7e5d4;
}

.ysh-wizard-progress__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #41974f;
    transition: width 180ms ease;
}

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

.ysh-wizard-steps {
    padding: 4px 2px 12px;
}

.ysh-wizard-step > h3 {
    margin: 0 0 24px;
    font-size: 1.25rem;
}

.ysh-datetime-selected {
    margin: 0 0 18px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
}

.ysh-datetime-picker {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(250px, 1fr);
    gap: 24px;
}

.ysh-calendar,
.ysh-time-picker {
    padding: 18px;
    border-radius: 8px;
    background: #f0ede2;
}

.ysh-calendar__head {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    margin-bottom: 12px;
    text-align: center;
}

.ysh-booking-form .ysh-calendar__nav {
    min-width: 0;
    padding: 6px;
    background: transparent;
    color: #3f934f;
    font-size: 1.25rem;
}

.ysh-booking-form .ysh-calendar__nav:disabled {
    color: #aaa;
    cursor: default;
}

.ysh-calendar__weekdays,
.ysh-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.ysh-calendar__weekdays {
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.ysh-booking-form .ysh-calendar__day {
    width: 34px;
    height: 34px;
    min-width: 0;
    justify-self: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: #fffdf5;
    color: #315d37;
    font-size: 0.9rem;
}

.ysh-booking-form .ysh-calendar__day:hover:not(:disabled) {
    border-color: #41974f;
    background: #eef7eb;
}

.ysh-booking-form .ysh-calendar__day.is-selected {
    border-color: #41974f;
    background: #41974f;
    color: #fff;
}

.ysh-booking-form .ysh-calendar__day.is-today:not(.is-selected) {
    border-color: #86ad82;
}

.ysh-booking-form .ysh-calendar__day:disabled {
    background: transparent;
    color: #aaa493;
    cursor: not-allowed;
}

.ysh-time-picker h4 {
    margin: 0 0 14px;
    text-align: center;
}

.ysh-time-picker__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 10px;
    max-height: 255px;
    padding-right: 6px;
    overflow-y: auto;
}

.ysh-booking-form .ysh-time-button {
    min-width: 0;
    padding: 9px 5px;
    border: 2px solid #41974f;
    border-radius: 3px;
    background: #fffdf5;
    color: #27853b;
}

.ysh-booking-form .ysh-time-button:hover,
.ysh-booking-form .ysh-time-button.is-selected {
    background: #41974f;
    color: #fff;
}

.ysh-booking-form .ysh-time-button:disabled,
.ysh-booking-form .ysh-time-button:disabled:hover {
    border-color: #c8ccc7;
    background: #f1f2ef;
    color: #9a9e98;
    cursor: not-allowed;
    opacity: 0.72;
}

.ysh-datetime-error {
    min-height: 1.5em;
    margin: 12px 0 0;
    color: #b42318;
    font-weight: 700;
}

.ysh-availability-status {
    min-height: 1.5em;
    margin: 10px 0 0;
    color: #555;
    font-weight: 600;
}

.ysh-booking-error {
    padding: 12px 14px;
    border-left: 4px solid #b42318;
    background: #fff3f2;
    color: #8f1d16;
    font-weight: 700;
}

.ysh-step-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.ysh-step-nav--persistent {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dfe4de;
}

.ysh-step-nav--persistent .ysh-step-button--next,
.ysh-step-nav--persistent button[type="submit"] {
    margin-left: auto;
}

.ysh-booking-form .ysh-step-button {
    min-width: 110px;
}

.ysh-booking-form .ysh-step-button--back {
    border: 1px solid #8d988a;
    background: #fff;
    color: #344332;
}

.ysh-booking-form .ysh-step-button--back:hover {
    background: #f2f5f1;
}

.ysh-booking-review {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) 1fr;
    margin: 0 0 24px;
    border-top: 1px solid #dfe4de;
}

.ysh-booking-review dt,
.ysh-booking-review dd {
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid #dfe4de;
}

.ysh-booking-review dt {
    background: #f5f8f4;
    font-weight: 700;
}

.ysh-booking-review dd {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .ysh-datetime-picker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ysh-wizard-progress {
        gap: 8px;
    }

    .ysh-wizard-progress__label {
        font-size: 0.9rem;
    }

    .ysh-calendar,
    .ysh-time-picker {
        padding: 12px;
    }

    .ysh-booking-form .ysh-calendar__day {
        width: 31px;
        height: 31px;
    }

    .ysh-time-picker__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ysh-booking-review {
        grid-template-columns: 1fr;
    }

    .ysh-booking-review dd {
        padding-top: 8px;
    }
}
