﻿body.demo-booking-open {
    overflow: hidden;
}

.demo-booking-overlay {
    font-family: var(--f-book);
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

@keyframes demo-booking-spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: demo-booking-spin 0.75s linear infinite;
    vertical-align: -0.125em;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.demo-booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-booking-overlay.is-open {
    display: flex;
}

.demo-booking-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 0, 43, 0.55);
}

.demo-booking-shell {
    position: relative;
    width: 625px;
    max-width: calc(100vw - 48px);
    z-index: 1;
}

.demo-booking-dialog {
    position: relative;
    width: 625px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 32px;
    border: 1px solid var(--color-grey-95, #EDE7FF);
    background: #FFF;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.10);
    padding: 0;
    box-sizing: border-box;
}

.demo-booking-panel {
    width: 560px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.demo-booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid #ede7ff;
    border-radius: 50%;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.demo-booking-close svg {
    display: block;
    width: 15px;
    height: 15px;
}

.demo-booking-header {
    padding: 28px 28px 0;
}

.demo-booking-header h2 {
    font-family: var(--f-xbold);
    font-size: 22px;
    line-height: 33px;
    font-weight: 800;
    color: #190041;
    margin: 0;
}

.demo-booking-header p {
    font-family: var(--f-book);
    font-size: 13px;
    line-height: 19.5px;
    color: #3d2860;
    margin: 4px 0 0;
    padding-bottom: 20px;
}

.demo-booking-field--phone .demo-booking-phone-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.demo-booking-field--phone .custom-dropdown {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    min-width: 65px;
    max-width: 65px;
    height: 46px;
}

.demo-booking-field--phone .dropdown-toggle {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 10px;
    font-family: var(--f-book);
    font-size: 14px;
    line-height: 20px;
    color: #3e2960;
    background: transparent;
    border: 0;
    border-right: 1.263px solid #ede7ff;
    border-radius: 14px 0 0 14px;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.demo-booking-field--phone .dropdown-toggle.custom-error {
    border-right-color: #ff0000;
}

.demo-booking-field--phone .dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #3e2960;
    margin-left: 2px;
}

.demo-booking-field--phone .dropdown-menu {
    display: none;
    min-width: 240px;
    width: 260px;
    border: 1px solid #ede7ff;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(17, 0, 43, 0.08);
    overflow-x: hidden;
}

.demo-booking-field--phone .dropdown-menu.show {
    display: block;
}

.demo-booking-field--phone .dropdown-item {
    color: #3d2860 !important;
    font-family: var(--f-book);
    font-size: 13px;
    padding: 8px 12px;
}

.demo-booking-field--phone .form-field {
    flex: 1;
    width: 100%;
}

.demo-booking-field--phone .form-field input#demoPhone {
    padding-left: 75px !important;
}

.demo-booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 28px 28px;
    width: 100%;
    box-sizing: border-box;
}

.demo-booking-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 28px 56px;
    min-height: 420px;
}

.demo-booking-success.is-visible,
.demo-booking-success:not(.d-none) {
    display: flex;
}

.demo-booking-success.d-none {
    display: none !important;
}

.demo-booking-success-ticket {
    width: 100%;
    max-width: 280px;
    margin-bottom: 24px;
}

.demo-booking-success-ticket img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-booking-success-title {
    font-family: var(--f-bold);
    font-size: 28px;
    line-height: 34px;
    color: #190041;
    margin: 0 0 12px;
}

.demo-booking-success-text {
    font-family: var(--f-book);
    font-size: 15px;
    line-height: 24px;
    color: #3d2860;
    margin: 0;
    max-width: 320px;
}

.demo-booking-dialog.is-success .demo-booking-close {
    top: 16px;
}

.demo-booking-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
}

.demo-booking-row--single {
    grid-template-columns: minmax(0, 1fr);
}

.demo-booking-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
}

.demo-booking-label {
    font-family: var(--f-semi);
    font-size: 11px;
    line-height: 16.5px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #3d2860;
    margin: 0 0 6px;
}

.demo-booking-size-group > .demo-booking-label {
    margin-bottom: 8px;
}

.demo-booking-label-optional {
    font-family: var(--f-book);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    color: #3d2860;
}

.demo-booking-form .demo-booking-input.form-control,
.demo-booking-form .demo-booking-textarea.form-control,
.demo-booking-select-toggle {
    width: 100%;
    box-sizing: border-box;
    border: 1.263px solid #ede7ff !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #3e2960;
    font-family: var(--f-book);
    font-size: 14px;
    line-height: 20px;
    padding: 12px 16px !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0;
}

