/**
 * Smart Court Booking - Frontend Styles
 * Modern, clean, professional booking interface
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

.scb-booking-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.scb-booking-container * {
    box-sizing: border-box;
}

/* ============================================
   NEW LAYOUT: SIDEBAR + CONTENT
   ============================================ */

.scb-booking-wrapper {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 600px;
}

/* Left Sidebar */
.scb-sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--scb-gradient-start) 0%, var(--scb-gradient-end) 100%);
    padding: 30px 0;
    flex-shrink: 0;
    position: relative;
}

.scb-sidebar-header {
    padding: 0 25px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.scb-sidebar-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.scb-sidebar-steps {
    padding: 0 15px;
}

.scb-sidebar-step {
    position: relative;
    margin-bottom: 5px;
}

.scb-sidebar-step-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

/* Completed Step - clickable */
.scb-sidebar-step.step--completed .scb-sidebar-step-content {
    cursor: pointer;
}

.scb-sidebar-step.step--completed .scb-sidebar-step-content:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.scb-sidebar-step.step--completed:not(.active) .scb-sidebar-step-content:hover .scb-sidebar-step-number {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Active Step - clickable */
.scb-sidebar-step.step--active .scb-sidebar-step-content {
    cursor: pointer;
}

/* Locked Step - NOT clickable */
.scb-sidebar-step.step--locked .scb-sidebar-step-content {
    cursor: not-allowed;
    opacity: 0.5;
}

.scb-sidebar-step.step--locked .scb-sidebar-step-content:hover {
    background: transparent;
    transform: none;
}

.scb-sidebar-step.step--locked .scb-sidebar-step-number {
    opacity: 0.5;
}

.scb-sidebar-step.step--locked .scb-sidebar-step-title,
.scb-sidebar-step.step--locked .scb-sidebar-step-desc {
    opacity: 0.6;
}

/* Legacy support - keep clickable/disabled classes for backward compatibility */
.scb-sidebar-step.clickable .scb-sidebar-step-content {
    cursor: pointer;
}

.scb-sidebar-step.clickable .scb-sidebar-step-content:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.scb-sidebar-step.disabled .scb-sidebar-step-content {
    cursor: not-allowed;
    opacity: 0.5;
}

.scb-sidebar-step.disabled .scb-sidebar-step-content:hover {
    background: transparent;
    transform: none;
}

.scb-sidebar-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.scb-sidebar-step-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.scb-sidebar-step-title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.scb-sidebar-step-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.3;
}

.scb-sidebar-step-line {
    height: 20px;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 26px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.scb-sidebar-step:last-child .scb-sidebar-step-line {
    display: none;
}

/* Active Step */
.scb-sidebar-step.active .scb-sidebar-step-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.scb-sidebar-step.active .scb-sidebar-step-number {
    background: #fff;
    color: var(--scb-primary-color);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.scb-sidebar-step.active .scb-sidebar-step-title {
    font-weight: 600;
    color: #fff;
}

.scb-sidebar-step.active .scb-sidebar-step-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Completed Step */
.scb-sidebar-step.completed .scb-sidebar-step-number {
    background: rgba(255, 255, 255, 0.9);
    color: var(--scb-primary-color);
    border-color: rgba(255, 255, 255, 0.9);
}

.scb-sidebar-step.completed .scb-sidebar-step-line {
    background: rgba(255, 255, 255, 0.4);
}

/* Right Content Area */
.scb-content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-height: 800px;
}

/* ============================================
   MOBILE/TABLET STEP HEADER (OPTION 1)
   ============================================ */

.scb-mobile-step-header {
    display: none; /* enabled on <1024px */
    padding: 14px 12px 18px;
    margin: -10px -5px 18px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.scb-mobile-step-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.scb-mobile-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
}

.scb-mobile-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--scb-gradient-start) 0%, var(--scb-gradient-end) 100%);
    transition: width 260ms ease;
}

.scb-mobile-step-title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

/* ============================================
   STEP CONTAINER
   ============================================ */

.scb-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.scb-step.scb-step-active {
    display: block;
}

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

