html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
    overflow-x: hidden;
    width: 100%;
}

/* ========== CONSISTENT HEADER STYLES - FIXED HAMBURGER POSITION ========== */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 5% !important;
    background-color: #ecf5ff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-circle img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.clinic-info h1 {
    font-size: clamp(12px, 3vw, 15px);
    text-align: left;
    color: #333;
    margin: 0 0 5px 0;
}

.clinic-info p {
    font-size: clamp(8px, 2.5vw, 10px);
    color: #555;
    margin: 0;
}

/* Mobile menu button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    color: #0066cc;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(0, 102, 204, 0.1);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(5px, 4vw, 25px) !important;
    flex: 1;
    margin-left: 0px !important;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: clamp(10px, 3vw, 12px);
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #0066cc;
}

.main-nav a.active {
    color: #0056b3;
    font-weight: bold;
}

.header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px !important;
    align-items: center !important;
    flex-shrink: 1;
    margin-right: 0px !important;
}

.profile-icon i {
    color: royalblue;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.auth-link {
    text-decoration: none;
    color: #0066cc;
    font-weight: 600;
    font-size: clamp(10px, 3vw, 12px);
    white-space: nowrap;
}

.welcome-text {
    font-weight: 700 !important;
    font-size: clamp(10px, 3vw, 12px) !important;
    color: #003366 !important;
    white-space: nowrap;
}

/* ========== MOBILE-ONLY HEADER RESTRUCTURING ========== */
/* CSS Grid pattern - ONLY affects screens 768px and below */
/* Desktop and tablet layouts remain completely unchanged */

@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }
    
    /* Change header to grid layout for visual reordering */
    header {
        display: grid;
        grid-template-areas: 
            "logo hamburger"
            "user user"
            "nav nav";
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #ecf5ff;
        z-index: 1000;
    }
    
    /* Assign grid areas */
    .logo-container {
        grid-area: logo;
    }
    
    .mobile-menu-btn {
        grid-area: hamburger;
        display: block !important;
        justify-self: end;
        padding: 6px 8px;
        background: none;
        border: none;
        font-size: 18px;
        color: #0066cc;
        cursor: pointer;
    }
    
    .header-right {
        grid-area: user;
        justify-content: flex-end;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 102, 204, 0.15);
        margin-top: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    /* FIXED: Horizontal navigation - SIDE BY SIDE (same as services module) */
    .main-nav {
        grid-area: nav;
        display: none !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100%;
        padding: 10px 12px !important;
        background: #ecf5ff;
        border-top: 1px solid #d0e0f0;
        border-bottom: 1px solid #d0e0f0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        box-sizing: border-box;
    }
    
    /* Show navigation ONLY when 'show' class is added */
    .main-nav.show {
        display: flex !important;
    }
    
    .main-nav a {
        white-space: nowrap;
        padding: 6px 0 !important;
        width: auto !important;
        text-align: center;
        font-size: 13px;
        border-bottom: none !important;
        background: none;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a.active {
        color: #0056b3;
        font-weight: bold;
        background: none;
    }
    
    .main-nav a:hover {
        background: rgba(0, 102, 204, 0.1);
        color: #0066cc;
    }
    
    /* Adjust logo sizes for mobile */
    .logo-circle {
        width: 32px;
        height: 32px;
    }
    
    .logo-circle img {
        width: 36px;
        height: 36px;
    }
    
    .clinic-info h1 {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .clinic-info p {
        font-size: 7px;
    }
    
    /* Header right spacing */
    .header-right {
        gap: 8px;
    }
    
    .profile-icon i {
        font-size: 14px;
    }
    
    .welcome-text {
        font-size: 10px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    .welcome-text .auth-link,
    .header-right .auth-link {
        font-size: 10px;
        white-space: nowrap;
        text-decoration: none;
    }
}

/* Extra small devices (phones, 480px and below) */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    header {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .logo-circle {
        width: 28px;
        height: 28px;
    }
    
    .logo-circle img {
        width: 32px;
        height: 32px;
    }
    
    .clinic-info h1 {
        font-size: 9px;
    }
    
    .clinic-info p {
        font-size: 6px;
    }
    
    .mobile-menu-btn {
        padding: 5px 8px;
        font-size: 16px;
    }
    
    .header-right {
        gap: 6px;
    }
    
    .profile-icon i {
        font-size: 12px;
    }
    
    .welcome-text {
        font-size: 9px;
        white-space: nowrap;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .welcome-text .auth-link,
    .header-right .auth-link {
        font-size: 9px;
    }
    
    /* On very small screens, nav links may wrap */
    .main-nav {
        gap: 10px !important;
        padding: 8px 10px !important;
    }
    
    .main-nav a {
        font-size: 12px;
    }
}

/* Desktop and tablet - navigation always visible */
@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}


/* ========== CAROUSEL & RESPONSIVE FIXES ========== */
.carousel-section {
    background-color: #ecf5ff;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    overflow-x: hidden;
}

.carousel-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 30px;
    position: relative;
    flex-wrap: wrap;
}

.carousel-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.875rem);
    color: royalblue;
    margin: 0;
    text-align: center;
}