.demo-booking-form .demo-booking-input.form-control {
    height: 46px !important;
    min-height: 46px !important;
}

.demo-booking-form .demo-booking-input.form-control:focus,
.demo-booking-form .demo-booking-textarea.form-control:focus,
.demo-booking-select-toggle:focus {
    border-color: #ede7ff !important;
    box-shadow: none !important;
}

.demo-booking-form .demo-booking-input.form-control::placeholder,
.demo-booking-form .demo-booking-textarea.form-control::placeholder,
.demo-booking-select-label.is-placeholder {
    color: rgba(62, 41, 96, 0.7) !important;
    opacity: 1;
}

.demo-booking-select-label {
    color: #3e2960;
    font-family: var(--f-book);
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-booking-form .demo-booking-textarea.form-control {
    height: 66px !important;
    min-height: 66px !important;
    resize: none;
}

.demo-booking-select {
    position: relative;
    z-index: 1;
}

.demo-booking-select.is-open {
    z-index: 20;
}

.demo-booking-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    height: 46px;
    min-height: 46px;
}

.demo-booking-select-toggle svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.demo-booking-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5;
    background: #ffffff;
    border: 1px solid #ede7ff;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(17, 0, 43, 0.08);
    max-height: 200px;
    overflow-y: auto;
    padding: 6px;
}

.demo-booking-select.is-open .demo-booking-select-menu {
    display: block;
    z-index: 21;
}

.demo-booking-field--timezone {
    position: relative;
    z-index: 1;
}

.demo-booking-field--timezone .demo-booking-select-toggle {
    pointer-events: auto;
}

.demo-booking-select-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--f-book);
    font-size: 14px;
    line-height: 21px;
    color: #3d2860;
    cursor: pointer;
}

.demo-booking-select-option:hover {
    background: #f3f4f6;
}

.demo-booking-timezone-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: min(360px, calc(100vw - 32px));
    min-width: 220px;
    max-height: none;
    overflow: hidden;
    padding: 0;
    z-index: 10080;
    pointer-events: auto;
    background: #ffffff;
    border: 1px solid #ede7ff;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(17, 0, 43, 0.08);
}

.demo-booking-timezone-menu.is-open {
    display: block;
}

.demo-booking-field--timezone .demo-booking-select-menu {
    right: auto;
    left: auto;
}

.demo-booking-timezone-search {
    padding: 8px 8px 6px;
    border-bottom: 1px solid #ede7ff;
}

.demo-booking-timezone-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ede7ff;
    border-radius: 10px;
    padding: 8px 12px;
    font-family: var(--f-book);
    font-size: 13px;
    line-height: 18px;
    color: #3e2960;
    outline: none;
}

.demo-booking-timezone-search input::placeholder {
    color: rgba(62, 41, 96, 0.55);
}