.scb-step-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.scb-step-header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.scb-step-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.scb-step-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   STEP 1: DATE & TIME
   ============================================ */

.scb-date-time-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.scb-calendar-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e8ebff;
    box-shadow: 0 2px 8px rgba(var(--scb-primary-rgb), 0.1);
    overflow-x: hidden;
}

.scb-calendar-container {
    width: 100%;
    overflow-x: hidden;
}

.scb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.scb-calendar-month-year {
    font-size: 18px;
    font-weight: 600;
    color: var(--scb-primary-color);
}

.scb-calendar-nav {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--scb-primary-color);
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.scb-calendar-nav:hover {
    color: var(--scb-secondary-color);
    background: rgba(var(--scb-primary-rgb), 0.1);
}

.scb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.scb-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--scb-primary-color);
    padding: 8px 0;
}

.scb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.scb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
    border: 1px solid transparent;
    min-height: 36px; /* Ensure tap-friendly size on mobile */
}

.scb-calendar-day:hover:not(.scb-calendar-day-disabled):not(.scb-calendar-day-selected) {
    background: rgba(var(--scb-primary-rgb), 0.1);
    border-color: rgba(var(--scb-primary-rgb), 0.3);
}

.scb-calendar-day.scb-calendar-day-disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Fully blocked (full-day) dates – visually distinct */
.scb-calendar-day.scb-calendar-day-blocked {
    background: #fbe9e7;
    border-color: #ffab91;
    color: #d84315;
}

.scb-calendar-day.scb-calendar-day-selected {
    background: linear-gradient(135deg, var(--scb-gradient-start) 0%, var(--scb-gradient-end) 100%);
    color: #fff;
    font-weight: 600;
    border-color: var(--scb-primary-color);
    box-shadow: 0 4px 12px rgba(var(--scb-primary-rgb), 0.3);
    transform: scale(1.05);
}

.scb-calendar-day.scb-calendar-day-other-month {
    color: #ccc;
}

.scb-label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

.scb-time-slots-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.scb-time-slots-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.scb-time-slots-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scb-time-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.scb-time-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.scb-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.scb-time-slot {
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: none;
}

.scb-time-slot:hover:not(.scb-booked):not(.scb-selected) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.scb-time-slot.scb-available {
    background: #60c364;
    color: #fff;
    border: 2px solid #45a049;
}

.scb-time-slot.scb-available:hover,
.scb-time-slot.scb-available:focus {
    background: #45a049;
    border-color: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    outline: 2px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

.scb-time-slot:focus:not(:focus-visible) {
    outline: none;
}

.scb-time-slot.scb-booked {
    background: #d32f2f;
    color: #fff;
    cursor: not-allowed;
    opacity: 1;
    border: 2px solid #b71c1c;
    position: relative;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.scb-time-slot.scb-booked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%);
}

.scb-time-slot.scb-selected {
    background-color: #dc2626;
    color: #fff;
    font-weight: 600;
    border: 2px solid #b91c1c;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.scb-slot-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scb-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.scb-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid;
}

.scb-legend-color.scb-available {
    background: #4CAF50;
    border-color: #45a049;
}

.scb-legend-color.scb-booked {
    background: #d32f2f;
    border-color: #b71c1c;
}

.scb-legend-color.scb-selected {
    background: #dc2626;
    border-color: #dc2626;
}

/* ============================================
   STEP 2: SERVICE SELECTION
   ============================================ */

.scb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.scb-service-card {
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.scb-service-card:hover,
.scb-service-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(var(--scb-primary-rgb), 0.15);
    border-color: rgba(var(--scb-primary-rgb), 0.3);
    outline: 2px solid rgba(var(--scb-primary-rgb), 0.3);
    outline-offset: 2px;
}

.scb-service-card:focus:not(:focus-visible) {
    outline: none;
}

.scb-service-card:not(.scb-selected):hover {
    border-color: rgba(var(--scb-primary-rgb), 0.3);
    background: rgba(var(--scb-primary-rgb), 0.05);
}

