/* Booking Page Styles */
:root {
    --primary: #0058EA;
    --success: #09B96D;
    --dark: #07060D;
    --body-color: #4D5154;
    --light-bg: #F8FAFC;
    --border-color: #E5E9EF;
}

.booking-section {
    padding: 140px 0 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, #F3F9FF 0%, #FFFFFF 100%);
}

/* Booking Card */
.booking-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Booking Form Styles */
.booking-form {
    padding: 2.5rem;
}

.booking-form-header h2 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.booking-form-header p {
    color: var(--body-color);
    font-size: 0.95rem;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control {
    padding: 1rem;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.form-floating > label {
    padding: 1rem;
    color: #6B7280;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 88, 234, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #004AD6;
    transform: translateY(-2px);
}

/* Slots Section Styles */
.slots-section {
    background: var(--dark);
    padding: 2.5rem;
    height: 100%;
    color: #FFFFFF;
}

.slots-header {
    margin-bottom: 2rem;
}

.slots-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.date-picker-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.date-picker-wrapper {
    position: relative;
}

.date-picker-wrapper input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 0.75rem;
}

.selected-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    color: var(--success);
    font-weight: 500;
}

.slots-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.slots-container::-webkit-scrollbar {
    width: 4px;
}

.slots-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.slots-container::-webkit-scrollbar-thumb {
    background: var(--success);
    border-radius: 2px;
}

.initial-message {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.initial-message i {
    font-size: 2.5rem;
    color: var(--success);
    margin-bottom: 1rem;
    display: block;
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.slot-item.selected {
    background: var(--success);
}

.slot-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slot-time i {
    color: var(--success);
    font-size: 1rem;
}

.slot-item.selected .slot-time i {
    color: #FFFFFF;
}

.slot-status {
    opacity: 0;
    transition: opacity 0.2s;
}

.slot-item.selected .slot-status {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .booking-section {
        padding: 100px 0 40px;
    }
    
    .booking-form, .slots-section {
        padding: 1.5rem;
    }

    .booking-card .row {
        flex-direction: column-reverse;
    }

    .booking-form {
        display: flex;
        flex-direction: column;
    }

    .booking-form form {
        display: flex;
        flex-direction: column;
    }

    .btn-submit {
        order: 999; /* Forces the button to the end */
        margin-top: 1.5rem;
    }

    .form-text {
        order: 1000; /* Places the terms text after the button */
        margin-top: 1rem;
    }

    .slots-section {
        border-radius: 12px 12px 0 0;
        margin-bottom: 1rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}