.demo-booking-timezone-items {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

.demo-booking-timezone-group {
    padding: 10px 12px 4px;
    font-family: var(--f-semi);
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(61, 40, 96, 0.55);
}

.demo-booking-timezone-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.demo-booking-timezone-option.is-selected {
    background: rgba(255, 205, 0, 0.15);
}

.demo-booking-timezone-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-booking-timezone-local-time {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 16px;
    color: rgba(61, 40, 96, 0.65);
}

.demo-booking-timezone-empty {
    padding: 12px;
    font-family: var(--f-book);
    font-size: 13px;
    color: rgba(61, 40, 96, 0.7);
}

.demo-booking-size-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.demo-booking-size-pill {
    border: 1.263px solid #ede7ff;
    border-radius: 10px;
    background: #ffffff;
    color: #3d2860;
    font-family: var(--f-book);
    font-size: 12px;
    line-height: 18px;
    padding: 10px 4px;
    min-height: 40px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-booking-size-pill.is-selected {
    background: rgba(255, 205, 0, 0.15);
    border-color: #ffb800;
    font-family: var(--f-bold);
    color: #190041;
}

.demo-booking-submit {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(171.5deg, #ffcd00 0%, #ffb800 100%);
    color: #190041;
    font-family: var(--f-semi);
    font-size: 16px;
    line-height: 30px;
    padding: 0 20px;
    margin-top: 4px;
    cursor: pointer;
    height: 56px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-booking-submit:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.demo-booking-submit .btn-text,
.demo-booking-submit .btn-loader {
    font-family: var(--f-semi);
    font-size: 16px;
    line-height: 30px;
    color: #190041;
}

.demo-booking-submit .btn-loader {
    display: inline-flex;
    align-items: center;
}

.demo-booking-form .invalid-feedback {
    display: none;
    font-size: 12px;
    line-height: 16px;
    color: #ff0000;
    margin-top: 4px;
}

.demo-booking-form .invalid-feedback.d-block {
    display: block;
}

.demo-booking-form .form-control.custom-error,
.demo-booking-form .demo-booking-select-toggle.custom-error,
.demo-booking-size-group.custom-error .demo-booking-size-pill {
    border-color: #ff0000 !important;
}

/* Date / Time picker - Figma 771:12635 */
.demo-dtp-panel {
    display: none;
    position: fixed;
    z-index: 10070;
    width: 332px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 12px rgba(17, 0, 43, 0.06);
    padding: 14px;
    gap: 10px;
    flex-direction: column;
}

.demo-dtp-panel.is-open {
    display: flex;
}

.demo-dtp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 10px;
}

.demo-dtp-month {
    font-family: var(--f-bold);
    font-size: 16px;
    line-height: normal;
    color: #190041;
    margin: 0;
    text-align: center;
}

.demo-dtp-nav {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
}

.demo-dtp-nav svg {
    width: 16px;
    height: 16px;
    display: block;
}

.demo-dtp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
}

.demo-dtp-weekdays span {
    font-family: var(--f-semi);
    font-size: 11px;
    line-height: normal;
    color: rgba(62, 41, 96, 0.7);
    text-align: center;
    width: 36px;
    height: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-dtp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 6px;
    width: 304px;
    max-width: 100%;
    min-height: 210px;
    margin: 0 auto;
}

.demo-dtp-day {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border: 0;
    border-radius: 100px;
    background: transparent;
    font-family: var(--f-book);
    font-size: 13px;
    line-height: normal;
    color: #190041;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.demo-dtp-day--empty {
    pointer-events: none;
    visibility: hidden;
}

.demo-dtp-day--disabled {
    color: rgba(25, 0, 65, 0.35);
    cursor: not-allowed;
}

.demo-dtp-day.is-selected {
    background: #190041;
    color: #ffffff;
    font-family: var(--f-bold);
}

.demo-dtp-divider {
    height: 1px;
    width: 100%;
    background: #e5e7eb;
    margin: 12px 0;
}

.demo-dtp-time-header {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.demo-dtp-time-header svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.demo-dtp-time-header span {
    font-family: var(--f-semi);
    font-size: 12px;
    line-height: normal;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #3d2860;
}

.demo-dtp-times {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 304px;
    max-width: 100%;
    height: 102px;
    overflow-y: auto;
    margin: 10px auto 6px;
}

.demo-dtp-time {
    width: 100%;
    height: 30px;
    flex-shrink: 0;
    border: 1.5px solid transparent;
    border-radius: 8px;
    background: #f3f4f6;
    font-family: var(--f-book);
    font-size: 11px;
    line-height: normal;
    color: #3d2860;
    cursor: pointer;
    padding: 0 10px;
}

.demo-dtp-time.is-selected {
    background: rgba(255, 205, 0, 0.15);
    border-color: #ffb800;
    color: #190041;
    font-family: var(--f-bold);
}

.demo-dtp-time-empty {
    padding: 8px 4px;
    font-family: var(--f-book);
    font-size: 12px;
    line-height: 18px;
    color: rgba(61, 40, 96, 0.7);
}

.demo-dtp-confirm {
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(171deg, #ffcd00 0%, #ffb800 100%);
    color: #190041;
    font-family: var(--f-semi);
    font-size: 16px;
    line-height: 30px;
    height: 48px;
    min-height: 48px;
    margin-top: 4px;
    padding: 0 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.demo-dtp-confirm:disabled,
.demo-dtp-confirm[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* @media (max-width: 991.98px) {
    .demo-booking-close {
        top: 16px;
        right: 16px;
    }
} */

@media (max-width: 575.98px) {
    .demo-booking-shell,
    .demo-booking-dialog,
    .demo-booking-panel {
        width: 100%;
    }

    .demo-booking-dialog {
        border-radius: 24px;
    }

    .demo-booking-header,
    .demo-booking-form,
    .demo-booking-success {
        padding-left: 20px;
        padding-right: 20px;
    }

    .demo-booking-form {
        padding-bottom: 24px;
    }

    .demo-booking-row,
    .demo-booking-row--single {
        grid-template-columns: 1fr;
    }

    .demo-booking-timezone-menu {
        left: 16px;
        right: 16px;
        width: auto;
    }

    .demo-booking-size-pills {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-dtp-panel {
        width: min(332px, calc(100vw - 32px));
    }

    .demo-dtp-days,
    .demo-dtp-times {
        width: 100%;
    }
}