.carousel-header p {
    font-size: clamp(0.8rem, 3vw, 1rem);
    margin: 0;
    text-decoration: underline;
}

.carousel-header p a {
    color: #2563eb;
    text-decoration: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    height: auto;
    min-height: 350px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.carousel-button-left,
.carousel-button-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-button-left {
    left: 0.5rem;
}

.carousel-button-right {
    right: 0.5rem;
}

.carousel-button-left svg,
.carousel-button-right svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #3b82f6;
}

.servicesBtn {
    background-color: #0099ff;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}

.servicesBtn:hover {
    background-color: #0077cc;
    transform: scale(1.02);
}

/* ========== RESPONSIVE CAROUSEL FOR TABLETS ========== */
@media (min-width: 640px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
    
    .carousel-button-left,
    .carousel-button-right {
        width: 3rem;
        height: 3rem;
    }
    
    .carousel-button-left {
        left: -1rem;
    }
    
    .carousel-button-right {
        right: -1rem;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 33.3333%;
        padding: 0 2rem;
    }
    
    .carousel-button-left {
        left: -1.25rem;
    }
    
    .carousel-button-right {
        right: -1.25rem;
    }
}

/* ========== APPOINTMENT SECTION RESPONSIVE FIXES ========== */
.appointment-section {
    background: linear-gradient(rgba(26, 31, 44, 0.05), rgba(26, 31, 44, 0.05)), #f8f9fa;
    padding: 3rem 1rem;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .appointment-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .appointment-section {
        padding: 5rem 2rem;
    }
}

.appointment-info {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .appointment-info {
        padding: 2rem;
        margin-right: 0;
    }
}

/* ========== ABOUT SECTION RESPONSIVE FIXES ========== */
#about {
    background-color: #ecf5ff;
    min-height: auto;
    padding: 4rem 1rem;
}

#about h2 {
    position: static;
    margin-bottom: 2rem;
}

.about-content h3 {
    margin: 2rem 0 1rem;
    text-align: center;
}

#about p {
    text-align: left;
    margin: 0 1rem 2rem;
}

#about h4 {
    text-align: left;
    margin: 1rem 1rem 0.5rem;
}

.about-content ul {
    margin: 0 1rem 2rem;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    #about {
        padding: 5rem 2rem;
    }
    
    #about p {
        margin-left: 100px;
        margin-right: 100px;
    }
    
    #about h4 {
        margin-left: 100px;
    }
    
    .about-content ul {
        margin-left: 100px;
    }
}

/* ========== RESULTS SECTION RESPONSIVE FIXES ========== */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 1rem;
}

