/*--------------------------------------------
    BOOKING FORM (reservation page)
---------------------------------------------*/
.booking-form {
    --bk-primary: #e7272d;
    --bk-primary-dark: #c81d23;
    --bk-primary-soft: #fdecec;
    --bk-ink: #212121;
    --bk-muted: #7a7a7a;
    --bk-border: #dcdcdc;
    --bk-danger: #d93025;
    --bk-radius: 8px;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.booking-form .bk-row {
    margin-left: -8px;
    margin-right: -8px;
}

.booking-form .bk-row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.booking-form .bk-field {
    margin-bottom: 20px;
}

.booking-form .bk-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bk-ink);
    letter-spacing: .2px;
}

.booking-form .bk-req {
    color: var(--bk-primary);
    font-weight: 700;
    margin-left: 2px;
}

.booking-form .bk-input-wrap {
    position: relative;
}

.booking-form .bk-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--bk-muted);
    pointer-events: none;
    transition: color .2s;
    z-index: 2;
}

.booking-form .bk-caret {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--bk-muted);
    pointer-events: none;
    transition: transform .2s, color .2s;
    z-index: 2;
}

.booking-form .bk-control {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 16px 0 44px;
    font-size: 15px;
    color: var(--bk-ink);
    background: #fff;
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    box-shadow: none;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.booking-form .bk-has-caret .bk-control {
    padding-right: 40px;
    cursor: pointer;
}

.booking-form .bk-control::placeholder {
    color: #9b9b9b;
    opacity: 1;
}

.booking-form .bk-control:hover {
    border-color: #bdbdbd;
}

.booking-form .bk-control:focus,
.booking-form .bk-control.active,
.booking-form .bk-time-trigger[aria-expanded="true"] {
    border-color: var(--bk-primary);
    box-shadow: 0 0 0 3px rgba(231, 39, 45, .15);
}

.booking-form .bk-input-wrap:focus-within .bk-icon,
.booking-form .bk-input-wrap:focus-within .bk-caret {
    color: var(--bk-primary);
}

.booking-form .bk-control.active ~ .bk-caret,
.booking-form .bk-time-trigger[aria-expanded="true"] ~ .bk-caret {
    transform: translateY(-50%) rotate(180deg);
}

/* Error state */
.booking-form .bk-field.has-error .bk-control,
.booking-form .bk-field.has-error .bk-step {
    border-color: var(--bk-danger);
}

.booking-form .bk-field.has-error .bk-control:focus {
    box-shadow: 0 0 0 3px rgba(217, 48, 37, .15);
}

.booking-form .bk-field.has-error .bk-icon {
    color: var(--bk-danger);
}

.booking-form .bk-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bk-danger);
}

.booking-form .bk-error:before {
    content: "\f06a";
    font-family: FontAwesome;
    margin-right: 6px;
}

.booking-form .bk-field.has-error .bk-error {
    display: block;
}

/* Person stepper */
.booking-form .bk-stepper {
    display: flex;
    align-items: stretch;
}

.booking-form .bk-stepper .bk-input-wrap {
    flex: 1;
    margin: 0 8px;
}

.booking-form .bk-stepper .bk-control {
    text-align: center;
    padding: 0 44px;
    font-weight: 600;
    font-size: 16px;
    -moz-appearance: textfield;
}

