/* Booking System Enterprise Styles - COMPLETE DYNAMIC VERSION */
/* All colors now use dynamic CSS variables */

.booking-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Progress Indicator */
.booking-progress {
    padding: 2rem 0 1rem;
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 0.5rem;
    position: relative;
    top: -0.75rem;
}

.step.completed .step-connector {
    background: #28a745;
}

.step.active ~ .step .step-connector {
    background: #e9ecef;
}

.step.completed ~ .step .step-connector {
    background: #28a745;
}

.step-bubble {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: transparent !important;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-number {
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step.active .step-bubble {
    background: var(--menu-primary-color, var(--menu-primary-color, #007bff)) !important;
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
}

.step.active .step-number {
    color: white;
}

.step.completed .step-bubble {
    background: #28a745 !important;
    border-color: #28a745;
}

.step.completed .step-number {
    opacity: 0;
}

.step.completed .step-check {
    opacity: 1;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

/* Step Content */
.booking-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: #6c757d;
    margin: 0;
}

/* Service Grid - SINGLE COLUMN ALWAYS */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.service-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    width: 100%;
}

.service-card:hover {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--menu-shadow, var(--menu-primary-shadow, rgba(0,123,255,0.15)));
}

.service-card.selected {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    background: linear-gradient(135deg, var(--menu-bgLight, var(--menu-primary-bg, #f8f9ff)) 0%, #ffffff 100%);
    box-shadow: 0 4px 15px var(--menu-shadowSelected, var(--menu-primary-shadow-selected, rgba(0,123,255,0.1)));
}

/* Service Header with Icon and Title */
.service-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    width: 100%;
    gap: 1rem;
}

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.service-card.selected .service-icon {
    background: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    color: white;
}

.service-title-wrapper {
    flex: 1;
    min-width: 0;
}

.service-name {
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Service Description - ALWAYS BENEATH TITLE */
.service-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    padding-left: 0;
}

/* Service Meta - Floating Style */
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 0;
}

.service-duration {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-price {
    font-weight: 600;
    color: #28a745;
    font-size: 1rem;
}

/* Category Filter */
.category-filter {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.category-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    width: max-content;
    min-width: 100%;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
    flex-shrink: 0;
}

.category-btn.active {
    background: var(--menu-primary-color, var(--menu-primary-color, #007bff)) !important;
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    color: white;
}

.category-btn:hover:not(.active) {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    transform: translateY(-1px);
}

/* Selected Service Display */
.selected-service-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--menu-primary-color, var(--menu-primary-color, #007bff));
}

.selected-service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

/* Calendar & Time Selection Layout */
.datetime-selection {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calendar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    width: 100%;
    order: 1;
}

.time-slots-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    width: 100%;
    order: 2;
    display: none;
}

.time-slots-placeholder {
    background: white;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    width: 100%;
    order: 2;
    text-align: center;
    color: #6c757d;
}

.time-slots-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Calendar Styles */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.nav-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.month-display {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    background: white;
    border: 2px solid transparent;
    font-weight: 500;
}

/* Calendar Hover - Match Time Slot Style */
.day-cell.available:hover {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    background-color: var(--menu-light, var(--menu-primary-light, rgba(0,123,255,0.05)));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--menu-shadow, var(--menu-primary-shadow, rgba(0,123,255,0.1)));
    color: #333;
}

.day-cell.selected {
    background: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    color: white;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--menu-shadowSelected, var(--menu-primary-shadow-selected, rgba(0,123,255,0.3)));
}

.day-cell.unavailable {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.4;
    background: #f8f9fa;
}

.day-cell.today {
    border: 2px solid var(--menu-primary-color, var(--menu-primary-color, #007bff));
    font-weight: 600;
    background: var(--menu-bgLight, var(--menu-primary-bg, #f8f9ff));
}

.day-cell.empty {
    background: transparent;
    cursor: default;
    border: none;
}

/* NEW: for when today is selected */
.day-cell.today.selected {
    background: linear-gradient(135deg, var(--menu-primary-color, var(--menu-primary-color, #007bff)) 0%, var(--menu-secondary, var(--menu-secondary-color, #0056b3)) 100%);
    color: white;
    border-color: var(--menu-secondary, var(--menu-secondary-color, #0056b3));
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--menu-shadowStrong, var(--menu-primary-shadow-strong, rgba(0, 123, 255, 0.4)));
}

/* Optional: Hover effect for selected today */
.day-cell.today.selected:hover {
    background: linear-gradient(135deg, var(--menu-primary-color, var(--menu-primary-color, #007bff)) 0%, var(--menu-secondary, var(--menu-secondary-color, #0056b3)) 100%);
    transform: scale(1.07);
    box-shadow: 0 6px 20px var(--menu-shadowStronger, var(--menu-primary-shadow-stronger, rgba(0, 123, 255, 0.5)));
}

/* Time Slot Tabs - FIXED FOR ALL SCREEN SIZES */
.time-tabs-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.time-slot-tabs {
    display: flex;
    gap: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.time-tab {
    flex: 1;
    min-width: 0;
    padding: 1rem 0.5rem;
    background: #f8f9fa;
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
}

.time-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #dee2e6;
}

.time-tab i {
    font-size: 1rem;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.time-tab.active {
    color: white;
    background: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    box-shadow: none;
    transform: none;
}

.time-tab.active::after {
    display: none;
}

.time-tab:hover:not(.active) {
    color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    background: #e9ecef;
}

/* Time Period Sections */
.time-period {
    display: none;
}

.time-period.active {
    display: block;
}

.period-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

/* Time Slots Grid - 3 columns on desktop, 2 on mobile */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.time-slot {
    padding: 1rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    position: relative;
}

.time-slot.available:hover {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    background-color: var(--menu-light, var(--menu-primary-light, rgba(0,123,255,0.05)));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--menu-shadow, var(--menu-primary-shadow, rgba(0,123,255,0.1)));
}

.time-slot.selected {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    background-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--menu-shadowSelected, var(--menu-primary-shadow-selected, rgba(0,123,255,0.3)));
}

.time-slot.selected:hover {
    background-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--menu-shadowSelected, var(--menu-primary-shadow-selected, rgba(0,123,255,0.3)));
}

.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #6c757d;
}

/* No slots message */
.no-slots-message {
    text-align: center;
    padding: 2.5rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.no-slots-message i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-slots-message p {
    margin: 0;
    font-size: 0.95rem;
}

/* Booking Form - Step 3 Enhanced Validation */
.booking-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.booking-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.booking-form .form-control:focus {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    box-shadow: 0 0 0 0.2rem var(--menu-focus-shadow, var(--menu-shadowHover, rgba(0,123,255,0.25)));
    transform: translateY(-1px);
}

.booking-form .form-control:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: 2.5rem;
}

.booking-form .form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: 2.5rem;
}

.booking-form .form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.booking-form .form-control:invalid:not(:focus):not(:placeholder-shown) ~ .form-error {
    display: block;
}

/* Booking Actions - ENTERPRISE LEVEL */
.booking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid #e9ecef;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 100;
}

/* Step 1: Only Continue button - align to end */
#step1 .booking-actions {
    justify-content: flex-end;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-next {
    background: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    color: white;
    box-shadow: 0 2px 8px var(--menu-shadowSelected, var(--menu-primary-shadow-selected, rgba(0,123,255,0.3)));
}

.btn-next:hover:not(:disabled) {
    background: var(--menu-secondary, var(--menu-secondary-color, #0056b3));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--menu-shadowStrong, var(--menu-primary-shadow-strong, rgba(0,123,255,0.4)));
}

.btn-next:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108,117,125,0.3);
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108,117,125,0.4);
}

/* Staff Selection Styling */
.staff-selection {
    margin-bottom: 1.5rem;
}

.staff-selection .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.staff-selection .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.staff-selection .form-select:focus {
    border-color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    box-shadow: 0 0 0 0.2rem var(--menu-focus-shadow, var(--menu-shadowHover, rgba(0,123,255,0.25)));
    transform: translateY(-1px);
}

/* Success State */
.booking-success {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-title {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.success-message {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Step 2: Ensure Continue button starts as disabled */
#step2 .btn-next {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#step2 .btn-next:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#step2 .btn-next:not(:disabled) {
    background: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    cursor: pointer;
    box-shadow: 0 2px 8px var(--menu-shadowSelected, var(--menu-primary-shadow-selected, rgba(0,123,255,0.3)));
}

#step2 .btn-next:not(:disabled):hover {
    background: var(--menu-secondary, var(--menu-secondary-color, #0056b3));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--menu-shadowStrong, var(--menu-primary-shadow-strong, rgba(0,123,255,0.4)));
}

/* Step 4: Buttons - SAME AS OTHER STEPS */
#step4 .booking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid #e9ecef;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 100;
}

#step4 .btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108,117,125,0.3);
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

#step4 .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108,117,125,0.4);
}

#step4 .btn-next {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

#step4 .btn-next:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.4);
}

/* Step 4: Enterprise Table Design - FINAL VERSION */
#step4 .booking-summary-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 2rem;
    background: transparent;
}

#step4 .summary-section {
    margin-bottom: 0;
}

/* Remove the "Appointment Summary" title */
#step4 .summary-title {
    display: none;
}

#step4 .summary-content {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: white;
    border: 1px solid #f0f0f0;
}

/* Table Rows */
.summary-item {
    display: table-row;
    border-bottom: 1px solid #f8f9fa;
}

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

/* Keep hover only for desktop */
@media (min-width: 768px) {
    .summary-item:hover {
        background: var(--menu-bgLight, var(--menu-primary-bg, #f8f9ff));
    }
}

.summary-label {
    display: table-cell;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    padding: 1.25rem 1.5rem;
    border-right: 2px solid #f8f9fa;
    width: 35%;
    background: #fafbfc;
    vertical-align: top;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-label i {
    color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

.summary-value {
    display: table-cell;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    vertical-align: top;
    background: white;
}

.summary-value.price {
    color: #28a745;
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-value.time {
    color: var(--menu-primary-color, var(--menu-primary-color, #007bff));
    font-weight: 700;
    font-size: 1.05rem;
}

.summary-value small {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Special styling for specific rows */
.summary-item:nth-child(even) .summary-label {
    background: var(--menu-bgLight, var(--menu-primary-bg, #f8f9ff));
}

.summary-item:nth-child(even) .summary-value {
    background: #fafbfc;
}

/* Mobile-specific optimizations for Time Tabs */
@media (max-width: 480px) {
    .time-tab {
        font-size: 0.8rem;
        padding: 0.9rem 0.4rem;
    }

    .time-tab i {
        font-size: 0.9rem;
        margin-right: 0.3rem;
    }
}

/* Hide text on very small screens, show only icons */
@media (max-width: 360px) {
    .time-tab {
        font-size: 0;
        padding: 0.9rem 0.3rem;
    }

    .time-tab span {
        display: none;
    }

    .time-tab i {
        margin-right: 0;
        font-size: 1rem;
    }

    .time-tab.active i {
        color: white;
    }
}

/* Alternative: Show text with ellipsis on small screens */
@media (max-width: 400px) {
    .time-tab {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        padding: 0.9rem 0.4rem;
    }
}

/* Ensure no horizontal scroll */
@media (max-width: 767px) {
    .time-slot-tabs {
        overflow-x: hidden;
    }

    .time-tabs-section {
        overflow: hidden;
    }
}

/* Responsive Design - Global */
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .btn {
        padding: 0.875rem 2.5rem;
        min-width: 140px;
    }
}

@media (min-width: 992px) {
    .booking-container {
        max-width: 1200px;
    }

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

    .service-card {
        padding: 1.75rem;
    }
}

@media (min-width: 1200px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-header {
        margin-bottom: 0.5rem;
        gap: 0.75rem;
    }

    .booking-actions {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        min-width: 110px;
        font-size: 0.9rem;
    }

    /* Step 1: Mobile - still keep Continue at end */
    #step1 .booking-actions {
        justify-content: flex-end;
    }

    /* Step 4 Responsive */
    #step4 .booking-summary-card {
        padding: 0;
        margin: 0;
    }

    #step4 .summary-content {
        display: table;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border-radius: 10px;
        background: white;
        border: 1px solid #e9ecef;
    }

    .summary-item {
        display: table-row;
    }

    .summary-label {
        display: table-cell;
        width: 40%;
        padding: 1rem 1rem;
        font-size: 0.9rem;
        border-right: 1px solid #f0f0f0;
    }

    .summary-value {
        display: table-cell;
        padding: 1rem 1rem;
        font-size: 0.9rem;
    }

    #step4 .booking-actions {
        padding: 1.5rem 0;
        margin-top: 2rem;
        flex-direction: row;
        justify-content: space-between;
    }

    #step4 .btn-secondary,
    #step4 .btn-next {
        padding: 0.75rem 1.5rem;
        min-width: 110px;
        font-size: 0.9rem;
        flex: 0 0 auto;
    }
}

@media (min-width: 768px) {
    #step4 .btn-secondary,
    #step4 .btn-next {
        padding: 0.875rem 2.5rem;
        min-width: 140px;
    }
}