/* Modern Booking Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Root Variables - Matching index.php Premium Style */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E85D2F;
    --primary-light: #FFE4DB;
    --secondary-color: #1A1F36;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --text-primary: #1A1F36;
    --text-secondary: #6B7280;
    --light-bg: #F9FAFB;
    --bg-secondary: #F3F4F6;
    --gradient: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-dark: linear-gradient(135deg, #1A1F36 0%, #2D3561 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General Body Styling */
body {
    background-color: var(--light-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Container Enhancements */
.container-fluid {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Navigation Styling */
.d-flex {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    align-items: center;
}

.d-flex h4 {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.5rem;
}

.d-flex a {
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.d-flex a:hover {
    background-color: var(--primary-light);
    transform: translateX(-3px);
}

/* Carousel Styling */
.carousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.carousel-inner {
    border-radius: var(--border-radius);
}

.carousel-item img {
    object-fit: cover;
    height: 350px !important;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 30px;
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-caption h3 {
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Date Section - Compact Premium Design */
.row.align-self-center {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    overflow: visible;
    border: 1px solid #E5E7EB;
    position: relative;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    height: 70px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all var(--transition);
}

.row.align-self-center:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

/* Left side - Date Label */
.row.align-self-center h4 {
    background: transparent;
    color: var(--text-primary);
    padding: 0 25px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 120px;
    border-right: 1px solid #E5E7EB;
    height: 100%;
}

/* Add icon for date label */
.row.align-self-center h4::before {
    content: '📅';
    display: inline-block;
    font-size: 18px;
}

/* Date Input Container */
.row.align-self-center .col.text-center {
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: transparent;
    border-radius: 0;
    position: relative;
    flex-direction: row;
    gap: 15px;
    height: 100%;
}

/* Remove helper text on desktop */
.row.align-self-center .col.text-center::after {
    display: none;
}

/* Remove the calendar icon from container */
.row.align-self-center .col.text-center::before {
    display: none;
}

/* Date Input Styling - Compact Premium */
#datetimeis {
    border: 2px solid #E5E7EB;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    background: #F9FAFB;
    box-shadow: none;
    border-radius: 8px;
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
    position: relative;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    text-decoration: none;
}

/* Add calendar/edit icon after date */
#datetimeis::after {
    content: '✏️';
    font-size: 14px;
    opacity: 0.6;
    transition: var(--transition);
}

#datetimeis:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

#datetimeis:hover::after {
    opacity: 1;
}

#datetimeis:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: white;
}

/* Calendar Icon for Date Input */
#datetimeis::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

/* Time Display */
.bi-clock-history {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Time Period Header - Premium Style */
.row:has(.scrollmenu22) > div:first-child {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #E5E7EB;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

/* Time Slot Container - Premium Design */
.scrollmenu22 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px;
    background: white;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 25px;
    position: relative;
    max-width: 100%;
}

/* Large screens - optimize grid layout */
@media (min-width: 1200px) {
    .scrollmenu22 {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 25px;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .scrollmenu22 {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Add subtle pattern background */
.scrollmenu22::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Mobile Time Slots Grid - Premium */
@media (max-width: 768px) {
    .scrollmenu22 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 15px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        white-space: normal !important;
        overflow-x: visible !important;
    }
    
    .row:has(.scrollmenu22) > div:first-child {
        margin: 0;
        border-radius: 0;
        padding: 15px;
        background: transparent;
        border-bottom: 1px solid #E5E7EB;
    }
    
    /* Ensure full width */
    .scrollmenu22 a {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }
}

/* Time Slot Buttons - Premium Design */
.scrollmenu22 .btn {
    width: 100% !important;
    min-width: auto !important;
    padding: 14px 12px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: 1px solid #E5E7EB !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: flex !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    background: white !important;
    line-height: 1.4 !important;
    height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure buttons stay in grid on large screens */
@media (min-width: 1200px) {
    .scrollmenu22 .btn {
        font-size: 16px !important;
        height: 55px !important;
        padding: 16px 14px !important;
    }
}

/* Ripple effect on click */
.scrollmenu22 .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.scrollmenu22 .btn:active::after {
    width: 300px;
    height: 300px;
}

/* Mobile specific time slot styling */
@media (max-width: 768px) {
    .scrollmenu22 .btn {
        padding: 22px 10px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px !important;
        height: auto !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        /* Force square shape */
        aspect-ratio: auto !important;
        border-radius: 12px !important;
    }
    
    /* Override any Bootstrap rounded classes */
    .scrollmenu22 .btn.rounded-pill,
    .scrollmenu22 .btn.rounded-circle {
        border-radius: 12px !important;
    }
}

/* Available Slots - Premium Design */
.scrollmenu22 .btn-success {
    background: #10B981 !important;
    color: white !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    border: 1px solid #10B981 !important;
    border-radius: 8px !important;
}

.scrollmenu22 .btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.scrollmenu22 .btn-success:active {
    transform: translateY(-1px);
}

/* Booked Slots - Premium Design */
.scrollmenu22 .btn-danger {
    background: #FAFAFA;
    color: #6B7280;
    cursor: not-allowed;
    position: relative;
    border: 2px solid #F3F4F6;
}

.scrollmenu22 .btn-danger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #E5E7EB;
    transform: rotate(-45deg);
}

/* Pending Slots - Premium Design */
.scrollmenu22 .btn-warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    border: 2px solid #FDE68A;
    font-weight: 500;
}

/* Ended Slots - Premium Design */
.scrollmenu22 .btn.text-dark {
    background: #F9FAFB;
    color: #9CA3AF !important;
    cursor: not-allowed;
    border: 2px solid #E5E7EB;
    opacity: 0.6;
}

/* Mobile specific states */
@media (max-width: 768px) {
    .scrollmenu22 .btn-success {
        box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
    }
    
    .scrollmenu22 .btn-success:active {
        box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
    }
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background-color: #ffffff;
}

.modal-header {
    background: var(--gradient);
    color: white;
    border-radius: 0;
    padding: 24px 30px;
    border: none;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 1.5rem;
    transition: var(--transition);
}

.modal-header .close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 40px;
    background-color: #ffffff;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* Form Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #E85D2F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: #95a5a6;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
}

/* Alert Styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
    font-weight: 500;
}

.alert-danger {
    background-color: #fee;
    color: var(--danger-color);
}

/* Section Headers */
h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .carousel-item img {
        height: 250px !important;
    }
    
    .d-flex h4 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* Time display on mobile */
    .bi-clock-history {
        display: inline-block;
        margin-right: 5px;
    }
    
    /* Section headers on mobile */
    h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Date section on mobile */
    .row.align-self-center {
        margin: 0 10px 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        flex-direction: column !important;
        min-height: auto;
    }
    
    .row.align-self-center h4 {
        font-size: 16px;
        padding: 15px 20px;
        justify-content: center;
        min-width: 100%;
        border-radius: 12px 12px 0 0;
    }
    
    .row.align-self-center .col.text-center {
        padding: 20px;
        border-radius: 0 0 12px 12px;
        min-height: 60px;
    }
    
    #datetimeis {
        font-size: 17px;
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        min-width: auto;
    }
    
    /* Adjust helper text on mobile */
    .row.align-self-center .col.text-center::after {
        font-size: 11px;
        bottom: 5px;
    }
    
    /* Hide desktop calendar icon on mobile */
    #datetimeis::before {
        display: none;
    }
    
    /* Time period styling on mobile */
    .bi-clock-history {
        font-size: 18px;
        color: var(--primary-color);
    }
    
    /* Smooth scrolling for time slots */
    .scrollmenu22 {
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading Animation */
.btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Custom Scrollbar */
.scrollmenu22::-webkit-scrollbar {
    height: 8px;
}

.scrollmenu22::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollmenu22::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.scrollmenu22::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

.modal.show .modal-dialog {
    animation: fadeIn 0.3s ease-out;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.5px;
}

p {
    line-height: 1.6;
    color: #555;
}

/* Terms Checkbox */
.form-check {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 8px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Additional Enhancements */
.badge {
    padding: 5px 12px;
    font-weight: 600;
    border-radius: 20px;
}

/* Tooltip Styling */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Form Input Group Styling */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group-prepend {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--primary-color);
}

.input-group .form-control {
    padding-left: 60px;
    height: 50px;
    font-size: 16px;
}

.input-group svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Select Dropdown Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

/* Discount Code Section */
.btn.border-white {
    background-color: #fff;
    border: 2px solid #e0e0e0 !important;
    padding: 15px 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    font-weight: 500;
}

.btn.border-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

/* Form Validation States */
.form-control:valid {
    border-color: var(--success-color);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
}

/* Small Help Text */
small.form-text {
    font-size: 13px;
    margin-top: 5px;
    display: block;
    color: #6c757d;
}

/* Success Message Styling */
.alert {
    animation: fadeIn 0.5s ease-out;
    margin-top: 20px;
}

.alert strong {
    font-weight: 700;
}

/* Payment Button */
.btn-success.btn-lg {
    background: var(--gradient);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: var(--transition);
}

.btn-success.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #E85D2F 100%);
}

/* Countdown Timer */
#ten-countdown {
    background-color: var(--primary-light);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    color: var(--primary-dark);
}

/* WhatsApp Button */
a[href^="whatsapp://"] img {
    transition: var(--transition);
}

a[href^="whatsapp://"] img:hover {
    transform: scale(1.1);
}

/* Modal Footer */
.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    background-color: #f8f9fa;
}

