﻿/* Modern Appointment Booking Page Styles */

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-primary: #2c3e50;
    --text-muted: #6c757d;
}

/* Global Styles */
body {
   min-height: 100vh;
}

.appointment-booking-container {
    min-height: 100vh;
}

/* Header Styles */
.booking-header {
    color: white;
    padding: 3rem 0;

}

.header-content {
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

/* Filters Card */
.filters-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.filters-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

.clinic-select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Service Filter */
.service-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.service-checkbox:hover {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.service-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Reset Button */
.btn-reset-filters {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--light-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-reset-filters:hover {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Clinics Section */
.clinics-section {
    margin-top: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clinics-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.clinic-card {
    min-height: 520px;
    max-width: 760px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .clinics-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .clinic-card {
        max-width: 760px;
    }
}

/* Clinic Card */
.clinic-card-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    width: 100%;
    position: relative;
}

.clinic-card {
    width: 100%;
    max-width: 760px;
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    flex: 1;
    min-width: 0;
    align-self: stretch;
}

.clinic-video-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 22;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 15, 42, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.clinic-video-hover-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.16), transparent 38%);
    filter: blur(8px);
}

.clinic-video-hover-overlay .glass-play-btn {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 40px rgba(59, 92, 234, 0.18);
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
}

.clinic-video-hover-overlay .glass-play-btn:hover,
.clinic-video-hover-overlay .glass-play-btn:focus {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 48px rgba(59, 92, 234, 0.28);
    outline: none;
}

.clinic-card:hover .clinic-video-hover-overlay,
.clinic-video-hover-overlay.show-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.clinic-card:hover .clinic-video-hover-overlay,
.clinic-video-hover-overlay:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.clinic-card-wrapper:hover .clinic-card,
.clinic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.clinic-card-side-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.9rem;
    align-items: center;
    width: 66px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 1.4rem;
    padding: 0.75rem 0.25rem;
    justify-content: flex-end;
    position: sticky;
    bottom: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.clinic-card-wrapper:hover .clinic-card-side-actions {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.96);
}

.clinic-card-side-actions .action-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #f1f5ff;
    color: #3b4cca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.clinic-card-side-actions .action-btn:nth-child(1) {
    background: #ff6b81;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(2) {
    background: #5f63f2;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(3) {
    background: #ff9f43;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(4) {
    background: #10b981;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(5) {
    background: #a855f7;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(6) {
    background: #0d6efd;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(7) {
    background: #6c757d;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.clinic-card-side-actions .action-btn.bookmarked {
    background: rgba(220, 53, 69, 0.18);
    color: #dc3545;
}

@media (min-width: 1200px) {
    .clinic-card-side-actions {
        display: flex;
    }
    .clinic-card-body,
    .clinic-card-footer {
        padding-right: 4.5rem;
    }
}

@media (max-width: 1199px) {
    .clinic-card-wrapper {
        flex-direction: column;
    }

    .clinic-card-side-actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .clinic-card-side-actions .action-btn {
        width: 42px;
        height: 42px;
    }

    .clinic-card-body,
    .clinic-card-footer {
        padding-right: 1.5rem;
    }
}

@media (max-width: 767px) {
    .clinic-card-side-actions {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(9, 19, 55, 0.16);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        padding: 0.85rem;
        border-radius: 2rem;
        gap: 0.55rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
        z-index: 30;
    }

    .clinic-card-wrapper:hover .clinic-card-side-actions,
    .clinic-card:hover + .clinic-card-side-actions {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .clinic-card-side-actions .action-btn {
        width: 46px;
        height: 46px;
    }

    .clinic-card {
        min-height: 520px;
    }

    .clinic-card-header {
        height: 220px;
    }
}

.clinic-card-header {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clinic-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-logo-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.clinic-card.video-active .tiktok-video-overlay,
.clinic-card.video-active .clinic-video-hover-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.clinic-card.video-active .clinic-logo {
    opacity: 0.18;
}

.clinic-video-hover-overlay.video-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 25 !important;
}

.clinic-video-player-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}

.clinic-video-player-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clinic-video-player-iframe,
.clinic-video-player-container video,
.clinic-video-player-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.clinic-video-play-pause-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 30;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.clinic-video-play-pause-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.clinic-video-player-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.clinic-video-player-close:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
}

