.psy-booking {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.psy-booking[hidden] {
    display: none;
}

.psy-booking__overlay {
    position: absolute;
    inset: 0;
    background: rgba(32, 32, 32, 0.45);
}

.psy-booking__dialog {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    padding: 28px 20px 24px;
}

@media (min-width: 991px) {
    .psy-booking__dialog {
        padding: 40px 48px 36px;
    }
}

.psy-booking__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.psy-booking__grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 991px) {
    .psy-booking__grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
        row-gap: 24px;
        align-items: start;
    }

    .psy-booking__left,
    .psy-booking__right {
        grid-row: 1;
    }

    .psy-booking__consent {
        grid-column: 1;
    }

    .psy-booking__submit-wrap {
        grid-column: 2;
    }
}

.psy-booking__title {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #292d32;
}

@media (min-width: 991px) {
    .psy-booking__title {
        font-size: 48px;
    }
}

.psy-booking__subtitle {
    margin: 12px 0 24px;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.45;
    color: #222;
}

@media (min-width: 991px) {
    .psy-booking__subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }
}

.psy-booking__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.psy-booking__field span,
.psy-booking__format legend,
.psy-booking__times-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #222;
}

.psy-booking__field input,
.psy-booking__field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #69cdc2;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: #222;
    outline: none;
}

.psy-booking__field input::placeholder,
.psy-booking__field textarea::placeholder {
    color: #b3b3b3;
}

.psy-booking__field textarea {
    min-height: 96px;
    resize: vertical;
}

.psy-booking__field input:focus,
.psy-booking__field textarea:focus {
    border-color: #1daf9f;
}

.psy-booking__format {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.psy-booking__format legend {
    margin-bottom: 10px;
    padding: 0;
}

.psy-booking__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.psy-booking__pill {
    cursor: pointer;
}

.psy-booking__pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.psy-booking__pill span,
.psy-booking__time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 10px 18px;
    border: 1px solid #69cdc2;
    border-radius: 40px;
    background: #fff;
    color: #222;
    font-size: 16px;
    line-height: 1;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.psy-booking__pill input:checked + span,
.psy-booking__time.is-selected {
    background: #69cdc2;
    border-color: #69cdc2;
    color: #fff;
}

.psy-booking__time {
    cursor: pointer;
}

.psy-booking__calendar {
    padding: 16px 18px 20px;
    border-radius: 16px;
    background: #f4f4f4;
}

.psy-booking__calendar-head {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    margin-bottom: 12px;
}

.psy-booking__month {
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.psy-booking__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.psy-booking__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.psy-booking__weekdays,
.psy-booking__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px 0;
    text-align: center;
}

.psy-booking__weekdays span {
    padding: 6px 0;
    font-size: 12px;
    color: #b0b0b0;
}

.psy-booking__day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: #222;
    cursor: pointer;
}

.psy-booking__day.is-muted,
.psy-booking__day:disabled {
    color: #c8c8c8;
    cursor: default;
}

.psy-booking__day.is-selected {
    background: #69cdc2;
    color: #fff;
}

.psy-booking__times {
    margin-top: 20px;
}

.psy-booking__times-label {
    margin: 0 0 10px;
}

.psy-booking__times .psy-booking__pills {
    min-height: 40px;
}

.psy-booking__times-empty {
    margin: 0;
    font-size: 14px;
    color: #8a8a8a;
}

.psy-booking__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    cursor: pointer;
}

.psy-booking__consent input {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 18px;
    border: 1px solid #69cdc2;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.psy-booking__consent input:checked {
    background: #69cdc2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.psy-booking__consent a {
    text-decoration: underline;
}

.psy-booking__submit-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.psy-booking__submit {
    width: 100%;
    padding: 18px 24px;
    border: 0;
    border-radius: 48px;
    background: #69cdc2;
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease;
}

@media (min-width: 991px) {
    .psy-booking__submit {
        font-size: 20px;
    }
}

.psy-booking__submit:hover,
.psy-booking__submit:focus {
    background: #137b6f;
}

.psy-booking__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.psy-booking__error {
    margin: 0;
    font-size: 14px;
    color: #c0392b;
}

.psy-booking-thanks {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 15px;
}

.psy-booking .psy-booking-thanks {
    margin: 12px 0 0;
    padding: 0;
}

.psy-booking-thanks h1 {
    margin-bottom: 16px;
}

.psy-booking-thanks.is-fail h1 {
    color: #c0392b;
}

.psy-booking-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

body.psy-booking-open {
    overflow: hidden;
}
