/* Modern BookingPress-style Booking System */
.cbs-bookingpress-style {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    background: transparent;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Progress Bar */
.cbs-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 30px;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
}

.cbs-step-item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.cbs-step-item.active {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border-color: #2271b1;
    box-shadow: 0 8px 24px rgba(34, 113, 177, 0.35);
    transform: scale(1.05);
}

.cbs-step-item.completed {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #0284c7;
}

.step-number {
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
}

.cbs-step-item span:last-child {
    font-size: 12px;
    font-weight: 500;
}

/* Step Panels */
.cbs-step-panel {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.4s ease-out;
}

.cbs-step-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cbs-step-panel h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

/* ===== CATEGORIES GRID ===== */
.cbs-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    width: 100%;
}

.cbs-category-card {
    flex: 0 0 calc(33.333% - 24px);
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}
.cbs-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.cbs-category-card.selected {
    border-color: #2271b1;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(34, 113, 177, 0.15);
}

.cbs-category-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
    margin-bottom: 16px;
}

.cbs-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cbs-category-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.cbs-category-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ===== SERVICES GRID ===== */
.cbs-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    width: 100%;
}

.cbs-service-card {
    flex: 0 0 calc(33.333% - 24px);
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cbs-service-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f1f5f9;
}

.cbs-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cbs-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.cbs-service-card.selected {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.15);
}

.cbs-service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Service Badges */
.cbs-service-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.cbs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.cbs-badge-duration {
    background: #dbeafe;
    color: #1e40af;
}

.cbs-badge-guests {
    background: #dbeafe;
    color: #1e40af;
}

/* Price */
.cbs-service-price {
    font-size: 24px;
    font-weight: 700;
    color: #14b8a6;
    margin: 4px 0;
}

.cbs-service-select {
    width: 100%;
    padding: 10px;
    background: #14b8a6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.cbs-service-select:hover {
    background: #0d9488;
    transform: translateY(-2px);
}

.cbs-service-card.selected .cbs-service-select {
    background: #0f172a;
}

/* Back Link */
.cbs-back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cbs-back-link:hover {
    color: #2271b1;
    transform: translateX(-4px);
}

/* Services Heading */
.cbs-services-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #0f172a;
}

/* ===== DATE & TIME SECTION ===== */
.cbs-datetime-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    margin: 24px 0;
}

.cbs-calendar-col,
.cbs-time-col {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.cbs-calendar-col label,
.cbs-time-col label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    display: block;
    font-size: 14px;
}

#cbs-calendar input,
.cbs-native-datepicker {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Time Slots */
.cbs-time-slots-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.cbs-time-period h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 10px 0;
    color: #1e293b;
    border-left: 3px solid #2271b1;
    padding-left: 12px;
}

.cbs-time-period.surge h4 {
    border-left-color: #f97316;
    color: #ea580c;
}

.cbs-time-slot {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cbs-time-slot:hover {
    background: #f0f9ff;
    border-color: #2271b1;
    transform: translateX(4px);
}

.cbs-time-slot.selected {
    background: #e6f4ff;
    border-color: #2271b1;
}

/* Distinct early morning slot styling */
.cbs-time-slot.early-morning-slot {
    background: #fefce8;
    border-left: 4px solid #eab308;
}
.cbs-time-slot.early-morning-slot:hover {
    background: #fef08a;
}
.cbs-time-slot.early-morning-slot.selected {
    background: #fde047;
    border-color: #ca8a04;
}

/* Distinct evening slot styling */
.cbs-time-slot.evening-slot {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
}
.cbs-time-slot.evening-slot:hover {
    background: #fee2e2;
}
.cbs-time-slot.evening-slot.selected {
    background: #fecaca;
    border-color: #b91c1c;
}

/* Legacy surge-slot (fallback) */
.cbs-time-slot.surge-slot {
    border-left: 3px solid #f97316;
}

.cbs-slot-time {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.cbs-slot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbs-slot-availability {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

.cbs-surge-badge {
    background: #fff7ed;
    color: #f97316;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Guest Control */
.cbs-guests-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    margin: 16px 0;
}

.cbs-guest-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    cursor: pointer;
    transition: all 0.2s;
}

.cbs-guest-btn:hover {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

#cbs-guest-count {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    min-width: 32px;
    text-align: center;
}

.cbs-guest-note {
    font-size: 13px;
    color: #64748b;
}

/* Extras */
.cbs-extras-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}

.cbs-extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cbs-extra-name {
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
}

.cbs-extra-controls button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: #2271b1;
}

.cbs-extra-qty {
    margin: 0 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Forms */
.cbs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.cbs-form-group {
    margin-bottom: 0;
}

.cbs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
}

.cbs-form-group input,
.cbs-form-group textarea,
.cbs-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    background: white;
}

.cbs-form-group input:focus,
.cbs-form-group textarea:focus,
.cbs-form-group select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Policy Checkbox */
.cbs-policy-group {
    margin: 20px 0;
    padding: 12px;
    background: #fefce8;
    border-radius: 12px;
    border: 1px solid #fde047;
}
.cbs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500 !important;
    cursor: pointer;
}
.cbs-checkbox-label input {
    width: auto;
    margin-right: 8px;
}
.cbs-checkbox-label a {
    color: #2271b1;
    text-decoration: underline;
}
.cbs-checkbox-label a:hover {
    color: #135e96;
}

/* Summary Panel */
.cbs-summary-panel {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.cbs-summary-panel h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.cbs-summary-panel p {
    font-size: 14px;
    margin: 8px 0;
    color: #475569;
}

/* Buttons */
.cbs-step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.cbs-btn {
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cbs-btn-primary {
    background: #2271b1;
    color: white;
}

.cbs-btn-primary:hover:not(:disabled) {
    background: #135e96;
    transform: translateY(-2px);
}

.cbs-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cbs-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.cbs-btn-secondary:hover {
    background: #e2e8f0;
}

/* Loading */
.cbs-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cbs-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.cbs-error {
    color: #dc2626;
    padding: 20px;
    background: #fee2e2;
    border-radius: 12px;
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .cbs-category-card {
        flex: 0 0 calc(50% - 24px);
    }
    
    .cbs-service-card {
        flex: 0 0 calc(50% - 24px);
    }
    
    .cbs-datetime-section {
        grid-template-columns: 1fr;
    }
}
    
@media (max-width: 768px) {
    .cbs-progress-bar {
        flex-direction: column;
        gap: 16px;
        padding: 30px 20px;
    }
    
    .cbs-step-item {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        font-size: 24px;
    }
    
    .cbs-step-panel {
        padding: 24px;
    }
    
    .cbs-step-panel h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .cbs-category-card {
        flex: 0 0 100%;
    }
    
    .cbs-service-card {
        flex: 0 0 100%;
    }
    
    .cbs-categories-grid,
    .cbs-services-grid {
        gap: 16px;
    }
    
    .cbs-category-card,
    .cbs-service-card {
        padding: 20px;
    }
    
    .cbs-category-image {
        height: 140px;
    }
    
    .cbs-service-image {
        height: 120px;
    }
    
    .cbs-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cbs-step-buttons {
        flex-direction: column;
    }
    
    .cbs-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cbs-step-panel {
        padding: 16px;
    }
    
    .cbs-step-panel h2 {
        font-size: 20px;
    }
    
    .cbs-category-card,
    .cbs-service-card {
        padding: 16px;
    }
    
    .cbs-category-image {
        height: 120px;
    }
    
    .cbs-service-image {
        height: 100px;
    }
    
    .cbs-service-price {
        font-size: 20px;
    }
    
    .cbs-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}