/* Icon Improvements */
.bi {
    vertical-align: middle;
}

/* Form Control Focus Animation */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-2px);
}

/* Number Input - Remove Spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Placeholder Styling */
.form-control::placeholder {
    color: #999;
    opacity: 1;
}

/* RTL Support for Arabic */
[dir="rtl"] .input-group-prepend {
    left: auto;
    right: 15px;
}

[dir="rtl"] .input-group .form-control {
    padding-left: 15px;
    padding-right: 60px;
}

[dir="rtl"] select.form-control {
    background-position: left 15px center;
}

/* Duration Select Dropdown */
#exampleFormControlSelect1 {
    height: 56px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #10B981;
    color: var(--text-primary);
    background-color: #F0FDF4;
    border-radius: 12px;
    padding: 0 20px;
}

#exampleFormControlSelect1:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    outline: none;
}

/* Enhance select dropdown arrow */
select#exampleFormControlSelect1 {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
}

/* Terms Checkbox Container */
.form-check {
    margin: 30px 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom checkbox style */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-right: 10px;
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

/* Modal Footer Buttons */
.modal-footer {
    border-top: none;
    padding: 0 40px 40px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-footer .btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: none;
}

/* Confirm Button - Primary */
.modal-footer .btn-primary,
button[type="submit"],
.btn-success.btn-block {
    background: var(--gradient) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15) !important;
    border: none !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
}

