/* ========================================
   Sri Sheshashayi Multispeciality Dental Clinic
   Main Stylesheet - Organized by Section
   ======================================== */

/* ==========================================
   1. RESET & VARIABLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0F6CBF;
    --dark-blue: #0B5394;
    --maroon: #8B1E3F;
    --white: #FFFFFF;
    --light-gray: #F5F8FC;
    --gray: #6B7280;
    --dark-gray: #1F2937;
    --shadow: 0 10px 40px rgba(15, 108, 191, 0.1);
    --shadow-lg: 0 20px 60px rgba(15, 108, 191, 0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   2. BASE STYLES
   ========================================== */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ==========================================
   3. UI COMPONENTS
   ========================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-weight: 600;
    font-size: 1rem; text-decoration: none; border: none;
    cursor: pointer; transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white); box-shadow: 0 8px 24px rgba(15, 108, 191, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 108, 191, 0.4); }

.btn-secondary {
    background: var(--white); color: var(--primary-blue); border: 2px solid var(--white);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-2px); }

/* ==========================================
   4. HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); transition: var(--transition);
}
.navbar { padding: 0; }

.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 80px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 700; color: var(--dark-blue); text-decoration: none; cursor: pointer; }
.nav-logo i { font-size: 1.75rem; color: var(--primary-blue); }

.nav-menu { display: flex; list-style: none; gap: 32px; }

.nav-link { text-decoration: none; color: var(--dark-gray); font-weight: 500; font-size: 0.95rem; transition: var(--transition); position: relative; }
.nav-link:hover { color: var(--primary-blue); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary-blue); transition: var(--transition); }
.nav-link:hover::after { width: 100%; }

.call-btn {
    display: flex; align-items: center; gap: 8px; padding: 10px 20px;
    background: var(--maroon); color: var(--white); border-radius: 50px;
    text-decoration: none; font-weight: 600; transition: var(--transition); position: relative;
}
.call-btn:hover { background: #701833; transform: scale(1.05); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.bar { width: 25px; height: 3px; background: var(--dark-gray); border-radius: 3px; transition: var(--transition); }

/* ==========================================
   5. SECTIONS
   ========================================== */

/* --- Hero --- */
.hero {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #0F6CBF 0%, #0B5394 50%, #08427a 100%);
    position: relative; display: flex; align-items: center; overflow: hidden;
    margin-top: 80px; padding: 60px 0;
}

.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43 13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm56 15c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm-34 10c3.038 0 5.5-2.462 5.5-5.5S70.038 77 67 77s-5.5 2.462-5.5 5.5 2.462 5.5 5.5 5.5zm34-43c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; width: 100%; }
.hero-wrapper { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-content { max-width: 100%; }
.hero-form-wrapper { width: 100%; }

.hero-form-card {
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25); transform: translateY(0); transition: var(--transition);
}
.hero-form-card:hover { transform: translateY(-4px); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3); }

.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.5rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; }

.hero-highlight {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(1px);
    padding: 14px 24px; border-radius: 12px; color: var(--white); font-weight: 600;
    margin-bottom: 32px; border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-buttons { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
#hero-book-btn { display: none; }

.counters { display: flex; gap: 32px; flex-wrap: wrap; }
.counter-item { text-align: center; }
.counter-number { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.counter-label { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; font-weight: 500; margin-top: 4px; }

/* Counter percent small style */
.counter-percent { font-size: 0.5em; vertical-align: super; opacity: 0.85; }

/* --- Why Choose Us --- */
.why-choose { background: var(--light-gray); padding: 40px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.feature-card {
    background: var(--white); padding: 32px; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: var(--transition); text-align: center;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.feature-icon {
    width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.feature-icon i { font-size: 1.75rem; color: var(--white); }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 12px; }
.feature-card p { color: var(--gray); font-size: 0.95rem; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.service-card {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid rgba(15, 108, 191, 0.08); position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-blue), var(--maroon)); transform: scaleX(0); transition: var(--transition); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-icon {
    width: 60px; height: 60px; background: var(--light-gray); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon i { font-size: 1.5rem; color: var(--primary-blue); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 12px; }
.service-card p { color: var(--gray); margin-bottom: 0; font-size: 0.95rem; flex-grow: 1; }

/* --- About Doctor --- */
.about-doctor { background: var(--light-gray); padding: 40px 0; }
.doctor-profile { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }

.doctor-placeholder {
    width: 100%; aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.doctor-placeholder i { font-size: 8rem; color: rgba(255, 255, 255, 0.3); }

.doctor-info h2 { font-size: 2.25rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 8px; }
.doctor-info h3 { font-size: 1.25rem; font-weight: 600; color: var(--primary-blue); margin-bottom: 24px; }
.doctor-info p { color: var(--gray); margin-bottom: 16px; font-size: 1.05rem; line-height: 1.7; }

/* --- X-Ray --- */
.xray-section { background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue)); color: var(--white); padding: 32px 0; }
.xray-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.xray-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; }
.xray-feature { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.xray-feature i { font-size: 1.25rem; margin-top: 3px; flex-shrink: 0; }
.xray-features h4 { color: white; font-size: 1rem; margin-bottom: 2px; }
.xray-feature p { font-size: 0.9rem; opacity: 0.9; line-height: 1.4; }
.xray-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); display: block; object-fit: cover; aspect-ratio: 4/3; }
.xray-placeholder { width: 100%; aspect-ratio: 4/3; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius); border: 2px dashed rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; }
.xray-placeholder i { font-size: 3rem; color: rgba(255, 255, 255, 0.4); }

/* --- Gallery --- */
.gallery { padding: 40px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)); display: flex; align-items: center; justify-content: center; }
.gallery-placeholder i { font-size: 3rem; color: rgba(255, 255, 255, 0.3); }
.gallery-img { width: 100%; height: 240px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; transition: var(--transition); }
.gallery-item:hover .gallery-img { transform: scale(1.05); }

