[hidden] {
    display: none !important
}

.site-loader,
.booking-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--forest);
    color: var(--cream);
    z-index: 1000
}

.site-loader {
    position: fixed;
    inset: 0;
    transition: opacity .25s
}

.site-loader.fade {
    opacity: 0;
    pointer-events: none
}

.site-loader strong,
.booking-loader strong {
    font-family: var(--serif);
    font-size: 1.8rem
}

.load-wheel {
    width: 58px;
    height: 58px;
    border: 3px solid rgba(155, 164, 122, .25);
    border-top-color: var(--sage);
    border-right-color: var(--sage);
    border-radius: 50%;
    animation: wheel .85s linear infinite
}

@keyframes wheel {
    to {
        transform: rotate(360deg)
    }
}

.booking-open {
    overflow: hidden
}

.booking-dialog {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    width: min(1010px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 30px 100px #0006;
    overflow: auto
}

.booking-dialog::backdrop {
    background: rgba(20, 26, 17, .78);
    backdrop-filter: blur(5px)
}

.booking-shell {
    position: relative;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    padding: 26px;
    align-items: start
}

.booking-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--ink);
    cursor: pointer;
    line-height: 1
}

.booking-aside,
.booking-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    background: white
}

.booking-aside {
    background: var(--forest);
    color: var(--cream)
}

.booking-aside .eyebrow,
.booking-aside a,
.booking-aside em {
    color: var(--sage)
}

.booking-aside h2 {
    font-size: 2.1rem
}

.booking-aside p {
    color: #e3e7d9
}

.booking-aside ol {
    list-style: none;
    padding: 0;
    counter-reset: steps;
    margin: 24px 0
}

.booking-aside li {
    border-top: 1px solid #ffffff26;
    padding: 13px 0;
    font-size: .84rem;
    counter-increment: steps
}

.booking-aside li:before {
    content: '0' counter(steps);
    color: var(--sage);
    margin-right: 10px;
    font-weight: 700
}

.booking-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 22px
}

.booking-progress span {
    padding: 10px 2px;
    text-align: center;
    border-bottom: 2px solid var(--line);
    font-size: .8rem;
    color: var(--mute)
}

.booking-progress .active {
    color: var(--sage-dd);
    background: var(--sage-xl);
    border-color: var(--sage-d);
    font-weight: 700
}

.booking-content h3 {
    font-size: 1.35rem;
    margin: 0 0 14px
}

.booking-content p {
    margin: 0 0 12px
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px auto;
    max-width: 460px
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    max-width: 460px;
    margin: 0 auto
}

.calendar-grid span {
    text-align: center;
    font-size: .8rem;
    color: var(--mute)
}

.calendar-grid button,
.calendar-head button,
.slot-grid button,
.booking-back {
    font: inherit;
    border: 1px solid var(--sage);
    background: var(--sage-xl);
    color: var(--ink);
    border-radius: 8px;
    min-height: 42px;
    cursor: pointer
}

.calendar-head button {
    width: 42px
}

.calendar-grid button:disabled,
.calendar-head button:disabled {
    opacity: .4;
    background: var(--cream);
    border-color: var(--line);
    cursor: not-allowed
}

.calendar-grid button:not(:disabled):hover,
.slot-grid button:hover,
.booking-back:hover {
    background: var(--forest);
    color: var(--cream)
}

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

.booking-back {
    padding: 5px 12px;
    min-height: 34px;
    margin-bottom: 16px;
    font-size: .8rem
}

.booking-note {
    font-size: .77rem;
    color: var(--mute);
    margin: 20px 0 5px
}

.booking-email {
    font-size: .82rem
}

.booking-summary {
    padding: 10px 14px;
    background: var(--sage-xl);
    border-left: 3px solid var(--sage-d);
    font-size: .86rem
}

.booking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.booking-form label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    margin-bottom: 12px
}

.booking-form input:not([type=checkbox]),
.booking-form select,
.booking-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--cream);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    margin-top: 5px
}

.booking-form textarea {
    resize: vertical
}

.booking-form .booking-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 400;
    line-height: 1.5
}

.booking-consent input {
    flex: none;
    margin-top: 4px;
    accent-color: var(--sage-d)
}

.booking-error {
    color: #a42d26;
    padding: 10px;
    background: #fff0ee;
    margin-top: 10px !important
}

.booking-loader {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    z-index: 5;
    background: rgba(31, 37, 23, .97)
}

.booking-success {
    text-align: center;
    padding: 15px 0
}

.booking-success>span {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sage-xl);
    color: var(--sage-dd);
    width: 60px;
    height: 60px;
    font-size: 32px;
    margin-bottom: 12px
}

.legal-copy h2 {
    font-size: 1.55rem;
    margin-top: 32px
}

.legal-copy p {
    overflow-wrap: anywhere
}

.foot-menu::before {
    content: 'Navegação'
}

.nav-in {
    max-width: min(1200px, calc(100% - 24px))
}

.ph img {
    display: block
}

.booking-dialog :focus-visible {
    outline: 2px solid var(--sage-d);
    outline-offset: 3px
}

@media(max-width:720px) {
    .booking-shell {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px
    }

    .booking-aside {
        padding: 18px
    }

    .booking-aside h2 {
        font-size: 1.55rem
    }

    .booking-aside ol {
        display: none
    }

    .booking-aside p {
        margin: 0 0 6px
    }

    .booking-aside .eyebrow {
        margin-bottom: 8px
    }

    .booking-panel {
        padding: 16px
    }

    .booking-close {
        color: var(--cream);
        top: 18px;
        right: 23px
    }

    .slot-grid {
        grid-template-columns: repeat(3, 1fr)
    }

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

    .calendar-grid {
        gap: 4px
    }

    .calendar-grid button {
        min-height: 38px;
        padding: 0
    }

    .booking-dialog {
        max-height: calc(100dvh - 18px);
        width: calc(100% - 18px)
    }
}

@media(prefers-reduced-motion:reduce) {

    .site-loader,
    .booking-loader {
        transition: none
    }

    .load-wheel {
        animation-duration: 2s
    }

    html {
        scroll-behavior: auto
    }
}