/* Remove shimmer effect for cleaner look */

.modal-footer .btn-primary:hover,
button[type="submit"]:hover,
.btn-success.btn-block:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.3) !important;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #E85D2F 100%) !important;
}

/* Active state for primary button */
.modal-footer .btn-primary:active,
button[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2) !important;
}

/* Focus state for accessibility */
.modal-footer .btn-primary:focus,
button[type="submit"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2) !important;
}

/* Close Button - Secondary with better contrast */
.modal-footer .btn-secondary,
button[data-dismiss="modal"]:not(.close) {
    background-color: #6B7280 !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
}

.modal-footer .btn-secondary:hover,
button[data-dismiss="modal"]:not(.close):hover {
    background-color: #4B5563 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Active state for secondary button */
.modal-footer .btn-secondary:active,
button[data-dismiss="modal"]:not(.close):active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Focus state for secondary button */
.modal-footer .btn-secondary:focus,
button[data-dismiss="modal"]:not(.close):focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.2) !important;
}

/* Ensure proper button ordering - Confirm first */
.modal-footer {
    flex-direction: column-reverse;
}

/* Remove icon from confirm button for cleaner look */
.modal-footer .btn-primary::after,
button[type="submit"]::after {
    display: none;
}

/* Modal Close X Button */
.modal-header .close {
    color: white;
    opacity: 0.9;
    font-size: 28px;
    font-weight: 300;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

/* Duration Icon Styling */
.form-group center svg {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Modal Dialog Enhancement */
.modal-dialog {
    max-width: 500px;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(-50px);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Input Focus States */
input:focus,
select:focus {
    outline: none;
}

/* Ensure proper spacing for all form elements */
.form-group:last-of-type {
    margin-bottom: 0;
}

/* Professional spacing between modal sections */
.modal-body .form-group + .form-group {
    margin-top: 25px;
}

/* Improved Modal Backdrop */
.modal-backdrop {
    background-color: rgba(26, 31, 54, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Professional form styling */
.modal-body {
    font-size: 16px;
    line-height: 1.5;
}

/* Duration label styling */
.form-group center {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Make modal more professional on desktop */
@media (min-width: 768px) {
    .modal-dialog {
        margin-top: 80px;
    }
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-footer {
        padding: 0 25px 25px;
    }
}

/* Time Period Section Styling */
.row:has(.scrollmenu22) {
    margin-bottom: 0;
}

/* Clean time period header */
.bi-clock-history + text,
.row > div > svg + text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 16px;
}

/* Mobile Time Slots Container */
@media (max-width: 768px) {
    /* Remove extra spacing */
    .row.mb-2 {
        margin-bottom: 0 !important;
    }
    
    /* Clean section dividers */
    hr {
        margin: 20px 0;
        border-color: #E5E7EB;
    }
    
    /* Time period header styling */
    .row > .col-lg-12 {
        padding: 0 15px;
    }
    
    /* Ensure proper button alignment */
    .scrollmenu22 a {
        text-decoration: none;
    }
}

/* Focus states for accessibility */
.scrollmenu22 .btn:focus {
    outline: 3px solid rgba(255, 107, 53, 0.3);
    outline-offset: 2px;
}

/* Selected time slot animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    }
}

.scrollmenu22 .btn-success:focus {
    animation: pulse 2s infinite;
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scrollmenu22 {
    animation: fadeIn 0.3s ease-out;
}

/* Clean hover state */
.scrollmenu22 .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile tap feedback */
@media (max-width: 768px) {
    .scrollmenu22 .btn:active {
        transform: scale(0.95);
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --card-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    }
    
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .modal-content {
        background-color: #1e1e1e;
    }
}

/* Force proper grid layout on all screen sizes */
.scrollmenu22 {
    display: grid !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* Ensure links don't break grid */
.scrollmenu22 a {
    display: block !important;
    text-decoration: none !important;
}

/* Desktop grid layout */
@media (min-width: 769px) {
    .scrollmenu22 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

/* CRITICAL: Force rectangular time slots on mobile - Override ALL other styles */
@media (max-width: 768px) {
    /* Force grid layout */
    .scrollmenu22 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* Force rectangular buttons */
    .scrollmenu22 a.btn,
    .scrollmenu22 .btn,
    .scrollmenu22 button {
        /* Remove any circular styling */
        border-radius: 12px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 70px !important;
        padding: 20px 10px !important;
        
        /* Override any Bootstrap classes */
        -webkit-border-radius: 12px !important;
        -moz-border-radius: 12px !important;
        -ms-border-radius: 12px !important;
        -o-border-radius: 12px !important;
    }
    
    /* Specifically target success buttons */
    .scrollmenu22 .btn-success,
    .scrollmenu22 .btn.btn-success {
        border-radius: 12px !important;
        background-color: #10B981 !important;
        border: 2px solid #10B981 !important;
    }
    
    /* Override Bootstrap's rounded-pill class if applied */
    .scrollmenu22 .rounded-pill {
        border-radius: 12px !important;
    }
    
    /* Override Bootstrap's rounded-circle class if applied */
    .scrollmenu22 .rounded-circle {
        border-radius: 12px !important;
    }
}