.booking-form .bk-stepper .bk-control::-webkit-outer-spin-button,
.booking-form .bk-stepper .bk-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.booking-form .bk-step {
    flex: 0 0 50px;
    height: 50px;
    padding: 0;
    font-size: 13px;
    color: var(--bk-ink);
    background: #f6f6f6;
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.booking-form .bk-step:hover:not(:disabled),
.booking-form .bk-step:focus-visible {
    background: var(--bk-primary);
    border-color: var(--bk-primary);
    color: #fff;
    outline: none;
}

.booking-form .bk-step:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Time picker */
.booking-form .bk-time-trigger {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-form .bk-time-text.is-placeholder {
    color: #9b9b9b;
}

.booking-form .bk-time-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(17, 17, 17, .18), 0 2px 6px rgba(17, 17, 17, .08);
    animation: bkFadeIn .15s ease-out;
}

.booking-form .bk-time-panel [hidden],
.booking-form .bk-time-panel[hidden] {
    display: none !important;
}

/* Clock view: hour / minute spinners + AM/PM */
.booking-form .bk-tp-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.booking-form .bk-tp-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.booking-form .bk-tp-arrow {
    width: 40px;
    height: 28px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    color: #8a8a8a;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.booking-form .bk-tp-arrow:hover:not(:disabled),
.booking-form .bk-tp-arrow:focus-visible {
    color: var(--bk-primary);
    background: var(--bk-primary-soft);
    outline: none;
}

.booking-form .bk-tp-arrow:disabled {
    opacity: .25;
    cursor: not-allowed;
}

.booking-form .bk-tp-value {
    width: 66px;
    height: 58px;
    padding: 0;
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--bk-ink);
    background: #f3f4f4;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.booking-form .bk-tp-value:hover,
.booking-form .bk-tp-value:focus-visible {
    color: var(--bk-primary);
    background: var(--bk-primary-soft);
    border-color: var(--bk-primary);
    outline: none;
}

.booking-form .bk-tp-sep {
    font-size: 24px;
    font-weight: 700;
    color: #9a9a9a;
}

.booking-form .bk-tp-ampm {
    width: 62px;
    height: 58px;
    margin-left: 6px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background: var(--bk-primary);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(231, 39, 45, .3);
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.booking-form .bk-tp-ampm:hover:not(:disabled),
.booking-form .bk-tp-ampm:focus-visible {
    background: var(--bk-primary-dark);
    outline: none;
}

.booking-form .bk-tp-ampm:focus-visible {
    box-shadow: 0 0 0 3px rgba(231, 39, 45, .3);
}

.booking-form .bk-tp-ampm:disabled {
    background: #c9c9c9;
    box-shadow: none;
    cursor: not-allowed;
}

.booking-form .bk-tp-empty {
    padding: 18px 10px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--bk-muted);
}

.booking-form .bk-tp-empty i {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
    color: var(--bk-primary);
}

/* Hour / minute grids */
.booking-form .bk-tp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.booking-form .bk-tp-cell {
    height: 44px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--bk-ink);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.booking-form .bk-tp-cell:hover:not(:disabled),
.booking-form .bk-tp-cell:focus-visible {
    color: var(--bk-primary);
    background: var(--bk-primary-soft);
    outline: none;
}

.booking-form .bk-tp-cell.is-selected,
.booking-form .bk-tp-cell.is-selected:hover {
    color: #fff;
    background: var(--bk-primary);
}

.booking-form .bk-tp-cell:disabled {
    color: #cfcfcf;
    cursor: not-allowed;
}

/* Footer */
.booking-form .bk-tp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
}

.booking-form .bk-tp-hint {
    font-size: 12px;
    line-height: 1.4;
    color: var(--bk-muted);
}

.booking-form .bk-tp-done {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--bk-ink);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
}

.booking-form .bk-tp-done:hover:not(:disabled),
.booking-form .bk-tp-done:focus-visible {
    background: var(--bk-primary);
    outline: none;
}

.booking-form .bk-tp-done:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Submit */
.booking-form .bk-submit {
    margin-top: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
    background: var(--bk-primary);
    border: 0;
    border-radius: var(--bk-radius);
    box-shadow: 0 8px 20px rgba(231, 39, 45, .28);
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
}

.booking-form .bk-submit:hover,
.booking-form .bk-submit:focus-visible {
    background: var(--bk-ink);
    box-shadow: 0 8px 20px rgba(33, 33, 33, .25);
    outline: none;
}

.booking-form .bk-submit:active {
    transform: translateY(1px);
}

.booking-form .bk-submit-icon {
    margin-left: 10px;
    font-size: 14px;
    transition: transform .2s;
}

.booking-form .bk-submit:hover .bk-submit-icon {
    transform: translateX(4px);
}

.booking-form .bk-submit-spinner {
    display: none;
    margin-left: 10px;
}

.booking-form .bk-submit.is-loading {
    pointer-events: none;
    opacity: .85;
}