.scb-service-card.scb-selected {
    background: linear-gradient(135deg, rgba(var(--scb-primary-rgb), 0.1) 0%, rgba(var(--scb-secondary-rgb), 0.1) 100%);
    border-color: var(--scb-primary-color);
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(var(--scb-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.scb-service-card.scb-selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--scb-gradient-start) 0%, var(--scb-gradient-end) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(var(--scb-primary-rgb), 0.4);
}

.scb-service-card.scb-service-unavailable {
    background: #ffebee;
    border-color: #d32f2f;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.scb-service-card.scb-service-unavailable:hover {
    transform: none;
    box-shadow: none;
    border-color: #d32f2f;
    background: #ffebee;
}

.scb-service-card.scb-service-unavailable .scb-service-name {
    color: #d32f2f;
    text-decoration: line-through;
}

.scb-service-unavailable {
    color: #d32f2f;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.scb-service-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.scb-service-details {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.scb-service-description {
    margin-bottom: 6px;
    color: #666;
    font-size: 13px;
}

.scb-service-duration,
.scb-service-price {
    margin-bottom: 4px;
}

.scb-service-price {
    font-weight: 600;
    color: var(--scb-primary-color);
    font-size: 16px;
}

.scb-no-courts-message {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    color: #856404;
}

/* ============================================
   STEP 3: CART SUMMARY
   ============================================ */

.scb-cart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.scb-cart-items {
    margin-bottom: 20px;
}

.scb-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
}

.scb-cart-item-info {
    flex: 1;
}

.scb-cart-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.scb-cart-item-time {
    font-size: 14px;
    color: #666;
}

.scb-cart-item-price {
    font-weight: 600;
    color: var(--scb-primary-color);
    margin-right: 16px;
}

.scb-cart-item-remove {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.scb-cart-item-remove:hover {
    background: #d32f2f;
}

.scb-cart-totals {
    border-top: 2px solid rgba(var(--scb-primary-rgb), 0.2);
    padding-top: 20px;
    margin-top: 20px;
}

.scb-cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.scb-cart-total {
    font-size: 20px;
    font-weight: 600;
    color: var(--scb-primary-color);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(var(--scb-primary-rgb), 0.2);
}

/* ============================================
   STEP 4: PERSONAL DETAILS
   ============================================ */

.scb-details-form {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e8ebff;
    box-shadow: 0 2px 8px rgba(var(--scb-primary-rgb), 0.1);
}

.scb-form-group {
    margin-bottom: 24px;
}

.scb-input,
.scb-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.scb-input:focus,
.scb-textarea:focus {
    outline: none;
    border-color: var(--scb-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--scb-primary-rgb), 0.1);
}

.scb-input:invalid:not(:placeholder-shown),
.scb-textarea:invalid:not(:placeholder-shown),
.scb-input.scb-input-error,
.scb-textarea.scb-input-error {
    border-color: #f44336;
}

.scb-textarea {
    resize: vertical;
    min-height: 100px;
}

.scb-required {
    color: #f44336;
}

.scb-label-optional {
    color: #999;
    font-weight: normal;
    font-size: 12px;
}

.scb-error-message {
    display: block;
    color: #f44336;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

/* ============================================
   STEP 5: CONFIRMATION
   ============================================ */

.scb-confirmation-summary {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e8ebff;
    box-shadow: 0 2px 8px rgba(var(--scb-primary-rgb), 0.1);
}

.scb-summary-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.scb-summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.scb-summary-section h3 {
    font-size: 16.2px;
    font-weight: 600;
    color: var(--scb-primary-color);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(var(--scb-primary-rgb), 0.2);
}

.scb-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14.4px;
}

.scb-summary-item:last-child {
    border-bottom: none;
}

.scb-summary-label {
    font-weight: 500;
    color: #666;
    font-size: 14.4px;
}

.scb-summary-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14.4px;
}

.scb-summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #4CAF50;
    font-size: 16.2px;
}

.scb-summary-total .scb-summary-value {
    color: #4CAF50;
    font-size: 18px;
    font-weight: 600;
}

.scb-confirm-cart-items {
    margin-bottom: 16px;
}