#results h2 {
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .results-grid {
        gap: 3rem;
        margin: 6rem 20px;
    }
}

/* ========== FEATURES SECTION RESPONSIVE FIXES ========== */
#features {
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    #features {
        padding: 5rem 2rem;
        margin-bottom: 100px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ========== LOGIN WARNING RESPONSIVE FIXES ========== */
.login-warning {
    text-align: center !important;
    margin: 15px auto !important;
    width: 100% !important;
    max-width: 700px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    padding: 12px !important;
}

/* ========== FOOTER RESPONSIVE FIXES ========== */
.footer-left {
    flex: 1;
    min-width: auto;
}

@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-left {
        min-width: auto;
        width: 100%;
    }
    
    .clinic-branding {
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }
    
    .footer-right {
        min-width: auto;
        width: 100%;
    }
}

/* ========== ADDITIONAL INFO RESPONSIVE FIXES ========== */
.additional-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem 1rem;
    background: #f8fafc;
}

@media (min-width: 640px) {
    .additional-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .additional-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 3rem 2rem;
    }
}

/* ========== DENTIST AVAILABILITY RESPONSIVE FIXES ========== */
.dentist-availability {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 640px) {
    .dentist-availability {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .dentist-availability {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

@media (min-width: 480px) {
    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 640px) {
    .time-slots {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========== SMART SUGGESTIONS RESPONSIVE FIXES ========== */
.smart-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

@media (min-width: 480px) {
    .smart-suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* ========== GENERAL RESPONSIVE TEXT SIZES ========== */
@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* ========== KEEP EXISTING STYLES BELOW (unchanged) ========== */
/* CUSTOM TIME in appointment form */
#custom_time_input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#preferred_time, #custom_time_input {
    background-color: white;
    color: #333;
}


.info-banner {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner-button {
    background-color: #ffc107;
    color: #212529;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.banner-button:hover {
    background-color: #e0a800;
}

.close-banner {
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    height: auto;
    overflow-y: auto;
    max-height: 90vh;
}

.close-modal {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

/* Services Carousel */
.carousel-section {
    background-color: #ecf5ff;
    padding: 0;
    max-width: 100%;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.carousel-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 30px;
    position: relative;
}

.carousel-header h1 {
    font-size: 2.875rem;
    color: royalblue;
    margin: 0 auto;
}

.carousel-header p {
    font-size: 1rem;
    position: absolute;
    right: 0;
    margin: 0;
    text-decoration: underline;
}

.carousel-header p a {
    color: #2563eb;
    text-decoration: none;
}

.carousel-header p a:hover {
    text-decoration: underline;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding: 3rem 0;
    height: 400px;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 33.3333%;
    padding: 0 2.75rem;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    max-width: 100%;
    max-height: 120%;
    display: block;
}

.carousel-button-left,
.carousel-button-right {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-button-left {
    left: -1.25rem;
}

.carousel-button-right {
    right: -1.25rem;
}

.carousel-button-left:hover,
.carousel-button-right:hover {
    background-color: #f3f4f6;
}

.carousel-button-left svg,
.carousel-button-right svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
}



/* Features Section */
#features {
    padding: 5rem 2rem;
    background-color: white;
    margin-bottom: 100px;
}

#features h2 {
    color: #2563eb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Testimonials Section */
#testimonials {
    padding: 5rem 2rem 3rem;
    text-align: center;
}

#testimonials h2 {
    color: #2563eb;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.testimonial {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: #666;
}

/* Contact Section */
#contact {
    padding: 5rem 2rem;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.contact-info {
    padding: 2rem;
}

.clinic-hours {
    margin-top: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #1d6d96;
    color: white;
    padding: 1rem 1rem;
    font-family: Arial, sans-serif;
}

.footer-links {
    color: white;
    text-decoration: none;
}

.footer-links:hover {
    color: black;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Left section */
.footer-left {
    flex: 1;
    min-width: 750px;
}

.clinic-branding {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
}

.footer-logo {
    width: 80px;
    height: 50px;
    margin-right: 1rem;
}

.clinic-branding h2 {
    margin: 0;
    font-size: 1.5rem;
    text-align: left;
    color: antiquewhite;
}

.clinic-branding p {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    color: #e5f1f7;
}

.footer-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-label {
    font-weight: bold;
    margin: 0;
}

.footer-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.contact-info {
    text-align: left;
}

.contact-info a {
    color: #d0e9ff;
    text-decoration: underline;
}

/* Section Headers */
h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1A1F2C;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.testimonial {
    animation: fadeIn 0.5s ease-out;
}

/* About Section */
#about {
    background-color: #ecf5ff;
    height: 120vh;
}

.section-container {
    margin-top: 0px;
}

.about-group {
    display: block;
    align-items: center;
}

.about-content {
    text-align: left;
}

#about h2 {
    position: relative;
    top: 4rem;
    color: #2563eb;
}

.about-content h3 {
    margin: 6rem 0 2rem;
    color: #1A1F2C;
    text-align: center;
}

#about p {
    text-align: left;
    margin-bottom: 40px;
    margin-left: 100px;
    margin-right: 100px;
}

#about h4 {
    text-align: left;
    margin-left: 300px;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin-left: 300px;
}

.about-content li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-content li::before {
    content: "✅";
    color: #33C3F0;
    position: absolute;
    left: 0px;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 6rem;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 8rem;
}

#results h2 {
    margin-top: 150px;
    color: #2563eb;
}

