/* ── Booking Widget ──────────────────────────────────────────────────────── */

.bw-widget {
    max-width: 520px;
    color: #fff;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.bw-widget *,
.bw-widget *::before,
.bw-widget *::after {
    box-sizing: border-box;
}

/* ── People selector ─────────────────────────────────────────────────────── */

.bw-selector-wrap {
    margin-bottom: 22px;
}

.bw-select-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #fff;
    opacity: 0.95;
}

.bw-select {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.1) !important;
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    cursor: pointer;
    box-shadow: none !important;
}

.bw-select option {
    background: #1a2744;
    color: #fff;
}

/* ── Date picker ─────────────────────────────────────────────────────────── */

.bw-datepicker-wrap {
    margin-bottom: 22px;
}

.bw-datepicker-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #fff;
    opacity: 0.95;
}

.bw-datepicker,
.bw-datepicker.flatpickr-input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.1) !important;
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

.bw-datepicker:focus,
.bw-datepicker.flatpickr-input:focus {
    outline: none !important;
    border-color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.15) !important;
}

/* ── Flatpickr overrides ─────────────────────────────────────────────────── */

.flatpickr-calendar {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

.flatpickr-day:hover {
    background: #e0f2fe !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
}

/* ── Slot tiles ──────────────────────────────────────────────────────────── */

.bw-slots-wrap {
    margin-bottom: 18px;
}

.bw-slots-heading {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0 0 14px;
    color: #fff;
}

.bw-slots-subheading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.75;
    margin: 0 0 10px;
    color: #fff;
}

.bw-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.bw-slot-tile {
    position: relative;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: all 0.15s;
    user-select: none;
    background: transparent;
    min-width: 90px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.bw-slot-time {
    font-size: 14px;
    font-weight: 600;
}

.bw-slot-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
}

.bw-slot-badge--available   { color: #4ade80; }
.bw-slot-badge--last-minute { color: #FF8600; }
.bw-slot-badge--last-spots  { color: #f59e0b; }
.bw-slot-badge--sold-out    { color: #ef4444; }

.bw-slot-tile:hover:not(.bw-slot-tile--sold-out) {
    border-color: #fff;
    background: rgba(255,255,255,0.12);
}

.bw-slot-tile--selected {
    border-color: #fff;
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.bw-slot-tile--sold-out {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

.bw-slot-loading {
    font-size: 13px;
    opacity: 0.6;
    padding: 6px 0;
}

.bw-retry-link {
    color: #38bdf8 !important;
    text-decoration: underline !important;
    font-weight: 600;
    cursor: pointer;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.bw-cta {
    margin-top: 4px;
}

.bw-cta-summary {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.4;
}

.bw-cta-price {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: 0.2px;
    line-height: 1.6;
}

.bw-price-regular {
    text-decoration: line-through;
    opacity: 0.55;
}

.bw-price-disc {
    color: #25b791;
    font-weight: 700;
}

.bw-btn {
    display: block;
    width: 100%;
    background: #FF8600;
    color: #fff !important;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none !important;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
}

.bw-btn:hover {
    opacity: 0.88;
}

.bw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bw-btn--request {
    background: #FF8600;
    color: #fff !important;
}

/* ── Payment type selector ───────────────────────────────────────────────── */

.bw-payment-type-wrap {
    margin-bottom: 18px;
}

.bw-payment-type-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.bw-payment-options {
    display: flex;
    gap: 8px;
}

.bw-payment-opt {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.bw-payment-opt:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.bw-payment-opt--selected {
    background: rgba(74, 222, 128, 0.15);
    border-color: #4ade80;
    color: #4ade80;
}

.bw-deposit-note {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border-left: 3px solid #4ade80;
}

/* ── Step 2: Customer Details Form ───────────────────────────────────────── */

.bw-back-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    display: inline-block;
}

.bw-back-link:hover {
    color: #fff;
}

.bw-step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.bw-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bw-form-row--half {
    display: flex;
    gap: 10px;
}

.bw-form-row--half > .bw-field {
    flex: 1;
}

.bw-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bw-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.8);
}

.bw-req {
    color: #f87171;
}

.bw-input,
.bw-widget input[type="text"].bw-input,
.bw-widget input[type="email"].bw-input,
.bw-widget input[type="tel"].bw-input,
.bw-widget select.bw-input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.1) !important;
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, background 0.2s;
    box-shadow: none !important;
    -webkit-appearance: none !important;
}

.bw-input:focus,
.bw-widget input.bw-input:focus,
.bw-widget select.bw-input:focus {
    outline: none !important;
    border-color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.15) !important;
    background-color: rgba(255,255,255,0.15) !important;
}

.bw-input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}

select.bw-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: rgba(255,255,255,0.1);
    cursor: pointer;
}

select.bw-input option {
    background: #1a2744;
    color: #fff;
}

/* Birthday dropdowns */

.bw-birthday-selects {
    display: flex;
    gap: 8px;
}