.scb-confirm-cart-item {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12.6px;
}

.scb-confirm-cart-item:last-child {
    border-bottom: none;
}

/* ============================================
   STEP 6: PAYMENT
   ============================================ */

.scb-payment-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.scb-payment-summary {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
}

.scb-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.scb-payment-amount {
    font-size: 24px;
    font-weight: 600;
    color: #4CAF50;
}

.scb-payment-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.scb-payment-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.scb-payment-placeholder p {
    color: #666;
    margin-bottom: 24px;
}

.scb-payment-note {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    font-style: italic;
}

/* ============================================
   STEP 7: THANK YOU
   ============================================ */

.scb-thank-you-section {
    text-align: center;
    padding: 40px 20px;
}

.scb-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    font-weight: bold;
}

.scb-thank-you-section h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.scb-success-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.scb-booking-reference {
    background: #e8f5e9;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    display: inline-block;
    min-width: 300px;
}

.scb-reference-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.scb-reference-id {
    font-size: 24px;
    font-weight: 600;
    color: #4CAF50;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.scb-final-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.scb-final-summary h3 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.scb-info-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ============================================
   BUTTONS
   ============================================ */

.scb-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

.scb-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

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

.scb-btn:focus {
    outline: 3px solid rgba(var(--scb-primary-rgb), 0.4);
    outline-offset: 2px;
}

.scb-btn:focus:not(:focus-visible) {
    outline: none;
}

.scb-btn-primary {
    background: linear-gradient(135deg, var(--scb-gradient-start) 0%, var(--scb-gradient-end) 100%);
    color: #fff;
    border: none;
}

.scb-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--scb-gradient-end) 0%, var(--scb-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--scb-primary-rgb), 0.4);
}

.scb-btn-secondary {
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
}

.scb-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.scb-btn-payment {
    padding: 16px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--scb-gradient-start) 0%, var(--scb-gradient-end) 100%);
    color: #fff;
}

.scb-btn-payment:hover {
    background: linear-gradient(135deg, var(--scb-gradient-end) 0%, var(--scb-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--scb-primary-rgb), 0.4);
}

.scb-btn-arrow {
    font-size: 18px;
}

.scb-btn-icon {
    font-size: 18px;
}

.scb-thank-you-actions {
    margin-top: 40px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Base mobile styles (320px+) */
.scb-booking-container {
    margin: 10px auto;
    padding: 0 10px;
}

.scb-booking-wrapper {
    border-radius: 12px;
}

.scb-content-area {
    padding: 20px 15px;
    max-height: none;
}

.scb-step-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.scb-step-header p {
    font-size: 14px;
}

.scb-btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 15px;
}

.scb-time-slot {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
}

