/**
 * Waybright Booking - Frontend Styles
 * Version: 2.1.3
 * 
 * Enhanced CSS with:
 * - High specificity selectors to prevent theme overrides
 * - Side-by-side calendar + times layout
 * - US Timezone selector styling
 * - Responsive design
 * - CSS Load verification property
 * 
 * @package WaybrightBooking
 */

/* ==========================================================================
   CSS LOAD VERIFICATION - JavaScript can check if CSS loaded properly
   ========================================================================== */
:root {
    --wbbs-css-loaded: 1;
}

/* ==========================================================================
   CSS RESETS - Prevent theme overrides
   ========================================================================== */

/* Reset all elements inside our wrapper */
.wbbs-booking-wrapper,
.wbbs-booking-wrapper *,
.wbbs-booking-wrapper *::before,
.wbbs-booking-wrapper *::after {
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset common theme styles */
.wbbs-booking-wrapper .wbbs-booking-container h1,
.wbbs-booking-wrapper .wbbs-booking-container h2,
.wbbs-booking-wrapper .wbbs-booking-container h3,
.wbbs-booking-wrapper .wbbs-booking-container h4,
.wbbs-booking-wrapper .wbbs-booking-container h5,
.wbbs-booking-wrapper .wbbs-booking-container h6 {
    margin: 0;
    padding: 0;
    font-family: var(--wbbs-font);
    line-height: 1.3;
    color: var(--wbbs-text);
    background: none;
    border: none;
    text-transform: none;
    letter-spacing: normal;
}

.wbbs-booking-wrapper .wbbs-booking-container p {
    margin: 0;
    padding: 0;
    font-family: var(--wbbs-font);
    font-size: inherit;
    line-height: 1.6;
    color: inherit;
}

.wbbs-booking-wrapper .wbbs-booking-container a {
    text-decoration: none;
    color: var(--wbbs-primary);
}

.wbbs-booking-wrapper .wbbs-booking-container a:hover {
    color: var(--wbbs-primary-hover);
}

/* Reset button styles */
.wbbs-booking-wrapper .wbbs-booking-container button,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn {
    font-family: var(--wbbs-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Reset input styles */
.wbbs-booking-wrapper .wbbs-booking-container input,
.wbbs-booking-wrapper .wbbs-booking-container textarea,
.wbbs-booking-wrapper .wbbs-booking-container select {
    font-family: var(--wbbs-font) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Reset list styles */
.wbbs-booking-wrapper .wbbs-booking-container ul,
.wbbs-booking-wrapper .wbbs-booking-container ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   CSS Variables (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container {
    --wbbs-primary: #2563eb;
    --wbbs-primary-hover: #1e40af;
    --wbbs-primary-light: #dbeafe;
    --wbbs-text: #1f2937;
    --wbbs-text-muted: #6b7280;
    --wbbs-border: #d1d5db;
    --wbbs-bg: #f9fafb;
    --wbbs-white: #ffffff;
    --wbbs-success: #16a34a;
    --wbbs-success-bg: #dcfce7;
    --wbbs-error: #dc2626;
    --wbbs-error-bg: #fee2e2;
    --wbbs-radius: 12px;
    --wbbs-radius-sm: 8px;
    --wbbs-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --wbbs-transition: 0.2s ease;
    --wbbs-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================================
   Wrapper & Base Container (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.wbbs-booking-wrapper .wbbs-booking-container {
    font-family: var(--wbbs-font) !important;
    max-width: 1100px !important; /* Increased for better side-by-side layout */
    width: 100% !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
    color: var(--wbbs-text) !important;
    line-height: 1.6 !important;
    position: relative !important;
    background: transparent !important;
}

/* ==========================================================================
   Progress Steps (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background-color: var(--wbbs-border);
    color: var(--wbbs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--wbbs-transition);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-label {
    font-size: 12px;
    color: var(--wbbs-text-muted);
    margin-top: 8px;
    white-space: nowrap;
    transition: color var(--wbbs-transition);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-line {
    width: 50px;
    height: 2px;
    background-color: var(--wbbs-border);
    margin: 0 10px;
    margin-bottom: 28px;
    transition: background-color var(--wbbs-transition);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-step.wbbs-step-active .wbbs-step-number {
    background-color: var(--wbbs-primary);
    box-shadow: 0 0 0 4px var(--wbbs-primary-light);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-step.wbbs-step-active .wbbs-step-label {
    color: var(--wbbs-primary);
    font-weight: 600;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-step.wbbs-step-completed .wbbs-step-number {
    background-color: var(--wbbs-success);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-step.wbbs-step-completed .wbbs-step-label {
    color: var(--wbbs-success);
}

/* ==========================================================================
   Loading & Errors (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--wbbs-radius);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--wbbs-border);
    border-top-color: var(--wbbs-primary);
    border-radius: 50% !important;
    animation: wbbs-spin 0.8s linear infinite;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid var(--wbbs-border);
    border-top-color: var(--wbbs-primary);
    border-radius: 50% !important;
    animation: wbbs-spin 0.8s linear infinite;
}

@keyframes wbbs-spin {
    to { transform: rotate(360deg); }
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-loading-overlay span {
    margin-top: 15px;
    color: var(--wbbs-text-muted);
    font-size: 14px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-error-message {
    background-color: var(--wbbs-error-bg);
    color: var(--wbbs-error);
    padding: 15px 20px;
    border-radius: var(--wbbs-radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    animation: wbbs-shake 0.3s ease;
}

@keyframes wbbs-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================================================
   Step Styles (High Specificity) - FIXED v2.1.3: Explicit display rules
   ========================================================================== */

/* CRITICAL: Default hidden state for all steps - prevents theme conflicts */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step {
    display: none !important; /* Hidden by default */
    background: var(--wbbs-white);
    border-radius: var(--wbbs-radius);
    padding: 30px;
    box-shadow: var(--wbbs-shadow);
    border: 1px solid var(--wbbs-border);
    animation: wbbs-fadeIn 0.3s ease;
}

/* CRITICAL: Active step MUST be visible - override any theme styles */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step.wbbs-step-active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FALLBACK: If wbbs-step-active not added yet, show step-1 by default */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-1:first-of-type:not(.wbbs-step-hidden) {
    display: block !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: var(--wbbs-text) !important;
    margin: 0 0 8px 0 !important;
    text-align: center;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-description {
    color: var(--wbbs-text-muted) !important;
    font-size: 15px !important;
    margin: 0 0 25px 0 !important;
    text-align: center;
}

@keyframes wbbs-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Event Type Selection (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--wbbs-white);
    border: 2px solid var(--wbbs-border);
    border-radius: var(--wbbs-radius);
    cursor: pointer;
    transition: all var(--wbbs-transition);
    border-left-width: 4px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-card:hover {
    border-color: var(--wbbs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-card.wbbs-selected {
    border-color: var(--wbbs-primary);
    background-color: var(--wbbs-primary-light);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-color {
    width: 12px;
    height: 12px;
    border-radius: 50% !important;
    margin-right: 15px;
    flex-shrink: 0;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-info {
    flex: 1;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-name {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--wbbs-text) !important;
    margin: 0 0 5px 0 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wbbs-text-muted) !important;
    font-size: 14px !important;
    margin: 0 0 5px 0 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-desc {
    color: var(--wbbs-text-muted) !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-select {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    border: 2px solid var(--wbbs-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wbbs-transition);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-card.wbbs-selected .wbbs-event-type-select {
    background-color: var(--wbbs-primary);
    border-color: var(--wbbs-primary);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-select .wbbs-check {
    display: none;
    color: var(--wbbs-white);
    width: 16px;
    height: 16px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-card.wbbs-selected .wbbs-check {
    display: block;
}

/* ==========================================================================
   Icons (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   TIMEZONE SELECTOR (Now inside times section)
   ========================================================================== */

/* Timezone selector inside times section */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section .wbbs-timezone-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: var(--wbbs-bg);
    border-radius: var(--wbbs-radius-sm);
    border: 1px solid var(--wbbs-border);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section .wbbs-timezone-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wbbs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section .wbbs-timezone-label .wbbs-icon {
    width: 14px;
    height: 14px;
    color: var(--wbbs-primary);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section .wbbs-timezone-dropdown {
    width: 100% !important;
    min-width: unset !important;
    padding: 10px 35px 10px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--wbbs-text) !important;
    background-color: var(--wbbs-white) !important;
    border: 2px solid var(--wbbs-border) !important;
    border-radius: var(--wbbs-radius-sm) !important;
    cursor: pointer;
    transition: all var(--wbbs-transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section .wbbs-timezone-dropdown:hover {
    border-color: var(--wbbs-primary) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section .wbbs-timezone-dropdown:focus {
    border-color: var(--wbbs-primary) !important;
    box-shadow: 0 0 0 3px var(--wbbs-primary-light) !important;
    outline: none !important;
}

/* ==========================================================================
   SIDE-BY-SIDE DATE & TIME SELECTOR (Calendly-Style Layout)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-datetime-selector {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* Calendar Section (Left) - 60% width on desktop */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-section {
    flex: 0 0 58% !important;
    max-width: 58%;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-container {
    background: var(--wbbs-white);
    border: 1px solid var(--wbbs-border);
    border-radius: var(--wbbs-radius);
    padding: 20px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-nav {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--wbbs-border) !important;
    background: var(--wbbs-white) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all var(--wbbs-transition);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-nav:hover {
    background-color: var(--wbbs-bg) !important;
    border-color: var(--wbbs-primary) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-nav .wbbs-icon {
    color: var(--wbbs-text);
    width: 16px;
    height: 16px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-month-year {
    font-size: 18px;
    font-weight: 600;
    color: var(--wbbs-text);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--wbbs-text-muted);
    padding: 8px 0;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wbbs-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--wbbs-transition);
    position: relative;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-number {
    z-index: 1;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-empty {
    background: transparent;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-past,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-unavailable {
    color: var(--wbbs-border);
    cursor: not-allowed;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-available {
    color: var(--wbbs-text);
    cursor: pointer;
    background-color: var(--wbbs-bg);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-available:hover {
    background-color: var(--wbbs-primary-light);
    color: var(--wbbs-primary);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-selected {
    background-color: var(--wbbs-primary) !important;
    color: var(--wbbs-white) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50% !important;
    background-color: var(--wbbs-primary);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-day-today.wbbs-day-selected::after {
    background-color: var(--wbbs-white);
}

/* Times Section (Right) - 40% width on desktop */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section {
    flex: 0 0 40% !important;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    background: var(--wbbs-white);
    border: 1px solid var(--wbbs-border);
    border-radius: var(--wbbs-radius);
    padding: 20px;
    min-height: 350px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wbbs-border);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--wbbs-text) !important;
    margin: 0 0 5px 0 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-selected-date-display {
    font-size: 14px !important;
    color: var(--wbbs-text-muted) !important;
    margin: 0 !important;
}

/* Times Loading */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    color: var(--wbbs-text-muted);
    font-size: 14px;
}

/* Select Date Prompt */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-select-date-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: var(--wbbs-text-muted);
    padding: 20px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-select-date-prompt .wbbs-icon {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin-bottom: 15px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-select-date-prompt p {
    font-size: 14px !important;
}

/* Time Slots Container */
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slots-container {
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slot {
    width: 100% !important;
    padding: 12px 16px !important;
    background: var(--wbbs-white) !important;
    border: 2px solid var(--wbbs-border) !important;
    border-radius: var(--wbbs-radius-sm) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--wbbs-text) !important;
    cursor: pointer;
    transition: all var(--wbbs-transition);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slot:hover {
    border-color: var(--wbbs-primary) !important;
    background-color: var(--wbbs-primary-light) !important;
    color: var(--wbbs-primary) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slot.wbbs-slot-selected {
    background-color: var(--wbbs-primary) !important;
    border-color: var(--wbbs-primary) !important;
    color: var(--wbbs-white) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slot .wbbs-tz-abbr {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slot.wbbs-slot-selected .wbbs-tz-abbr {
    opacity: 0.9;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-no-slots-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 30px;
    color: var(--wbbs-text-muted);
    text-align: center;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-no-slots-message .wbbs-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-no-slots-message p {
    font-size: 14px !important;
}

/* ==========================================================================
   Form (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-form {
    margin-bottom: 30px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-form-group {
    margin-bottom: 20px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-label {
    display: block;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--wbbs-text) !important;
    margin-bottom: 6px !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-required {
    color: var(--wbbs-error);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-input,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    border: 2px solid var(--wbbs-border) !important;
    border-radius: var(--wbbs-radius-sm) !important;
    color: var(--wbbs-text) !important;
    transition: all var(--wbbs-transition);
    background-color: var(--wbbs-white) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-input:focus,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-textarea:focus {
    outline: none !important;
    border-color: var(--wbbs-primary) !important;
    box-shadow: 0 0 0 3px var(--wbbs-primary-light) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-input::placeholder,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-textarea::placeholder {
    color: var(--wbbs-text-muted) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   Booking Summary (High Specificity) - Updated v2.1.0
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary {
    max-width: 600px !important;
    margin: 0 auto 30px auto !important;
    padding: 20px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary h4,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--wbbs-text, #1f2937) !important;
    margin: 0 0 15px 0 !important;
    text-align: left !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-summary-row,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary p {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    margin: 8px 0 !important;
    border-bottom: 1px solid var(--wbbs-border, #e5e7eb);
    line-height: 1.6 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-summary-row:last-child,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary p:last-of-type {
    border-bottom: none;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-summary-label,
.wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary strong {
    color: var(--wbbs-text-muted, #6b7280);
    font-size: 14px;
    display: inline-block !important;
    min-width: 100px !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-summary-value {
    font-weight: 600;
    color: var(--wbbs-text, #1f2937);
    font-size: 14px;
    text-align: right;
}

/* Responsive adjustments for booking summary */
@media (max-width: 768px) {
    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary {
        max-width: 100% !important;
        padding: 15px !important;
        margin: 0 0 20px 0 !important;
    }
    
    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-summary-row,
    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-booking-summary p {
        flex-direction: column;
        gap: 4px;
    }
    
    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-summary-value {
        text-align: left;
    }
}

/* ==========================================================================
   Buttons (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: var(--wbbs-radius-sm) !important;
    border: none !important;
    cursor: pointer;
    transition: all var(--wbbs-transition);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn-primary {
    background-color: var(--wbbs-primary) !important;
    color: var(--wbbs-white) !important;
    margin-left: auto;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn-primary:hover:not(:disabled) {
    background-color: var(--wbbs-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn-secondary {
    background-color: var(--wbbs-white) !important;
    color: var(--wbbs-text) !important;
    border: 2px solid var(--wbbs-border) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn-secondary:hover:not(:disabled) {
    border-color: var(--wbbs-primary) !important;
    color: var(--wbbs-primary) !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn .wbbs-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Confirmation (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-confirmation {
    text-align: center;
    padding: 20px 0;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--wbbs-success-bg);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-confirmation-icon svg {
    width: 40px;
    height: 40px;
    color: var(--wbbs-success);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-confirmation-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--wbbs-text) !important;
    margin: 0 0 10px 0 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-confirmation-message {
    color: var(--wbbs-text-muted) !important;
    font-size: 15px !important;
    margin: 0 0 30px 0 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-confirmation-details {
    background-color: var(--wbbs-bg);
    border-radius: var(--wbbs-radius-sm);
    padding: 25px;
    text-align: left;
    margin-bottom: 30px;
    border: 1px solid var(--wbbs-border);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--wbbs-border);
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-detail-row:last-child {
    border-bottom: none;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-detail-label {
    color: var(--wbbs-text-muted);
    font-size: 14px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-detail-value {
    font-weight: 600;
    color: var(--wbbs-text);
    font-size: 14px;
}

.wbbs-booking-wrapper .wbbs-booking-container .wbbs-confirmation-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   No Events Message (High Specificity)
   ========================================================================== */

.wbbs-booking-wrapper .wbbs-booking-container.wbbs-no-events .wbbs-no-events-message {
    text-align: center;
    padding: 60px 20px;
}

.wbbs-booking-wrapper .wbbs-booking-container.wbbs-no-events .wbbs-no-events-message .wbbs-icon {
    width: 64px;
    height: 64px;
    color: var(--wbbs-text-muted);
    opacity: 0.5;
    margin-bottom: 20px;
}

.wbbs-booking-wrapper .wbbs-booking-container.wbbs-no-events .wbbs-no-events-message h3 {
    font-size: 20px !important;
    color: var(--wbbs-text) !important;
    margin: 0 0 10px 0 !important;
}

.wbbs-booking-wrapper .wbbs-booking-container.wbbs-no-events .wbbs-no-events-message p {
    color: var(--wbbs-text-muted) !important;
    margin: 0 !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet: Keep side-by-side layout with slightly smaller proportions */
@media (max-width: 900px) and (min-width: 769px) {
    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-datetime-selector {
        gap: 20px;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-section {
        flex: 0 0 55% !important;
        max-width: 55%;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section {
        flex: 0 0 43% !important;
        max-width: 43%;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-datetime-selector {
        flex-direction: column !important;
        gap: 20px;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-calendar-section {
        flex: 1 1 100% !important;
        max-width: 100%;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-times-section {
        flex: 1 1 100% !important;
        max-width: 100%;
        min-height: auto;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slots-container {
        max-height: none;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .wbbs-booking-wrapper .wbbs-booking-container {
        padding: 15px;
        max-width: 100%;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-steps {
        padding: 0;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-label {
        display: none;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-progress-line {
        margin-bottom: 0;
        width: 24px;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-step {
        padding: 20px 15px;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-title {
        font-size: 20px !important;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-event-type-card {
        padding: 15px;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-timezone-selector {
        flex-direction: column;
        gap: 10px;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-timezone-dropdown {
        width: 100%;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-step-actions {
        flex-direction: column-reverse;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn {
        width: 100%;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-btn-primary {
        margin-left: 0;
    }

    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-summary-row,
    .wbbs-booking-wrapper .wbbs-booking-container .wbbs-detail-row {
        flex-direction: column;
        gap: 5px;
    }
}


/* =========================================================================
   PHASE 2: DASHBOARD, RESCHEDULE & CANCEL STYLES
   (High Specificity Versions)
   ========================================================================= */

/* Dashboard Container */
.wbbs-booking-wrapper .wbbs-dashboard-container,
.wbbs-booking-wrapper .wbbs-reschedule-container,
.wbbs-booking-wrapper .wbbs-cancel-container,
.wbbs-dashboard-container,
.wbbs-reschedule-container,
.wbbs-cancel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wbbs-dashboard-title,
.wbbs-reschedule-title,
.wbbs-cancel-title {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 0 30px !important;
    text-align: center;
}

/* Email Lookup Section */
.wbbs-email-lookup-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wbbs-lookup-description {
    color: #6b7280 !important;
    margin-bottom: 20px !important;
}

.wbbs-email-lookup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
}

.wbbs-email-lookup-form .wbbs-form-group {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: left;
}

/* Bookings Section */
.wbbs-bookings-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wbbs-bookings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.wbbs-user-email-display {
    font-size: 16px !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

/* Filter Tabs */
.wbbs-booking-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.wbbs-filter-btn {
    background: none !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    cursor: pointer;
    border-radius: 6px !important;
    transition: all 0.2s;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
}

.wbbs-filter-btn:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

.wbbs-filter-btn.wbbs-filter-active {
    background: #2563eb !important;
    color: #fff !important;
}

.wbbs-filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.wbbs-filter-active .wbbs-filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Bookings List */
.wbbs-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Booking Card */
.wbbs-booking-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
}

.wbbs-booking-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.wbbs-booking-color-bar {
    width: 4px;
    height: 60px;
    border-radius: 2px;
    flex-shrink: 0;
}

.wbbs-booking-info {
    flex: 1;
}

.wbbs-booking-event-name {
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 5px !important;
}

.wbbs-booking-datetime {
    color: #6b7280 !important;
    font-size: 14px !important;
}

.wbbs-booking-ref {
    color: #9ca3af !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

.wbbs-booking-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.wbbs-booking-status-confirmed {
    background: #dcfce7;
    color: #166534;
}

.wbbs-booking-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.wbbs-booking-status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.wbbs-booking-status-no_show {
    background: #fef3c7;
    color: #92400e;
}

.wbbs-booking-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* No Bookings Message */
.wbbs-no-bookings-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.wbbs-no-bookings-message .wbbs-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Current Booking Card (Reschedule) */
.wbbs-current-booking-card,
.wbbs-booking-details-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.wbbs-current-booking-card h3,
.wbbs-booking-details-card h3 {
    margin: 0 0 15px !important;
    font-size: 16px !important;
    color: #1f2937 !important;
}

.wbbs-booking-details {
    display: grid;
    gap: 10px;
}

/* Reschedule Form Container */
.wbbs-reschedule-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wbbs-reschedule-form-container h3 {
    margin: 0 0 20px !important;
    color: #1f2937 !important;
}

/* Reschedule Actions */
.wbbs-reschedule-actions {
    margin-top: 25px;
    text-align: center;
}

/* Cancel Confirmation */
.wbbs-cancel-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wbbs-warning-message {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.wbbs-warning-message .wbbs-icon {
    width: 24px;
    height: 24px;
    color: #d97706;
    flex-shrink: 0;
}

.wbbs-warning-message p {
    margin: 0 !important;
    color: #92400e !important;
}

/* Cancel Actions */
.wbbs-cancel-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Success Message */
.wbbs-reschedule-success,
.wbbs-cancel-success {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wbbs-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbbs-success-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.wbbs-reschedule-success h3,
.wbbs-cancel-success h3 {
    font-size: 24px !important;
    color: #1f2937 !important;
    margin: 0 0 15px !important;
}

.wbbs-success-message {
    color: #6b7280 !important;
    margin-bottom: 20px !important;
}

.wbbs-new-booking-details,
.wbbs-cancelled-booking-details {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    display: inline-block;
}

/* Error/Info Messages */
.wbbs-message {
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.wbbs-message-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.wbbs-message-error .wbbs-icon {
    color: #dc2626;
}

.wbbs-message-error p {
    color: #991b1b !important;
}

.wbbs-message-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.wbbs-message-info .wbbs-icon {
    color: #2563eb;
}

.wbbs-message-info p {
    color: #1e40af !important;
}

.wbbs-message .wbbs-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.wbbs-message p,
.wbbs-message h3 {
    margin: 0 !important;
}

.wbbs-message h3 {
    margin-bottom: 10px !important;
}

/* Button Styles for Dashboard/Reschedule/Cancel */
.wbbs-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}

.wbbs-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: #fff !important;
}

.wbbs-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.wbbs-btn-primary:disabled {
    background: #9ca3af !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.wbbs-btn-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.wbbs-btn-secondary:hover {
    background: #e5e7eb !important;
}

.wbbs-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
}

.wbbs-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.wbbs-btn-small {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

.wbbs-btn .wbbs-icon {
    width: 16px;
    height: 16px;
}

/* Responsive for Dashboard/Reschedule/Cancel */
@media (max-width: 640px) {
    .wbbs-booking-card {
        flex-direction: column;
        text-align: center;
    }

    .wbbs-booking-color-bar {
        width: 60px;
        height: 4px;
    }

    .wbbs-booking-actions {
        width: 100%;
        justify-content: center;
    }

    .wbbs-cancel-actions {
        flex-direction: column;
    }

    .wbbs-email-lookup-form {
        flex-direction: column;
    }

    .wbbs-email-lookup-form .wbbs-form-group {
        max-width: 100%;
    }
}