.bw-birthday-selects select {
    flex: 1;
    min-width: 0;
}

.bw-birthday-selects .bw-bday-year {
    flex: 1.3;
}

.bw-form-error {
    color: #f87171;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(248,113,113,0.1);
    border-radius: 6px;
}

/* Dive template: group members */

.bw-group-title {
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0 4px;
    color: rgba(255,255,255,0.9);
}

.bw-group-member {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.bw-member-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 8px;
}

/* ── Step 3: Payment ─────────────────────────────────────────────────────── */

.bw-summary-card {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.1);
}

.bw-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.bw-summary-label {
    color: rgba(255,255,255,0.6);
}

.bw-summary-value {
    font-weight: 600;
    color: #fff;
}

.bw-sum-total-row {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
}

.bw-sum-charge-row {
    font-size: 15px;
}

.bw-sum-charge {
    color: #4ade80 !important;
    font-weight: 700 !important;
}

/* Coupon */

.bw-coupon-section {
    margin-bottom: 16px;
}

.bw-coupon-toggle {
    background: none;
    border: none;
    color: #2dd4bf;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.bw-coupon-row {
    margin-top: 10px;
    gap: 8px;
    align-items: center;
}

.bw-coupon-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.bw-coupon-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
}

.bw-coupon-apply {
    height: 40px;
    padding: 0 18px;
    background: #2dd4bf;
    color: #0a1628;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.bw-coupon-apply:disabled {
    opacity: 0.5;
}

.bw-coupon-msg {
    font-size: 13px;
    margin-top: 6px;
}

.bw-coupon-msg--success { color: #4ade80; }
.bw-coupon-msg--error   { color: #f87171; }

/* Stripe element */

.bw-stripe-element-wrap {
    margin: 16px 0;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    min-height: 60px;
}

.bw-stripe-loading {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.bw-stripe-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

/* Pay button */

.bw-btn-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #2dd4bf, #4ade80);
    color: #0a1628 !important;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-align: center;
}

.bw-btn-pay:hover {
    opacity: 0.9;
}

.bw-btn-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bw-payment-error {
    color: #f87171;
    font-size: 13px;
    padding: 10px 12px;
    background: rgba(248,113,113,0.1);
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ── Confirmation ────────────────────────────────────────────────────────── */

.bw-confirmation {
    text-align: center;
    padding: 32px 20px;
}

.bw-confirmation-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.bw-confirmation-title {
    font-size: 22px;
    font-weight: 700;
    color: #4ade80;
    margin: 0 0 10px;
}

.bw-confirmation-body {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0;
}

.bw-booking-ref {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */

.bw-trust-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.bw-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}

.bw-trust-item svg {
    flex-shrink: 0;
}

.bw-trust-item:nth-child(1) svg { stroke: #38bdf8; }
.bw-trust-item:nth-child(1) { color: #38bdf8; }

.bw-trust-item:nth-child(2) svg { stroke: #a78bfa; }
.bw-trust-item:nth-child(2) { color: #a78bfa; }

.bw-trust-cancel {
    color: #4ade80;
}

.bw-trust-cancel svg {
    stroke: #4ade80;
}

.bw-card-brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.bw-card-logo {
    height: 24px;
    width: auto;
    border-radius: 3px;
}

.bw-powered-stripe {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-left: 4px;
}

.bw-powered-stripe svg {
    stroke: #635bff;
}

.bw-powered-stripe strong {
    color: #635bff;
    font-weight: 700;
}

/* ── Pricing Widget ──────────────────────────────────────────────────────── */

.bw-pricing-widget {
    max-width: 520px;
    color: #fff;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.bw-pricing-widget *,
.bw-pricing-widget *::before,
.bw-pricing-widget *::after {
    box-sizing: border-box;
}

.bw-pricing-from {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin: 0 0 16px;
}

.bw-pricing-from-amount {
    color: #4ade80;
    font-weight: 700;
    font-size: 18px;
}

.bw-pricing-select-wrap {
    margin-bottom: 16px;
}

.bw-pricing-select-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #fff;
    opacity: 0.95;
}

.bw-pricing-display {
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    margin-bottom: 16px;
}

.bw-pricing-amount {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
}

.bw-pricing-summary {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 8px 0 0;
    font-style: italic;
}

.bw-pricing-cta {
    display: block;
    width: 100%;
    text-align: center;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .bw-slot-tile {
        padding: 9px 14px;
        font-size: 13px;
    }
    .bw-form-row--half {
        flex-direction: column;
    }
    .bw-summary-row {
        font-size: 12px;
    }
    .bw-trust-bar {
        gap: 10px;
    }
    .bw-trust-item {
        font-size: 10px;
    }
    .bw-card-brands {
        gap: 8px;
    }
    .bw-pricing-widget {
        padding: 0 4px;
    }
    .bw-pricing-from {
        font-size: 14px;
    }
    .bw-pricing-from-amount {
        font-size: 16px;
    }
}