.scb-input,
.scb-textarea {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Mobile: 320px - 480px */
@media (max-width: 480px) {
    .scb-booking-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .scb-booking-wrapper {
        flex-direction: column;
        border-radius: 12px;
        min-height: auto;
    }
    
    /* Horizontal Sidebar on Mobile */
    .scb-sidebar {
        width: 100%;
        padding: 15px 0;
        background: linear-gradient(135deg, var(--scb-gradient-start) 0%, var(--scb-gradient-end) 100%);
    }
    
    .scb-sidebar-header {
        padding: 0 15px 15px;
        text-align: center;
    }
    
    .scb-sidebar-header h3 {
        font-size: 16px;
    }
    
    .scb-sidebar-steps {
        padding: 0 10px;
        display: flex;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .scb-sidebar-steps::-webkit-scrollbar {
        height: 4px;
    }
    
    .scb-sidebar-steps::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .scb-sidebar-step {
        flex: 0 0 auto;
        min-width: 110px;
        margin-bottom: 0;
    }
    
    .scb-sidebar-step-line {
        display: none;
    }
    
    .scb-sidebar-step-content {
        padding: 10px 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .scb-sidebar-step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .scb-sidebar-step-info {
        width: 100%;
    }
    
    .scb-sidebar-step-title {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .scb-sidebar-step-desc {
        font-size: 10px;
        display: none; /* Hide description on very small screens */
    }
    
    .scb-content-area {
        padding: 20px 15px;
    }
    
    .scb-step-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .scb-step-header h2 {
        font-size: 20px;
    }
    
    /* Date & Time Step - Mobile */
    .scb-date-time-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scb-calendar-section,
    .scb-time-slots-section {
        padding: 15px;
    }

    /* Calendar: prevent any horizontal scroll/cutoff on small screens */
    .scb-calendar-section {
        overflow: hidden;
    }

    .scb-calendar-container {
        overflow: hidden;
    }

    .scb-calendar-header {
        padding: 0 6px;
    }

    .scb-calendar-weekdays,
    .scb-calendar-days {
        gap: 4px;
    }

    .scb-calendar-day {
        font-size: 13px;
        min-width: 0;
    }
    
    .scb-time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .scb-time-slot {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* Service Step - Mobile */
    .scb-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .scb-service-card {
        padding: 20px;
        width: 100%;
    }
    
    .scb-service-name {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .scb-service-description {
        font-size: 13px;
        margin-bottom: 10px;
        display: block;
    }
    
    .scb-service-price {
        font-size: 18px;
        margin-top: 8px;
        display: block;
        text-align: left;
    }
    
    /* Cart Step - Mobile */
    .scb-step-header > div {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scb-step-header > div > div {
        width: 100%;
    }
    
    #scbAddItemBtn {
        width: 100%;
        min-height: 44px;
        margin-top: 10px;
    }
    
    .scb-cart-container {
        padding: 20px 15px;
        position: relative;
        padding-bottom: 100px; /* Space for sticky total */
    }
    
    .scb-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    
    .scb-cart-item-info {
        width: 100%;
    }
    
    .scb-cart-item-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .scb-cart-item-time {
        font-size: 13px;
    }
    
    .scb-cart-item-price {
        margin-right: 0;
        font-size: 18px;
        align-self: flex-start;
    }
    
    .scb-cart-item-remove {
        width: 100%;
        min-height: 44px;
        padding: 12px;
    }
    
    .scb-cart-totals {
        position: sticky;
        bottom: 0;
        background: #f8f9fa;
        padding: 15px;
        margin-top: 20px;
        border-top: 2px solid rgba(var(--scb-primary-rgb), 0.2);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Details Form - Mobile */
    .scb-details-form {
        padding: 20px 15px;
    }
    
    .scb-form-group {
        margin-bottom: 20px;
    }
    
    .scb-label {
        font-size: 14px;
        margin-bottom: 8px;
        display: block;
    }
    
    .scb-input,
    .scb-textarea {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .scb-textarea {
        min-height: 100px;
    }
    
    /* Payment Step - Mobile */
    .scb-payment-section {
        padding: 20px 15px;
    }
    
    .scb-payment-summary {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .scb-payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 16px;
    }
    
    .scb-payment-amount {
        font-size: 22px;
    }
    
    .scb-payment-placeholder {
        padding: 30px 15px;
    }
    
    .scb-btn-payment {
        width: 100%;
        min-height: 50px;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Confirmation Step - Mobile */
    .scb-confirmation-summary {
        padding: 20px 15px;
    }
    
    .scb-summary-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .scb-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    .scb-summary-label {
        font-size: 13px;
    }
    
    .scb-summary-value {
        font-size: 14px;
    }
    
    /* Buttons - Mobile */
    .scb-step-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }
    
    .scb-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    /* Thank You - Mobile */
    .scb-thank-you-section {
        padding: 30px 15px;
    }
    
    .scb-success-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .scb-thank-you-section h2 {
        font-size: 24px;
    }
    
    .scb-success-message {
        font-size: 16px;
    }
    
    .scb-booking-reference {
        min-width: auto;
        width: 100%;
        padding: 20px;
    }
    
    .scb-reference-id {
        font-size: 18px;
    }
    
    .scb-final-summary {
        padding: 20px 15px;
        margin: 20px 0;
    }
}

/* Tablet: 481px - 1024px */
@media (min-width: 481px) and (max-width: 1024px) {
    .scb-booking-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .scb-booking-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }
    
    /* Horizontal Sidebar on Tablet */
    .scb-sidebar {
        width: 100%;
        padding: 20px 0;
    }
    
    .scb-sidebar-header {
        padding: 0 20px 20px;
        text-align: center;
    }
    
    .scb-sidebar-steps {
        padding: 0 15px;
        display: flex;
        overflow-x: auto;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        justify-content: center;
    }
    
    .scb-sidebar-step {
        flex: 0 0 auto;
        min-width: 150px;
        margin-bottom: 0;
    }
    
    .scb-sidebar-step-line {
        display: none;
    }
    
    .scb-sidebar-step-content {
        padding: 12px 10px;
    }
    
    .scb-content-area {
        padding: 30px 25px;
    }
    
    .scb-step-header h2 {
        font-size: 26px;
    }
    
    /* Date & Time Step - Tablet */
    .scb-date-time-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .scb-time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    /* Larger tablets can show 4 columns */
    @media (min-width: 768px) and (max-width: 1024px) {
        .scb-time-slots-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    
    /* Service Step - Tablet */
    .scb-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Cart Step - Tablet */
    .scb-step-header > div {
        flex-direction: row;
        align-items: center;
    }
    
    #scbAddItemBtn {
        width: auto;
        min-width: 140px;
        margin-top: 0;
    }
    
    .scb-cart-container {
        padding: 25px 20px;
    }
    
    .scb-cart-item {
        flex-direction: row;
        align-items: center;
    }
    
    .scb-cart-item-remove {
        width: auto;
        min-width: 100px;
    }
    
    /* Details Form - Tablet */
    .scb-details-form {
        padding: 25px 20px;
    }
    
    .scb-form-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .scb-form-group:has(.scb-textarea),
    .scb-form-group:has(textarea) {
        grid-template-columns: 1fr;
    }
    
    /* Payment Step - Tablet */
    .scb-payment-section {
        padding: 25px 20px;
    }
    
    .scb-payment-row {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .scb-btn-payment {
        width: auto;
        min-width: 200px;
    }
    
    /* Buttons - Tablet */
    .scb-step-actions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .scb-btn {
        flex: 1;
        max-width: 48%;
    }
}

/* Desktop: 1025px+ */
@media (min-width: 1025px) {
    .scb-booking-container {
        margin: 40px auto;
        padding: 0 20px;
    }
    
    .scb-booking-wrapper {
        flex-direction: row;
    }
    
    /* Vertical Sidebar on Desktop */
    .scb-sidebar {
        width: 280px;
        padding: 30px 0;
    }
    
    .scb-sidebar-steps {
        display: block;
        padding: 0 15px;
    }
    
    .scb-sidebar-step {
        margin-bottom: 5px;
    }
    
    .scb-sidebar-step-line {
        display: block;
    }
    
    .scb-sidebar-step-content {
        flex-direction: row;
        text-align: left;
    }
    
    .scb-content-area {
        padding: 40px;
        max-height: 800px;
    }
    
    /* Date & Time Step - Desktop */
    .scb-date-time-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .scb-time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Service Step - Desktop */
    .scb-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Buttons - Desktop */
    .scb-step-actions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .scb-btn {
        width: auto;
    }
}

/* Visibility rules for step indicator */
@media (max-width: 1024px) {
    .scb-sidebar {
        display: none;
    }

    .scb-mobile-step-header {
        display: block;
    }
}

@media (min-width: 1025px) {
    .scb-mobile-step-header {
        display: none;
    }
}

/* ============================================
   AVAILABILITY LOADER & MESSAGES
   ============================================ */

.scb-availability-loader {
    text-align: center;
    padding: 40px 20px;
}

.scb-loader-spinner {
    border: 4px solid rgba(var(--scb-primary-rgb), 0.1);
    border-top: 4px solid var(--scb-primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scb-availability-loader p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.scb-no-services-message,
.scb-slot-conflict-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.scb-no-services-message p,
.scb-slot-conflict-message p {
    color: #856404;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