.doctor-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }

/* --- Testimonials --- */
.testimonials { background: var(--light-gray); padding: 40px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-text { font-size: 1.05rem; line-height: 1.7; color: var(--dark-gray); margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-weight: 700; color: var(--primary-blue); }

/* --- FAQ --- */
.faq { padding: 40px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; transition: var(--transition); }
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.faq-item h3 { font-size: 1.125rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 12px; }
.faq-item p { color: var(--gray); line-height: 1.6; }

/* --- Contact --- */
.contact { background: var(--light-gray); padding: 40px 0; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.contact-item { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.contact-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-item i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 16px; }
.contact-item h4 { font-size: 1.25rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 12px; }
.contact-item p { color: var(--gray); line-height: 1.6; }

/* ==========================================
   6. FORMS & APPOINTMENT
   ========================================== */
.appointment { background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue)); color: var(--white); text-align: center; }
.appointment .section-header h2, .appointment .section-header p { color: var(--white); }
.appointment-container { max-width: 600px; margin: 0 auto; }
.btn-large { padding: 18px 48px; font-size: 1.125rem; }
.btn-full { width: 100%; margin-top: 16px; }
.appointment-note { margin-top: 20px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.appointment-form { background: var(--light-gray); padding: 40px 0; }
.appointment-form-container { max-width: 700px; margin: 0 auto; background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.appointment-form-container .form-group { margin-bottom: 20px; }
.appointment-form-container .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #1e293b; font-size: 0.95rem; }
.appointment-form-container .form-group input,
.appointment-form-container .form-group select {
    width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 1rem; transition: all 0.2s ease; background-color: #ffffff; cursor: pointer;
}
.appointment-form-container .form-group input:focus,
.appointment-form-container .form-group select:focus { outline: none; border-color: #0F6CBF; box-shadow: 0 0 0 4px rgba(15, 108, 191, 0.1); }
.appointment-form-container .form-group select option:disabled { color: #dc2626; background-color: #fee2e2; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ==========================================
   7. MODALS
   ========================================== */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.modal[style*="display: block"] { display: flex !important; }

.modal-content { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); padding: 30px; border-radius: 20px; width: 90%; max-width: 420px; position: relative; animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 25px 80px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.8); }
@keyframes modalSlide { from { transform: translateY(-30px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.close-modal { color: #94a3b8; font-size: 32px; font-weight: 300; cursor: pointer; position: absolute; right: 24px; top: 20px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; }
.close-modal:hover { color: #0F6CBF; background-color: #f1f5f9; transform: rotate(90deg); }

.modal h2 { color: #0B5394; margin-bottom: 32px; text-align: center; font-size: 1.75rem; font-weight: 700; }
.modal .form-group { margin-bottom: 20px; }
.modal .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #1e293b; font-size: 0.95rem; }
.modal .form-group input, .modal .form-group select { width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 1rem; transition: all 0.2s ease; background-color: #ffffff; cursor: pointer; }
.modal .form-group select option:disabled { color: #999; background-color: #f1f5f9; }
.modal .form-group input:focus, .modal .form-group select:focus { outline: none; border-color: #0F6CBF; box-shadow: 0 0 0 4px rgba(15, 108, 191, 0.1); }
.modal .btn { padding: 16px 32px; font-size: 1.05rem; font-weight: 600; border-radius: 12px; margin-top: 8px; }

#admin-dashboard .modal-content { max-width: 1000px; padding: 45px; }
.appointments-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 24px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.appointments-table th { background: linear-gradient(135deg, #0F6CBF 0%, #0B5394 100%); color: white; padding: 16px 20px; text-align: left; font-weight: 600; font-size: 0.95rem; }
.appointments-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #f1f5f9; background-color: #ffffff; }
.appointments-table tr:hover td { background-color: #f8fafc; }
.appointments-table tr:last-child td { border-bottom: none; }

/* ==========================================
   8. FLOATING ELEMENTS
   ========================================== */
.floating-buttons { position: fixed; bottom: 100px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 16px; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.75rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: all 0.3s ease; text-decoration: none; }
.whatsapp-float { background: #25D366; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,0.4); }
.call-float { background: #0F6CBF; }

.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 999; padding: 8px 16px; }
.mobile-bar-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; text-decoration: none; color: #1F2937; font-weight: 600; font-size: 0.8rem; }
.mobile-bar-btn.book-btn { background: #0F6CBF; color: white; border-radius: 8px; }

/* ==========================================
   9. UTILITIES & TOOLTIPS
   ========================================== */
.modal-content-large { max-width: 900px; }
.appointments-list { margin-top: 20px; }
.btn-mt { margin-top: 20px; }
.slot-booked-hint { color: #dc2626; font-size: 0.75rem; margin-top: 4px; font-weight: 500; }

.phone-tooltip {
    position: absolute; bottom: -65px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.92); color: white; padding: 12px 16px; border-radius: 10px;
    font-size: 0.8rem; width: 300px; max-width: 90vw; white-space: normal; line-height: 1.5;
    z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; font-weight: 500; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.phone-tooltip::before { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid rgba(0, 0, 0, 0.92); }
.phone-tooltip.show { opacity: 1; visibility: visible; }
.call-now-btn { position: relative; }
.btn-phone-tooltip { bottom: -65px; }

.phone-tooltip-desktop { display: none; font-size: 0.8rem; color: var(--gray); margin-top: 8px; font-style: italic; line-height: 1.5; background: rgba(0, 0, 0, 0.06); padding: 8px 12px; border-radius: 8px; }
.phone-contact { cursor: default; pointer-events: none; }

.validation-msg { display: block; font-size: 0.8rem; margin-top: 4px; min-height: 18px; font-weight: 500; transition: all 0.2s ease; }
.validation-msg.error { color: #dc2626; }

.mobile-only-section { display: none !important; }

/* ==========================================
   10. TABLET RESPONSIVE (max-width: 1023px)
   ========================================== */
@media (max-width: 1023px) {
    .hamburger { display: flex; }
    .nav-menu { position: fixed; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: center; gap: 0; padding: 16px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-120%); transition: transform 0.3s ease; z-index: 999; }
    .nav-menu.active { transform: translateY(0); }
    .nav-item { width: 100%; text-align: center; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
    .nav-item:last-child { border-bottom: none; }
    .nav-link { font-size: 1rem; display: block; width: 100%; }
    .call-btn { display: none; }
    .hero { padding: 48px 0 40px; min-height: auto; margin-top: 80px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }
    .counters { justify-content: center; }
    .hero-form-wrapper { max-width: 600px; margin: 0 auto; }
    .xray-container { gap: 32px; }
    .xray-content h2 { font-size: 1.75rem; }
    .doctor-profile { gap: 40px; }
    .section-header h2 { font-size: 2rem; }
}

/* ==========================================
   11. TABLET PORTRAIT (769px–1023px)
   ========================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-wrapper { grid-template-columns: 1fr; gap: 32px; }
    .hero-content { text-align: center; max-width: 650px; margin: 0 auto; }
    .hero-buttons { justify-content: center; flex-direction: row; }
    .hero-buttons .btn { width: auto; min-width: 200px; }
    .counters { justify-content: center; gap: 40px; }
    .hero-form-wrapper { max-width: 550px; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .doctor-profile { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .doctor-placeholder { max-width: 220px; margin: 0 auto; }
    .doctor-placeholder i { font-size: 5rem; }
    .doctor-info p { text-align: left; }
    .xray-container { grid-template-columns: 1fr; gap: 28px; }
    .xray-content h2 { text-align: center; font-size: 1.5rem; }
    .xray-placeholder { min-height: 180px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info { grid-template-columns: repeat(2, 1fr); }
    .contact-info .contact-item:last-child { grid-column: 1 / -1; }
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 1.75rem; }
}

/* ==========================================
   12. MOBILE RESPONSIVE (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    .header { padding: 0; }
    .nav-container { height: 64px; padding: 0 16px; }
    .nav-logo { font-size: 1rem; gap: 8px; }
    .nav-logo i { font-size: 1.35rem; }
    .nav-menu { top: 64px; }
    .nav-item { padding: 14px 0; }
    .hero { margin-top: 64px; padding: 40px 0 32px; min-height: auto; }
    .hero-title { font-size: 1.75rem; line-height: 1.2; margin-bottom: 12px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 16px; }
    .hero-highlight { font-size: 0.85rem; padding: 10px 20px; margin-bottom: 24px; }
    .hero-buttons { flex-direction: column; gap: 12px; margin-bottom: 28px; }
    .hero-buttons .btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.95rem; }
    .counters { flex-direction: column; gap: 20px; align-items: center; }
    .counter-number { font-size: 2rem; }
    .counter-label { font-size: 0.85rem; }
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.95rem; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { text-align: center; padding: 24px; }
    .service-icon { margin: 0 auto 16px; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.9rem; }
    .doctor-profile { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .doctor-placeholder { max-width: 180px; margin: 0 auto; }
    .doctor-placeholder i { font-size: 4rem; }
    .doctor-info h2 { font-size: 1.5rem; }
    .doctor-info h3 { font-size: 1rem; }
    .doctor-info p { font-size: 0.95rem; text-align: left; }
    .xray-container { grid-template-columns: 1fr; gap: 24px; }
    .xray-content h2 { font-size: 1.25rem; margin-bottom: 18px; text-align: center; }
    .xray-section .xray-image .xray-photo { min-height: 160px; }
    .xray-section .xray-container { padding: 0; }
    .xray-feature { margin-bottom: 14px; }
    .xray-features h4 { font-size: 0.95rem; }
    .xray-feature p { font-size: 0.85rem; }
    .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
    .gallery-img { height: 160px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
    .faq-item { padding: 20px; }
    .faq-item h3 { font-size: 1rem; }
    .contact-info { grid-template-columns: 1fr; gap: 16px; }
    .contact-item { padding: 24px; }
    .appointment-form-container { max-width: 100%; padding: 16px 12px; border-radius: 0; box-shadow: none; }
    .appointment-form .container { padding: 0 !important; max-width: 100% !important; }
    .appointment-form { padding: 0; }
    .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
    #quick-appointment-form { width: 100%; max-width: 100%; }
    #quick-appointment-form .form-group { width: 100%; max-width: 100%; overflow: hidden; }
    #quick-appointment-form .form-group input, #quick-appointment-form .form-group select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; border-width: 1.5px; padding: 12px 14px; font-size: 0.95rem; }
    #quick-appointment-form .form-group input[type="date"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px !important; }
    #quick-appointment-form .form-group input[type="date"]::-webkit-calendar-picker-indicator, #quick-appointment-form .form-group input[type="date"]::-webkit-inner-spin-button { display: none !important; }
    .btn-full { margin-top: 12px; padding: 14px 20px; font-size: 1rem; }
    .modal { align-items: flex-start; padding-top: 20px; }
    .modal-content { width: 94%; max-width: 340px; padding: 16px 12px; border-radius: 14px; margin: 0 auto; }
    .modal h2 { font-size: 1rem; margin-bottom: 12px; }
    .modal .form-group { margin-bottom: 8px; }
    .modal .form-group input, .modal .form-group select { padding: 10px 12px; font-size: 0.9rem; border-radius: 10px; }
    .modal .btn { padding: 12px 16px; font-size: 0.9rem; width: 100%; justify-content: center; margin-top: 6px; }
    .close-modal { right: 8px; top: 8px; font-size: 22px; width: 28px; height: 28px; }
    .floating-buttons { display: none; }
    .mobile-bottom-bar { display: flex; }
    #admin-dashboard .modal-content { padding: 16px 10px; max-width: 98%; width: 98%; }
    #appointments-list { margin-top: 12px !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; display: block; width: 100%; }
    .appointments-table { font-size: 0.75rem; border-radius: 8px; min-width: 550px; width: 100%; }
    .appointments-table th, .appointments-table td { padding: 8px 10px; font-size: 0.75rem; }
    .appointments-table td button { font-size: 0.7rem !important; padding: 4px 8px !important; }
    #clear-appointments { font-size: 0.85rem; padding: 10px 16px; width: 100%; margin-top: 10px !important; }
}

/* ==========================================
   13. DESKTOP BREAKPOINTS (1024px+)
   ========================================== */
@media (min-width: 1024px) {
    .hero-wrapper { grid-template-columns: 1.2fr 1fr; gap: 60px; }
    .hero-content { text-align: left; }
    .hero-buttons { justify-content: flex-start; }
    .counters { justify-content: flex-start; }
    .phone-tooltip { display: block; }
    .phone-tooltip-desktop { display: block; }
    .call-btn:hover .phone-tooltip, .call-now-btn:hover .phone-tooltip { opacity: 1; visibility: visible; }
    .floating-buttons .call-float { display: none !important; }

    /* Center working hours card on desktop */
    .contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .contact-item { text-align: center; }
    .contact-item:last-child { margin: 0 auto; }
}