.booking-form .bk-submit.is-loading .bk-submit-icon {
    display: none;
}

.booking-form .bk-submit.is-loading .bk-submit-spinner {
    display: inline-block;
}

@keyframes bkFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575px) {
    .booking-form .bk-time-panel {
        left: 0;
        right: auto;
        width: 100%;
    }
}

/*--------------------------------------------
    BOOKING CALENDAR (flatpickr theme)
---------------------------------------------*/
.flatpickr-calendar.bk-calendar {
    width: 320px;
    padding: 8px 6px 10px;
    font-family: 'Roboto', sans-serif;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(17, 17, 17, .18), 0 2px 6px rgba(17, 17, 17, .08);
}

.flatpickr-calendar.bk-calendar.arrowTop:before,
.flatpickr-calendar.bk-calendar.arrowBottom:before {
    display: none;
}

.flatpickr-calendar.bk-calendar.arrowTop:after {
    border-bottom-color: #fff;
}

.flatpickr-calendar.bk-calendar.arrowBottom:after {
    border-top-color: #fff;
}

.bk-calendar .flatpickr-months {
    padding: 4px 4px 8px;
}

.bk-calendar .flatpickr-months .flatpickr-month {
    height: 40px;
    color: #212121;
}

.bk-calendar .flatpickr-current-month {
    padding-top: 8px;
    font-size: 16px;
    font-weight: 600;
}

.bk-calendar .flatpickr-current-month span.cur-month {
    font-weight: 600;
}

.bk-calendar .flatpickr-current-month input.cur-year {
    font-weight: 600;
}

.bk-calendar .flatpickr-months .flatpickr-prev-month,
.bk-calendar .flatpickr-months .flatpickr-next-month {
    top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    transition: background .2s;
}

.bk-calendar .flatpickr-months .flatpickr-prev-month {
    left: 8px;
}

.bk-calendar .flatpickr-months .flatpickr-next-month {
    right: 8px;
}

.bk-calendar .flatpickr-months .flatpickr-prev-month:hover,
.bk-calendar .flatpickr-months .flatpickr-next-month:hover {
    background: #fdecec;
}

.bk-calendar .flatpickr-months .flatpickr-prev-month svg,
.bk-calendar .flatpickr-months .flatpickr-next-month svg {
    width: 12px;
    height: 12px;
}

.bk-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
.bk-calendar .flatpickr-months .flatpickr-next-month:hover svg {
    fill: #e7272d;
}

.bk-calendar .flatpickr-months .flatpickr-prev-month.flatpickr-disabled {
    display: flex;
    opacity: .3;
    cursor: default;
}

.bk-calendar span.flatpickr-weekday {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9a9a9a;
}

.bk-calendar .dayContainer {
    padding-top: 4px;
}

.bk-calendar .flatpickr-day {
    height: 40px;
    line-height: 38px;
    margin-top: 2px;
    font-size: 14px;
    color: #212121;
    border-radius: 50%;
}

.bk-calendar .flatpickr-day:hover,
.bk-calendar .flatpickr-day:focus {
    background: #fdecec;
    border-color: #fdecec;
    color: #e7272d;
}

.bk-calendar .flatpickr-day.today {
    border-color: #e7272d;
    font-weight: 600;
}

.bk-calendar .flatpickr-day.today:hover,
.bk-calendar .flatpickr-day.today:focus {
    background: #fdecec;
    border-color: #e7272d;
    color: #e7272d;
}

.bk-calendar .flatpickr-day.selected,
.bk-calendar .flatpickr-day.selected:hover,
.bk-calendar .flatpickr-day.selected:focus {
    background: #e7272d;
    border-color: #e7272d;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(231, 39, 45, .3);
}

.bk-calendar .flatpickr-day.prevMonthDay,
.bk-calendar .flatpickr-day.nextMonthDay {
    color: #c8c8c8;
}

.bk-calendar .flatpickr-day.flatpickr-disabled,
.bk-calendar .flatpickr-day.flatpickr-disabled:hover {
    color: #d0d0d0;
    background: transparent;
    border-color: transparent;
    cursor: not-allowed;
}