.clinic-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-open {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

/* TikTok Video Overlay */
.tiktok-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.clinic-card-header:hover .tiktok-video-overlay {
    opacity: 1;
}

.tiktok-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

.tiktok-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.tiktok-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: white;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Clinic Card Body */
.clinic-card-body {
    padding: 1.5rem;
    flex: 1;
    border-radius: 24px 24px 0 0;
}

.clinic-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.clinic-location {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Staff Section */
.staff-section {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.staff-title,
.services-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.staff-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.staff-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.staff-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.staff-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
    text-transform: capitalize;
}

.staff-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.service-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.no-staff {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.75rem;
}

/* Services Section */
.services-section {
    margin-bottom: 0;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    background-color: var(--light-bg);
    font-size: 0.9rem;
}

.service-name {
    font-weight: 500;
    color: var(--text-primary);
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Clinic Card Footer */
.clinic-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.btn-book-clinic {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-book-clinic:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-book-clinic:active {
    transform: translateY(0);
}

/* No Clinics Message */
.no-clinics-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-clinics-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Booking Modal */
.modal-content {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.booking-info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: bold;
}

.form-control-lg {
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: var(--light-bg);
}

.doctor-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.doctor-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctor-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

/* Available Slots */
.available-slots-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.slot-button {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.slot-button:hover:not(:disabled) {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.slot-button.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
}

.slot-button:disabled {
    background-color: #e9ecef;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Patient Details Section */
.patient-details-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Form Check */
.form-check {
    padding-left: 2rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: -2rem;
    cursor: pointer;
    border: 1.5px solid var(--border-color);
    accent-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Modal Footer */
.modal-footer {
    padding: 0.5rem;
    background-color: var(--light-bg);
    border-radius: 0 0 1.25rem 1.25rem;
    display: flex-column;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e9ecef;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .clinics-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .filters-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }

    .clinics-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .booking-header {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .filters-card {
        padding: 1.5rem;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .modal-dialog-scrollable {
        max-height: 100vh;
    }
}

/* Scrollbar Styles */
.staff-list::-webkit-scrollbar,
.services-list::-webkit-scrollbar {
    width: 6px;
}

.staff-list::-webkit-scrollbar-track,
.services-list::-webkit-scrollbar-track {
    background: transparent;
}

.staff-list::-webkit-scrollbar-thumb,
.services-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.staff-list::-webkit-scrollbar-thumb:hover,
.services-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clinic-card {
    animation: slideInUp 0.5s ease-out;
}

/* ========================================
   Top Page Service Carousel Section
   ======================================== */

.services-carousel-section {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.services-carousel-wrapper {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.services-carousel-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Instagram-Style Service Carousel
   ======================================== */

.service-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-carousel {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 1rem;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    justify-content: center;
}

/* Hide scrollbar while keeping functionality */
.service-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.service-story-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0.8;
}

.service-story-tab:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.08);
}

.service-story-tab.selected {
    opacity: 1;
}

/* Circular Service Container */
.service-circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-story-tab:hover .service-circle-container {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-story-tab.selected .service-circle-container {
    background: white;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Service Circle Image */
.service-circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Placeholder Icon */
.service-circle-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-size: 3rem;
}

/* Circle Ring (Instagram-like border) */
.service-circle-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: none;
    background: conic-gradient(from 0deg, #667eea 0deg, #764ba2 180deg, rgba(255, 255, 255, 0) 180deg);
}

.service-story-tab:hover .service-circle-ring {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.service-story-tab.selected .service-circle-ring {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Service Info */
.service-story-info {
    text-align: center;
    width: 140px;
}

.service-story-name {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
}

.service-story-price {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
    left: -1rem;
}

.carousel-nav-next {
    right: -1rem;
}

/* Media Queries - Carousel Navigation */
@media (max-width: 768px) {
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-nav-prev {
        left: -0.5rem;
    }

    .carousel-nav-next {
        right: -0.5rem;
    }
}

/* Responsive Adjustments for Service Carousel */
@media (max-width: 992px) {
    .services-carousel-section {
        padding: 2.5rem 0;
        margin-bottom: 1.5rem;
    }

    .services-carousel-wrapper {
        padding: 0 1rem;
    }

    .services-carousel-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-circle-container {
        width: 120px;
        height: 120px;
    }

    .service-circle-placeholder {
        font-size: 2.5rem;
    }

    .service-story-info {
        width: 120px;
    }

    .service-story-name {
        font-size: 0.9rem;
    }

    .service-story-price {
        font-size: 0.8rem;
    }

    .service-carousel {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-carousel-section {
        padding: 2rem 0;
        margin-bottom: 1rem;
    }

    .services-carousel-wrapper {
        padding: 0 0.5rem;
    }

    .services-carousel-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .service-circle-container {
        width: 100px;
        height: 100px;
    }

    .service-circle-placeholder {
        font-size: 2rem;
    }

    .service-story-info {
        width: 100px;
    }

    .service-story-name {
        font-size: 0.8rem;
    }

    .service-story-price {
        font-size: 0.75rem;
    }

    .service-carousel {
        gap: 1.5rem;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .services-carousel-section {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }

    .services-carousel-wrapper {
        padding: 0 0.25rem;
    }

    .services-carousel-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .services-carousel-title i {
        font-size: 1.5rem;
    }

    .service-circle-container {
        width: 85px;
        height: 85px;
    }

    .service-circle-placeholder {
        font-size: 1.75rem;
    }

    .service-circle-ring {
        border-width: 2px;
    }

    .service-story-info {
        width: 85px;
    }

    .service-story-name {
        font-size: 0.75rem;
        margin: 0 0 0.25rem 0;
    }

    .service-story-price {
        font-size: 0.65rem;
    }

    .service-carousel {
        gap: 1rem;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .carousel-nav-prev {
        left: -0.25rem;
    }

    .carousel-nav-next {
        right: -0.25rem;
    }
}

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .service-circle-container {
        width: 90px;
        height: 90px;
    }

    .service-circle-placeholder {
        font-size: 1.75rem;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .service-carousel-wrapper {
        gap: 0.75rem;
    }

    .service-carousel {
        gap: 1rem;
        padding: 0.75rem 0;
    }
}

/* Animation for service selection */
@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.service-story-tab {
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.service-story-tab.selected .service-circle-container {
    animation: pulse-ring 1.5s infinite;
}
/* TikTok Video Modal */
.tiktok-video-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.tiktok-video-modal {
    position: relative;
    background: #000;
    border-radius: 1.5rem;
    padding: 1.5rem;
    max-width: 600px;
    width: 90vw;
    max-height: 85vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease-out;
    overflow: hidden;
}

.tiktok-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-clinic-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tiktok-clinic-name i {
    color: #00f7ef;
    font-size: 1.3rem;
}

.tiktok-video-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tiktok-video-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tiktok-video-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 1rem;
    overflow: auto;
}

.tiktok-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ============================================
   CLINIC BOTTOM SHEET STYLES
   ============================================ */

/* Bottom Sheet Overlay */
.clinic-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clinic-sheet-overlay.active {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Sheet Container */
.clinic-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 30px;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -2px 30px rgba(0, 0, 0, 0.15);
}

.clinic-bottom-sheet.active {
  transform: translateY(0);
}

/* Drag Handle */
.clinic-sheet-handle {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* Sheet Content */
.clinic-sheet-content {
  max-width: 100%;
}

/* Clinic Header */
.clinic-sheet-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.clinic-sheet-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(85, 110, 230, 0.1);
}

.clinic-sheet-info {
  flex: 1;
}

.clinic-sheet-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.clinic-sheet-location {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Action Buttons */
.clinic-sheet-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.clinic-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.clinic-profile-btn {
  background: linear-gradient(135deg, #556ee6 0%, #2f80ed 100%);
  box-shadow: 0 4px 15px rgba(85, 110, 230, 0.3);
}

.clinic-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 110, 230, 0.4);
}

.clinic-profile-btn:active {
  transform: translateY(0);
}

.clinic-book-btn {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.clinic-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}

.clinic-book-btn:active {
  transform: translateY(0);
}

.clinic-action-btn i {
  font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .clinic-bottom-sheet {
    padding: 12px 16px 20px;
  }

  .clinic-sheet-header {
    gap: 12px;
  }

  .clinic-sheet-image {
    width: 70px;
    height: 70px;
  }

  .clinic-sheet-name {
    font-size: 1.1rem;
  }

  .clinic-action-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
}
