/* ============================================
   Diamond Medical Clinics - Booking Page Styles
   Version 4.0 - Single Page Layout (No Modal)
   ============================================ */

/* ============================================
   Force Light Theme
   ============================================ */
:root {
    color-scheme: light only;
}

html {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
    }
    body {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
}

/* ============================================
   Page Layout
   ============================================ */
.booking-section {
    min-height: calc(100vh - 80px);
    padding: 150px 0 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a4b8c;
    margin: 0 0 12px 0;
}

.booking-header p {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0;
}

/* ============================================
   Main Container - Sidebar + Content
   ============================================ */
.booking-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ============================================
   Departments Sidebar
   ============================================ */
.departments-sidebar {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    padding: 20px;
    color: white;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 i {
    color: #d4af37;
}

.day-filter-wrapper {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.day-filter {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    color: #1a4b8c;
    border: none;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a4b8c'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 011.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 18px;
}

.day-filter:focus {
    outline: 2px solid #d4af37;
    outline-offset: 1px;
}

[dir="ltr"] .day-filter {
    padding: 8px 12px 8px 32px;
    background-position: right 10px center;
}

.doctor-filter-section {
    margin-top: 12px;
}

.doctor-direct-filter {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    color: #1a4b8c;
    border: none;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a4b8c'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 011.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 18px;
}

.doctor-direct-filter:focus {
    outline: 2px solid #d4af37;
    outline-offset: 1px;
}

[dir="ltr"] .doctor-direct-filter {
    padding: 8px 12px 8px 32px;
    background-position: right 10px center;
}

.departments-menu {
    list-style: none;
    padding: 12px;
    margin: 0;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.departments-menu li {
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-weight: 500;
}

.departments-menu li:last-child {
    margin-bottom: 0;
}

.departments-menu li:hover {
    background: #f0f7ff;
    color: #1a4b8c;
}

.departments-menu li.active {
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    color: white;
}

.departments-menu li i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.departments-menu li .dept-name {
    flex: 1;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.departments-menu li .dept-count {
    order: -1;
    background: rgba(26, 75, 140, 0.1);
    color: #1a4b8c;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.departments-menu li.active .dept-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.departments-menu li.no-data,
.departments-menu li.error {
    justify-content: center;
    color: #9ca3af;
    cursor: default;
}

.departments-menu li.error {
    color: #ef4444;
}

/* ============================================
   Doctors Content Area
   ============================================ */
.doctors-content {
    flex: 1;
    min-width: 0;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.content-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a4b8c;
}

.content-header .doctor-count {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   Doctors Carousel
   ============================================ */
.doctors-carousel-wrapper {
    position: relative;
    width: 100%;
    border: 2px solid #1a4ba0;
    border-radius: 15px;
    padding: 20px 60px;
    overflow: visible;
    background: #fff;
}

.doctors-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.doctors-carousel::-webkit-scrollbar {
    display: none;
}

.doctors-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    padding: 10px 5px;
}

.doctors-grid .doctor-card-v2 {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 340px;
    scroll-snap-align: start;
}

.doctors-grid .loading,
.doctors-grid .no-data,
.doctors-grid .empty-state {
    flex: 1;
    min-width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.doctors-grid .no-data {
    background: #f9fafb;
    border-radius: 12px;
}

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #1a4ba0;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(26, 75, 160, 0.3);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 75, 160, 0.4);
    background: #0d2d6b;
}

.carousel-nav:disabled {
    opacity: 1;
    cursor: pointer;
    transform: translateY(-50%);
    pointer-events: auto;
}

.carousel-nav i {
    font-size: 1.25rem;
}

.carousel-nav-right {
    right: 0;
}

.carousel-nav-left {
    left: 0;
}

.carousel-nav.hidden {
    display: flex !important;
    opacity: 1 !important;
}

/* Responsive Carousel */
@media (max-width: 1200px) {
    .doctors-grid .doctor-card-v2 {
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    .doctors-carousel-wrapper {
        padding: 15px 50px;
    }

    .doctors-grid .doctor-card-v2 {
        flex: 0 0 100%;
        min-width: 280px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav i {
        font-size: 1rem;
    }

    .carousel-nav-right {
        right: 5px;
    }

    .carousel-nav-left {
        left: 5px;
    }
}

@media (max-width: 480px) {
    .doctors-carousel-wrapper {
        padding: 10px 45px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .carousel-nav-right {
        right: 5px;
    }

    .carousel-nav-left {
        left: 5px;
    }
}

/* ============================================
   Doctor Card V2 - Simple Layout
   ============================================ */
.doctor-card-v2 {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border: 3px solid #1a4ba0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Card Header */
.doctor-card-v2 .card-header {
    background: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1a4ba0;
}

.doctor-card-v2 .logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-card-v2 .logo-section img {
    width: 35px;
    height: 35px;
}

.doctor-card-v2 .logo-section h2 {
    color: #1a4ba0;
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.doctor-card-v2 .dmc-badge {
    color: #d4af37;
    font-size: 18px;
    font-weight: 800;
}

/* Card Body - Photo and Info */
.doctor-card-v2 .card-body {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    background: #fff;
    flex: 1;
}

.doctor-card-v2 .doctor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9ecef;
}

.doctor-card-v2 .content-section {
    flex: 1;
}

.doctor-card-v2 .doctor-name {
    font-size: 18px;
    font-weight: 800;
    color: #1a4ba0;
    margin: 0 0 8px 0;
}

.doctor-card-v2 .bio-list {
    font-size: 12px;
    color: #333;
    line-height: 1.7;
}

.doctor-card-v2 .bio-list p {
    margin: 0 0 4px 0;
}

.doctor-card-v2 .bio-list p::before {
    content: '• ';
    color: #1a4ba0;
    font-weight: bold;
}

/* Card Footer - Price and Book Button */
.doctor-card-v2 .card-footer {
    display: flex;
    overflow: hidden;
    margin-top: auto;
}

.doctor-card-v2 .fee-section {
    flex: 1;
    background: #d4af37;
    padding: 15px;
    text-align: center;
    color: #1a4ba0;
}

.doctor-card-v2 .fee-label {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.doctor-card-v2 .fee-amount {
    font-size: 20px;
    font-weight: 800;
    display: block;
}

.doctor-card-v2 .fee-row + .fee-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(26, 75, 160, 0.2);
}

.doctor-card-v2 .book-section {
    flex: 1;
    background: #1a4ba0;
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-card-v2 .book-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctor-card-v2 .book-btn:hover {
    background: #fff;
    color: #1a4ba0;
}

/* Doctor Card V2 - Responsive */
@media (max-width: 600px) {
    .doctor-card-v2 .card-body {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .doctor-card-v2 .doctor-photo {
        width: 100px;
        height: 100px;
    }

    .doctor-card-v2 .doctor-name {
        text-align: center;
    }

    .doctor-card-v2 .bio-list {
        text-align: right;
    }

    .doctor-card-v2 .book-btn {
        padding: 6px 16px;
        font-size: 14px;
    }

    .doctor-card-v2 .fee-amount {
        font-size: 16px;
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.empty-state i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

.empty-state p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.empty-state.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.empty-state.error i {
    color: #ef4444;
}

/* ============================================
   Booking Form Section (Inline - No Modal)
   ============================================ */
.booking-form-section {
    margin-top: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

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

/* Form Header */
.form-header {
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.selected-doctor-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.selected-doctor-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    object-fit: cover;
}

.selected-doctor-info h3 {
    color: white;
    margin: 0 0 4px 0;
    font-size: 1.25rem;
}

.selected-doctor-info p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.875rem;
}

/* Booking Form */
.booking-form {
    padding: 30px;
}

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

.booking-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a4b8c;
    margin-bottom: 10px;
    font-size: 1rem;
}

.booking-form label i {
    color: #d4af37;
}

.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="number"],
.booking-form input[type="date"],
.booking-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.booking-form input:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #1a4b8c;
    box-shadow: 0 0 0 4px rgba(26, 75, 140, 0.1);
}

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

/* Available Days Grid */
.available-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.available-days-grid .hint {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 0;
}

.available-days-grid .loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #1a4b8c;
}

.day-btn {
    padding: 16px 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.day-btn:hover:not(.full):not(.selected) {
    border-color: #1a4b8c;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.day-btn.selected {
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    border-color: #1a4b8c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 75, 140, 0.3);
}

.day-btn.full {
    background: #fef2f2;
    border-color: #fecaca;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.8;
}

.day-btn .day-name {
    font-weight: 700;
    font-size: 1rem;
}

.day-btn .day-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.day-btn .working-hours {
    font-size: 0.75rem;
    color: #1a4b8c;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.day-btn .working-hours i {
    font-size: 0.7rem;
    opacity: 0.85;
}

.day-btn.selected .working-hours {
    color: white;
    opacity: 0.95;
}

.day-btn.full .working-hours {
    color: #9ca3af;
}

.day-btn .availability {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 4px;
}

.day-btn:not(.full):not(.selected) .availability {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-weight: 500;
}

.day-btn.selected .availability {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.day-btn.full .availability {
    background: #dc2626;
    color: white;
    font-weight: 600;
}

/* Estimated Time Box */
.estimated-time-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

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

.estimated-time-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.estimated-time-icon i {
    font-size: 1.5rem;
    color: white;
}

.estimated-time-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.estimated-time-label {
    font-size: 0.9rem;
    color: #0369a1;
    font-weight: 500;
}

.estimated-time-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c4a6e;
}

/* File Upload Area */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #1a4b8c;
    background: #f0f7ff;
}

.file-upload-area.dragover {
    border-color: #1a4b8c;
    background: #e0edff;
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.upload-placeholder p {
    color: #374151;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.upload-placeholder span {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* File Preview */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .pdf-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.file-preview-item .pdf-icon i {
    font-size: 2rem;
    margin-bottom: 4px;
}

.file-preview-item .pdf-icon span {
    font-size: 0.7rem;
    color: #6b7280;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 90%;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.file-preview-item:hover .remove-file {
    opacity: 1;
}

/* Visit Type Options */
.visit-type-options {
    display: flex;
    gap: 16px;
}

.visit-type-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.visit-type-option:hover {
    border-color: #1a4b8c;
    background: #f0f7ff;
}

.visit-type-option.selected {
    border-color: #1a4b8c;
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    color: white;
}

.visit-type-option input[type="radio"] {
    display: none;
}

.visit-type-option .option-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #f0f7ff;
    color: #1a4b8c;
    transition: all 0.3s ease;
}

.visit-type-option.selected .option-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.visit-type-option .option-text {
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .visit-type-options {
        flex-direction: column;
    }

    .visit-type-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px;
    }

    .visit-type-option .option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Gender Options */
.gender-options {
    display: flex;
    gap: 16px;
}

.gender-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.gender-option:hover {
    border-color: #1a4b8c;
    background: #f0f7ff;
}

.gender-option:has(input:checked) {
    border-color: #1a4b8c;
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    color: white;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-option .option-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #f0f7ff;
    color: #1a4b8c;
    transition: all 0.3s ease;
}

.gender-option:has(input:checked) .option-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gender-option .option-text {
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .gender-options {
        flex-direction: column;
    }

    .gender-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px;
    }

    .gender-option .option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 75, 140, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Success Message
   ============================================ */
.booking-success {
    margin-top: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.booking-success .success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.booking-success .success-icon i {
    font-size: 3rem;
    color: white;
}

.booking-success h2 {
    color: #1a4b8c;
    font-size: 1.75rem;
    margin: 0 0 12px 0;
}

.booking-success > p {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0 0 24px 0;
}

.success-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: right;
}

.success-details .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.success-details .detail-item:last-child {
    border-bottom: none;
}

.success-details .detail-label {
    color: #6b7280;
}

.success-details .detail-value {
    font-weight: 600;
    color: #374151;
}

.success-details .detail-item.estimated-time {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0edff 100%);
    margin: 10px -20px;
    padding: 15px 20px;
    border-radius: 8px;
}

.success-details .detail-value.highlight {
    color: #1a4b8c;
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, #1a4b8c 0%, #2563eb 100%);
    color: white;
    border: none;
}

.success-actions .btn-outline {
    background: white;
    color: #1a4b8c;
    border: 2px solid #1a4b8c;
}

.success-actions .btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 700px) {
    .booking-container {
        flex-direction: column;
    }

    .departments-sidebar {
        width: 100%;
        position: static;
    }

    .departments-menu {
        display: flex;
        gap: 10px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .departments-menu li {
        flex-shrink: 0;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .booking-header h1 {
        font-size: 1.75rem;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .booking-form {
        padding: 20px;
    }

    .available-days-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .file-upload-area {
        padding: 20px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
