/* Modern Booking Interface Styles */

/* Ensure proper page layout to prevent footer overlap */
body.with-footer {
    padding-bottom: 200px !important; /* Force space for footer */
}

.booking-page {
    padding-bottom: 150px !important; /* Add bottom padding to prevent overlap */
}

/* Main Layout */
.booking-page {
    min-height: 100vh;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.booking-content {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem; /* Base padding */
    position: relative;
    z-index: 10;
}

.booking-content .container {
    min-height: 70vh; /* Ensure minimum content height */
    padding-bottom: 2rem; /* Container bottom padding */
}

/* Progress Steps */
.booking-progress {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.step-item.active .step-circle {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
    color: white;
}

.step-item.completed .step-circle {
    background-color: var(--success-color, #28a745);
    border-color: var(--success-color, #28a745);
    color: white;
}

.step-number {
    font-weight: 600;
    font-size: 14px;
}

.step-check {
    display: none;
}

.step-item.completed .step-number {
    display: none;
}

.step-item.completed .step-check {
    display: block;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

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

.step-connector {
    height: 2px;
    background-color: #dee2e6;
    flex: 1;
    margin: 0 15px;
    margin-bottom: 30px;
}

.step-item.completed + .step-connector,
.step-item.active + .step-connector {
    background-color: var(--primary-color, #007bff);
}

/* Form Styling */
.booking-form .form-label.required::after {
    content: " *";
    color: #dc3545;
}

.required-indicator {
    color: #dc3545;
    font-weight: bold;
}

.notification-options,
.id-type-options {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.notification-options .form-check,
.id-type-options .form-check {
    margin-bottom: 0.5rem;
}

.notification-options .form-check:last-child,
.id-type-options .form-check:last-child {
    margin-bottom: 0;
}

.notification-options .form-check-label,
.id-type-options .form-check-label {
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
}

.notification-options .form-check-input:checked + .form-check-label,
.id-type-options .form-check-input:checked + .form-check-label {
    color: var(--primary-color, #007bff);
}

.booking-form .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.booking-form .form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* Card Styling */
.booking-step {
    margin-bottom: 2rem; /* Reasonable spacing between steps */
}

.booking-step:last-child {
    margin-bottom: 3rem; /* Extra space for the last step */
}

.booking-step .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem; /* Reasonable margin for spacing */
}

.booking-step .card-header {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, #0056b3 100%);
    border: none;
    padding: 1.5rem; /* Increased padding for more room */
}

.booking-step .card-header .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.booking-step .card-header small {
    font-size: 0.875rem;
    line-height: 1.4;
}

.booking-step .card-header a:hover {
    text-decoration: underline !important;
}

.booking-step .card-body {
    padding: 32px;
    min-height: auto; /* Remove fixed height constraints */
}

/* Button Styling */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    z-index: 20; /* Ensure buttons are above footer */
    cursor: pointer;
}

.btn:not(:disabled) {
    pointer-events: auto; /* Ensure buttons are clickable */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Calendar Styling */
.slot-calendar {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* New Frappe-style Calendar */
.frappe-calendar {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.frappe-calendar .calendar-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.frappe-calendar .calendar-weekday {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 8px 4px;
}

.frappe-calendar .calendar-day-cell {
    min-height: 60px;
    border-right: 1px solid #f1f3f4;
    border-bottom: 1px solid #f1f3f4;
}

.frappe-calendar .calendar-day-cell:last-child {
    border-right: none;
}

.frappe-calendar .calendar-day-btn {
    height: 100%;
    min-height: 50px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.frappe-calendar .calendar-day-btn:disabled {
    background: transparent !important;
    border: none !important;
    cursor: not-allowed;
}

.frappe-calendar .calendar-day-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.frappe-calendar .calendar-day-btn.btn-primary {
    background: var(--primary-color, #007bff) !important;
    color: white !important;
}

/* Fix for Bootstrap row margins in calendar */
.frappe-calendar .row.no-gutters {
    margin: 0;
}

.frappe-calendar .row.no-gutters > .col {
    padding: 0;
}

/* Responsive calendar adjustments */
@media (max-width: 768px) {
    .frappe-calendar .calendar-day-btn {
        min-height: 40px;
        font-size: 0.8rem;
    }
    
    .frappe-calendar .calendar-weekday {
        font-size: 0.7rem;
        padding: 6px 2px;
    }
}

.calendar-header {
    background: var(--primary-color, #007bff);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.calendar-day {
    background: white;
    padding: 12px 8px;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
}

.calendar-day-number {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.has-slots {
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-day.has-slots:hover {
    background: #e3f2fd;
}

.slot-count {
    font-size: 11px;
    color: var(--primary-color, #007bff);
    font-weight: 500;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.time-slot {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color, #007bff);
    background: #e3f2fd;
}

.time-slot.selected {
    background: var(--primary-color, #007bff);
    color: white;
    border-color: var(--primary-color, #007bff);
}

.time-slot.unavailable {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* New Time Slot Cards */
.selected-date-display {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #007bff);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.time-slot-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.time-slot-card:hover {
    border-color: var(--primary-color, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.time-slot-card.selected {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, #0056b3 100%);
    border-color: var(--primary-color, #007bff);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.time-slot-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.time-slot-main {
    flex: 1;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.start-time, .end-time {
    font-size: 1.1rem;
    font-weight: 600;
}

.time-separator {
    color: #6c757d;
    font-weight: 500;
}

.time-slot-card.selected .time-separator {
    color: rgba(255, 255, 255, 0.8);
}

.duration-info {
    opacity: 0.8;
}

.slot-status {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color, #007bff);
    transition: all 0.3s ease;
}

.time-slot-card.selected .slot-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.time-slot-card:hover .slot-status {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.1);
}

/* Booking Summary Improvements */
.appointment-datetime {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.appointment-date, .appointment-time {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.appointment-time {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

/* Hold Timer */
.hold-timer {
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

#timer-countdown {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
}

/* Appointment Code Display */
.appointment-code-display {
    background: #f8f9fa;
    border: 2px dashed #28a745;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.code-value {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    letter-spacing: 4px;
    margin: 8px 0;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.summary-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
}

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

.summary-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-value {
    color: #212529;
    font-size: 16px;
}

/* Responsive Design */
/* Action Bar Styling */
.booking-step .d-flex.justify-content-between {
    position: relative;
    z-index: 25;
    background: white;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Ensure form doesn't overlap with site elements */
.booking-page {
    isolation: isolate; /* Create new stacking context */
}

/* Footer Override - Ensure booking content is above site footer */
/* Ensure footer doesn't overlap booking content */
body:has(.booking-page) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:has(.booking-page) footer,
body:has(.booking-page) .footer,
body:has(.booking-page) #footer {
    margin-top: auto; /* Push footer to bottom */
    position: relative;
    z-index: 1;
}

/* Ensure no elements overlap the footer area */
.booking-page * {
    position: relative;
    z-index: 10;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .booking-content {
        padding-bottom: 6rem; /* More space on mobile */
    }
    
    .booking-step .card-body {
        padding: 20px;
    }
    
    .booking-step .d-flex.justify-content-between {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        margin-top: 0;
    }
    
    .booking-step .card-body {
        margin-bottom: 80px; /* Space for fixed action bar */
    }
}
    .booking-step .card-body {
        padding: 20px;
    }
    
    .progress-steps {
        padding: 0 16px;
    }
    
    .step-connector {
        margin: 0 8px;
        margin-bottom: 30px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .calendar-grid {
        font-size: 14px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }
    
    .code-value {
        font-size: 24px;
        letter-spacing: 2px;
    }


@media (max-width: 576px) {
    .booking-header .col-md-4 {
        margin-top: 12px;
    }
    
    .booking-header .text-end {
        text-align: left !important;
    }
    
    .step-item {
        max-width: 80px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading States */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error States */
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.error-message .fa {
    margin-right: 8px;
}

/* Success States */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

/* Accessibility */
.booking-form .form-control:focus,
.time-slot:focus,
.btn:focus {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

/* Enhanced Error Handling Styles */
.validation-alert {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.validation-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #dc3545;
}

.validation-alert .alert-heading {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.validation-alert .fas {
    animation: pulse 2s infinite;
}

/* Alert Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Enhanced Alert Container */
#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 450px;
}

#alert-container .alert {
    margin-bottom: 12px;
    border: none;
    backdrop-filter: blur(10px);
}

#alert-container .alert-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border-left: 4px solid #dc3545;
}

#alert-container .alert-success {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    border-left: 4px solid #28a745;
}

#alert-container .alert-warning {
    background: linear-gradient(135deg, #fffbf0 0%, #fff2e6 100%);
    border-left: 4px solid #ffc107;
}

#alert-container .alert-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    border-left: 4px solid #17a2b8;
}

/* Responsive Alert Adjustments */
@media (max-width: 768px) {
    #alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .validation-alert {
        margin: 0 10px;
    }
}

/* Print Styles */
@media print {
    .booking-page {
        background: white !important;
    }
    
    .card-header,
    .booking-header,
    .booking-progress {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        display: none;
    }
    
    .modal-footer {
        display: none;
    }
    
    #alert-container,
    .validation-alert {
        display: none !important;
    }
}

/* New simplified time slot list styles */
.time-slots-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0;
    margin-top: 1rem;
}

.time-slot-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    text-align: center;
    min-height: 65px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.time-slot-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.15);
    text-decoration: none;
    color: #007bff;
}

.time-slot-option.selected {
    border-color: #007bff;
    background-color: #007bff;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.time-slot-option.selected:hover {
    background-color: #0056b3;
    border-color: #004085;
    color: white;
}

/* Responsive grid for smaller screens */
@media (max-width: 768px) {
    .time-slots-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .time-slots-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .time-slot-option {
        padding: 16px 12px;
        min-height: 55px;
        font-size: 15px;
    }
}

.time-slot-option .time-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 17px;
}

.time-slot-option .fa-chevron-right {
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-size: 14px;
}

.time-slot-option:hover .fa-chevron-right {
    opacity: 1;
}

.time-slot-option.selected .fa-chevron-right {
    opacity: 1;
}

.selected-date-display {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    margin-bottom: 1rem;
}

.selected-date-display h6 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Service Selection Dropdown */
#service-select {
    width: 100%;
    padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

#service-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#service-select:disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

#service-select optgroup {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

#service-select option {
    padding: 8px 12px;
    color: #212529;
}

/* Service Selection Container */
.mb-3 label.required::after {
    content: '';
}

.form-label.required {
    font-weight: 600;
    color: #495057;
}

.form-label.required .text-danger {
    margin-left: 4px;
}

/* Form text styling */
.form-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 6px;
}

/* Date Picker Styles */
#appointment-date {
    padding: 16px 20px !important;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    min-height: 50px !important;
    line-height: 1.5 !important;
    height: auto !important;
    box-sizing: border-box;
    width: 100%;
    display: block;
}

#appointment-date:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Slots Grid */
.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.slot-button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
}

.slot-button:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-1px);
}

.slot-button.selected {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.slot-button.selected:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Loading states */
#slots-loading {
    padding: 20px;
    text-align: center;
}

#no-slots-message {
    margin-top: 16px;
}

/* Available slots container */
#available-slots-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* Responsive adjustments for new layout */
@media (max-width: 768px) {
    .time-slot-option {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .time-slot-option .time-text {
        font-size: 16px;
    }
    
    .time-slots-list {
        gap: 12px;
    }
    
    .selected-date-display {
        padding: 16px;
    }
    
    #service-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    }
    
    .slot-button {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .slots-grid {
        gap: 8px;
    }
    
    #appointment-date {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 16px 20px;
        min-height: 50px;
    }
}