#results p {
    font-weight: 600;
}

.result-case {
    text-align: center;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.before-after img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Appointment Section */
.appointment-section {
    background: linear-gradient(rgba(26, 31, 44, 0.05), rgba(26, 31, 44, 0.05)), #f8f9fa;
    padding: 5rem 2rem;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5em;
    align-items: start;
}

.appointment-form form {
    display: grid;
    gap: 1rem;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.appointment-form textarea {
    height: 100px;
    resize: vertical;
}

.appointment-info {
    background: white;
    padding: 2rem;
    margin-right: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.appointment-info ul {
    list-style: none;
    padding: 15px;
    margin: 1rem 0;
}

.cta-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.cta-button:focus {
    outline: 2px solid #FFD700;
    outline-offset: 4px;
}

.cta-button:disabled {
    background-color: #d6d6d6;
    color: #aaa;
    cursor: not-allowed;
}

/* Updated Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
}

.testimonial-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Responsive Design */
@media (max-width: 768px) {
    .about-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-image {
        height: 300px;
    }

    h2 {
        text-align: center;
        font-size: 2.5rem;
        color: #1A1F2C;
        margin-bottom: 2rem;
    }

    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 0 2rem;
    }

    .carousel-header h1 {
        font-size: 2.25rem;
    }

    .carousel-header p {
        font-size: 0.95rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-contact {
        flex-direction: row;
        justify-content: flex-end;
        gap: 3rem;
    }
}

/* Debug Panel Styles */
.debug-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: #1e293b;
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    display: none;
}

.debug-panel.show {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

.debug-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    cursor: move;
}

.debug-title {
    font-weight: bold;
    font-size: 14px;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.debug-controls {
    display: flex;
    gap: 8px;
}

.debug-btn {
    background: #475569;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}

.debug-btn:hover {
    background: #64748b;
}

.debug-content {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.4;
}

.debug-section {
    margin-bottom: 16px;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

.debug-section-title {
    color: #93c5fd;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 13px;
}

.debug-log {
    background: #1e293b;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    border: 1px solid #334155;
    word-break: break-all;
}

.debug-log.success {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.debug-log.error {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.debug-log.warning {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.debug-log.info {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.debug-field {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px dashed #334155;
}

.debug-field-label {
    color: #94a3b8;
    font-weight: 500;
}

.debug-field-value {
    color: #e2e8f0;
}

.debug-field-value.missing {
    color: #f87171;
    font-style: italic;
}

.debug-field-value.ok {
    color: #34d399;
}

.debug-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.debug-toggle-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.debug-toggle-btn.pulsing {
    animation: pulse 2s infinite;
}

/* FIX FOR FADE ANIMATIONS */
.fade-section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Additional Info Section - Contact Cards Footer */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: #f8fafc;
}

.info-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    text-align: center;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box i {
    font-size: 2.5rem;
    color: #1d6d96;
    margin-bottom: 1rem;
}

.info-box h4 {
    font-size: 1.3rem;
    color: #1d6d96;
    margin-bottom: 1rem;
}

.info-box p {
    color: #6b7280;
}

.dentist-availability {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.dentist-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 10px;
}

.dentist-name {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.specialization-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialization-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    font-size: 12px;
}

.specialization-list li::before {
    content: "⭐";
    position: absolute;
    left: 0;
    color: gold;
}

.availability {
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    margin-top: 10px;
}

.time-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #388e3c;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.date-selector-container {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.date-label {
    color: #388e3c;
    font-weight: 500;
    font-size: 0.9em;
}

.date-picker-btn {
    background: none;
    border: none;
    color: #1d6d96;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 0.9em;
}

.date-picker-btn:hover {
    background-color: #f0f7ff;
}

.date-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px;
    z-index: 100;
    display: none;
    min-width: 160px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 5px;
}

.date-dropdown.show {
    display: block;
}

.date-option {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s;
}

.date-option:hover {
    background-color: #f0f7ff;
}

.date-option.selected {
    background-color: #1d6d96;
    color: white;
}

.availability-table {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 7px;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9em;
}

.available-badge {
    background: #e8f5e9;
    color: #388e3c;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.75em;
}

.booked-badge {
    background: #ffebee;
    color: #e53935;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.75em;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.time-slot {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 1px;
    text-align: center;
    font-size: 9px;
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot.available {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #4caf50;
    cursor: pointer;
}

.time-slot.booked {
    background-color: #ffebee;
    color: #e53935;
    border-color: #ef5350;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.8;
    position: relative;
}

.time-slot.booked::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, #e53935 50%, transparent 55%);
    opacity: 0.3;
}

.not-available {
    color: #e53935;
    font-style: italic;
    font-size: 0.9em;
}

.not-available small {
    display: block;
    color: #777;
    font-size: 0.8em;
    margin-top: 2px;
}

/* Clinic Hours Specific Styling */
.clinic-hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.clinic-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.3rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #f8fafc;
    font-size: 10px;
}

.clinic-hours-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.clinic-hours-item:last-child {
    margin-bottom: 0;
}

.clinic-day {
    color: #374151;
    font-weight: 700;
}

.clinic-status {
    font-weight: 600;
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.clinic-status.open {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.clinic-status.closed {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@media (min-width: 768px) {
    .dentist-availability {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .dentist-card {
        padding: 12px;
    }
}

/* New Styles for Smart Time Suggestions */
.smart-suggestions-container {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.smart-suggestions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #1d6d96;
    font-weight: 600;
}

.smart-suggestions-header i {
    font-size: 1.1em;
}

.smart-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.smart-suggestion-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smart-suggestion-card:hover {
    background: #e3f2fd;
    border-color: #1d6d96;
    transform: translateY(-2px);
}

.smart-suggestion-card.selected {
    background: #1d6d96;
    color: white;
    border-color: #1d6d96;
}

.smart-suggestion-time {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.smart-suggestion-label {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.most-efficient {
    background: #d1fae5;
    color: #059669;
}

.efficient-gap {
    background: #e0f2fe;
    color: #0284c7;
}

.standard-slot {
    background: #f3f4f6;
    color: #6b7280;
}

.no-suggestions {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 10px;
}

.custom-time-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #dee2e6;
}

.custom-time-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 8px;
}

.custom-time-input:focus {
    outline: none;
    border-color: #1d6d96;
    box-shadow: 0 0 0 0.2rem rgba(29, 109, 150, 0.25);
}

/* FIXED: Terms and Conditions Checkbox Alignment */
.terms-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 0;
}

.terms-container input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.terms-container span {
    font-size: 14px;
    color: #374151;
}

/* Center alignment for login warning */
.login-warning {
    text-align: center !important;
    margin: 15px auto !important;
    width: 700px !important;
}

/* Strikethrough effect for form when logged out */
.appointment-form.disabled {
    position: relative;
    opacity: 0.9;
}

.appointment-form.disabled::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        lightgray 15px,
        lightgray 17px
    );
    z-index: 10;
    pointer-events: none;
    opacity: 0.7;
}

.appointment-form.disabled::after {
    content: "Please log in to book an appointment";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    background: #d32f2f;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
    z-index: 11;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    pointer-events: none;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
    .appointment-form.disabled::after {
        white-space: normal;
        font-size: 14px;
        padding: 10px 20px;
        width: 80%;
        text-align: center;
    }
}

/* Make sure form is non-interactive when logged out */
.appointment-form.disabled * {
    pointer-events: none;
}

.appointment-form.disabled input,
.appointment-form.disabled select,
.appointment-form.disabled button,
.appointment-form.disabled textarea {
    opacity: 0.6;
}

/* Improved dropdown styling */
.checkbox-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 5px;
}

.checkbox-dropdown .service-row {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.2s;
}

.checkbox-dropdown .service-row:hover {
    background-color: #f5f5f5;
}

.checkbox-dropdown .service-row:last-child {
    border-bottom: none;
}

.checkbox-dropdown label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.checkbox-dropdown input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkbox-dropdown .dentist-select-container {
    margin-top: 8px;
    padding-left: 26px;
    animation: fadeIn 0.3s ease-out;
}

/* Make the dropdown container relative */
.custom-multiselect {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

/* Dropdown trigger styling */
.custom-multiselect > div:first-child {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.custom-multiselect > div:first-child:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-multiselect > div:first-child::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
    transition: transform 0.3s;
}

/* Active state when dropdown is open */
.custom-multiselect > div:first-child.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #f8fafc;
}

.custom-multiselect > div:first-child.active::after {
    transform: translateY(-50%) rotate(180deg);
    color: #2563eb;
}

/* Previous Dentist Label Styles */
.previous-dentist-label {
    animation: slideInUp 0.5s ease-out;
}

.previous-dentist-label-container {
    clear: both;
    margin: 12px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .previous-dentist-label {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    
    .previous-dentist-label .fa-history {
        font-size: 14px !important;
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    .previous-dentist-label {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    
    .previous-dentist-label .fa-history {
        font-size: 12px !important;
        width: 24px !important;
        height: 24px !important;
    }
}

/* Ensure notifications are always visible */
.notification {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Tablet fix - make carousel images bigger */
@media (min-width: 600px) and (max-width: 900px) {
    .carousel-slide img {
        width: 100%;
        min-width: 300px;
        height: auto;
    }
}


/* Tablet portrait only (600px to 900px) */
@media (min-width: 600px) and (max-width: 900px) and (orientation: portrait) {
    .appointment-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }
    
    .login-warning {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .appointment-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .section-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
}


/* ===== COMPLETE TABLET PORTRAIT RESPONSIVENESS ===== */
/* Covers all tablets: iPad (768-1024), iPad Pro (1024-1366), Surface (912-1368), Huawei MatePad (1200-1600) */
@media screen and (min-width: 600px) and (max-width: 1600px) and (orientation: portrait) {


        .header {
        display: grid;
        grid-template-areas: 
            "logo hamburger"
            "user user"
            "nav nav";
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 12px !important;
    }
    
    /* Assign grid areas */
    .logo-container {
        grid-area: logo !important;
    }
    
    .mobile-menu-btn {
        grid-area: hamburger !important;
        display: block !important;
        justify-self: end !important;
        padding: 6px 8px !important;
    }
    
    .header-right {
        grid-area: user;
        justify-content: flex-end;
        width: 100%;
        padding-top: 5px;
        border-top: 1px solid rgba(0, 102, 204, 0.1);
        margin-top: 0;
    }

    

        /* Adjust logo sizes for mobile */
    .logo-circle {
        width: 32px !important;
        height: 32px !important;
    }
    
    .logo-circle img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .clinic-info h1 {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }
    
    .clinic-info p {
        font-size: 7px !important;
    }
    
    /* Header right spacing */
    .header-right {
        gap: 8px !important;
    }
    
    .profile-icon i {
        font-size: 14px !important;
    }
    
    .welcome-text {
        font-size: 10px !important;
        white-space: nowrap !important;
    }
    
    .welcome-text .auth-link,
    .header-right .auth-link {
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    
    /* ===== HERO SECTION ===== */
    .hero {
        padding: 40px 20px !important;
        margin-top: 0 !important;
    }
    
    .hero h2 {
        font-size: 28px !important;
    }
    
    .hero p {
        font-size: 14px !important;
    }
    
    /* ===== ABOUT SECTION ===== */
    #about {
        padding: 40px 20px !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    #about h2 {
        font-size: 28px !important;
        top: 0 !important;
        position: relative !important;
        margin-bottom: 30px !important;
    }
    
    .about-content h3 {
        margin: 30px 0 15px !important;
        font-size: 20px !important;
    }
    
    #about p {
        margin: 0 20px 30px 20px !important;
        font-size: 14px !important;
        text-align: justify !important;
    }
    
    #about h4 {
        margin-left: 20px !important;
        font-size: 18px !important;
    }
    
    .about-content ul {
        margin-left: 20px !important;
        margin-bottom: 30px !important;
    }
    
    .about-content li {
        font-size: 14px !important;
    }
    
    /* ===== FEATURES SECTION ===== */
    #features {
        padding: 40px 20px !important;
        margin-bottom: 40px !important;
    }
    
    #features h2 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 20px auto !important;
    }
    
    .feature-card {
        padding: 20px !important;
    }
    
    .feature-icon {
        font-size: 36px !important;
    }
    
    .feature-card h3 {
        font-size: 18px !important;
    }
    
    .feature-card p {
        font-size: 13px !important;
    }
    
    /* ===== CAROUSEL SECTION ===== */
    .carousel-section {
        padding: 20px 0 !important;
    }
    
    .carousel-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 15px !important;
        margin-bottom: 20px !important;
    }
    
    .carousel-header h1 {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }
    
    .carousel-container {
        padding: 20px 0 !important;
        min-height: 280px !important;
    }
    
    .carousel-slide {
        flex: 0 0 85% !important;
        padding: 0 10px !important;
    }
    
    .carousel-slide img {
        height: auto !important;
        aspect-ratio: 4/3 !important;
    }
    
    .carousel-button-left,
    .carousel-button-right {
        width: 35px !important;
        height: 35px !important;
    }
    
    .servicesBtn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        margin: 20px auto !important;
    }
    
    /* ===== RESULTS SECTION ===== */
    #results {
        padding: 40px 20px !important;
    }
    
    #results h2 {
        font-size: 28px !important;
        margin-top: 0 !important;
    }
    
    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin: 30px 15px !important;
    }
    
    .result-case p {
        font-size: 14px !important;
        margin-top: 10px !important;
    }
    
    /* ===== APPOINTMENT SECTION ===== */
    .appointment-section {
        padding: 40px 15px !important;
    }
    
    .appointment-section h2 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    .appointment-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .appointment-form {
        padding: 0 !important;
    }
    
    .appointment-form input,
    .appointment-form select,
    .appointment-form textarea {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    .appointment-info {
        padding: 20px !important;
        margin-right: 0 !important;
    }
    
    .appointment-info h3 {
        font-size: 18px !important;
    }
    
    .clinic-hours-list {
        font-size: 12px !important;
    }
    
    /* ===== DENTIST AVAILABILITY ===== */
    .dentist-availability {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .dentist-card {
        padding: 15px !important;
    }
    
    .dentist-name {
        font-size: 16px !important;
    }
    
    .specialization-list li {
        font-size: 11px !important;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }
    
    .time-slot {
        font-size: 9px !important;
        padding: 4px 2px !important;
    }
    
    .date-label {
        font-size: 11px !important;
    }
    
    /* ===== SMART SUGGESTIONS ===== */
    .smart-suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
        gap: 8px !important;
    }
    
    .smart-suggestion-card {
        padding: 8px 4px !important;
    }
    
    .smart-suggestion-time {
        font-size: 11px !important;
    }
    
    .smart-suggestion-label {
        font-size: 9px !important;
    }
    
    /* ===== MODAL ===== */
    .modal-content {
        width: 95% !important;
        margin: 80px auto !important;
        padding: 20px !important;
        max-height: 85vh !important;
    }
    
    /* ===== ADDITIONAL INFO SECTION ===== */
    .additional-info {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 30px 20px !important;
    }
    
    .info-box {
        padding: 20px !important;
    }
    
    .info-box i {
        font-size: 32px !important;
    }
    
    .info-box h4 {
        font-size: 18px !important;
    }
    
    .info-box p {
        font-size: 13px !important;
    }
    
    /* ===== LOGIN WARNING ===== */
    .login-warning {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 12px !important;
        padding: 12px !important;
    }
    
    /* ===== CTA BUTTON ===== */
    .cta-button {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    /* ===== TERMS CHECKBOX ===== */
    .terms-container {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    
    .terms-container span {
        font-size: 12px !important;
    }
    
    /* ===== CONFLICT WARNING ===== */
    .conflict-warning,
    #conflict_warning div {
        font-size: 12px !important;
        padding: 12px !important;
    }
}

/* ===== SMALLER TABLETS (7-8 inches) ===== */
@media screen and (min-width: 600px) and (max-width: 850px) and (orientation: portrait) {
    
    .hero h2 {
        font-size: 24px !important;
    }
    
    #about h2,
    #features h2,
    .carousel-header h1,
    #results h2 {
        font-size: 24px !important;
    }
    
    .carousel-slide {
        flex: 0 0 90% !important;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .smart-suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)) !important;
    }
    
    .appointment-info h3 {
        font-size: 16px !important;
    }
    
    .clinic-hours-item {
        font-size: 11px !important;
    }
}

/* ===== LARGER TABLETS (11-13 inches) ===== */
@media screen and (min-width: 1025px) and (max-width: 1600px) and (orientation: portrait) {
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .additional-info {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .dentist-availability {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .carousel-slide {
        flex: 0 0 45% !important;
    }
}

/* ===== VERY SMALL TABLETS (600-700px) ===== */
@media screen and (min-width: 600px) and (max-width: 700px) and (orientation: portrait) {
    
    .carousel-slide {
        flex: 0 0 95% !important;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .smart-suggestions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .appointment-section h2 {
        font-size: 20px !important;
    }
    
    .cta-button {
        width: 100% !important;
    }
}

/* ===== FIX FOR FADE ANIMATIONS ON TABLET ===== */
@media screen and (min-width: 600px) and (max-width: 1600px) and (orientation: portrait) {
    .fade-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

/* ===== FIX FOR CAROUSEL BUTTON POSITIONING ===== */
@media screen and (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
    .carousel-button-left {
        left: 5px !important;
    }
    
    .carousel-button-right {
        right: 5px !important;
    }
}