/* ========================================= */
/*          Mobile Responsive CSS           */
/* ======================================== */

/* Base Mobile Responsive Styles */
* {
    box-sizing: border-box;
}

/* Mobile First Approach */
@media (max-width: 767px) {
    /* General Mobile Styles */
    body {
        font-size: 14px;
        line-height: 1.4;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Center all content on mobile */
    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .col-md-8, .col-md-4, .col-sm-6, .col-xs-12 {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Header Mobile Styles */
    .main_header_area {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .top-bar {
        display: none !important;
    }
    
    .header_menu {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .header_menu .navbar.navbar-default {
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .header_menu .navbar.navbar-default .navbar-header {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .header_menu .navbar.navbar-default .navbar-header .navbar-brand {
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
    }
    
    .header_menu .navbar.navbar-default .navbar-header .navbar-brand img {
        max-height: 40px;
        width: auto;
    }
    
    /* Mobile Menu Toggle */
    .navbar-toggle {
        display: block !important;
        border: none;
        background: transparent;
        padding: 10px;
        margin: 0;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #f49b00;
        height: 3px;
        width: 25px;
        margin: 4px 0;
        transition: all 0.3s ease;
    }
    
    .navbar-toggle:hover .icon-bar {
        background-color: #f33807;
    }
    
    /* Mobile Navigation */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-collapse.collapse {
        display: none !important;
    }
    
    .navbar-collapse.in {
        display: flex !important;
    }
    
    .navbar-nav {
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav > li {
        display: flex;
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
        margin: 0;
        justify-content: center;
    }
    
    .navbar-nav > li > a {
        padding: 15px 20px;
        color: #333;
        font-size: 16px;
        font-weight: 500;
        display: flex;
        border: none;
        background: transparent;
        justify-content: center;
        text-align: center;
    }
    
    .navbar-nav > li > a:hover,
    .navbar-nav > li.active > a {
        background: #f49b00;
        color: #fff;
    }
    
    /* Mobile Dropdown Menus */
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        background: #f9f9f9;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-menu > li > a {
        padding: 12px 30px;
        color: #666;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    .dropdown-menu > li > a:hover {
        background: #f49b00;
        color: #fff;
    }
    
    /* Mega Menu Mobile */
    .mega-menu {
        position: static;
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mega-menu > li {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mega-menu > li > ul {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mega-menu > li > ul > li > a {
        padding: 10px 30px;
        font-size: 14px;
        color: #666;
        border-bottom: 1px solid #eee;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    /* Slider Mobile Styles */
    section.slider {
        height: 400px;
        margin-top: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    section.slider .carousel-inner .item {
        height: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    section.slider .carousel-inner .item img {
        height: 400px;
        object-fit: cover;
    }
    
    section.slider .carousel-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    section.slider .carousel-caption h1 {
        font-size: 28px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    section.slider .carousel-caption p {
        font-size: 16px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* About Section Mobile */
    section.about-us {
        padding: 50px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-item {
        text-align: center;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-icon {
        margin: 0 auto 20px;
    }
    
    .about-desc {
        padding: 0;
        text-align: center;
    }
    
    /* Services Mobile */
    section.services {
        padding: 50px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service-item {
        margin-bottom: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service-icon {
        margin: 0 auto 20px;
    }
    
    /* Specialist Section Mobile */
    section.specialist {
        padding: 50px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .special-item {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .special-image {
        height: 200px;
    }
    
    /* Appointment Section Mobile */
    section.appointment {
        padding: 50px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .appointment-form {
        padding: 30px 20px;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }
    
    .appointment-form .form-group {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .appointment-form .form-control {
        height: 45px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    
    /* Counter Section Mobile */
    section.counter {
        padding: 50px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .counter-item {
        text-align: center;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .counter-item h2 {
        font-size: 36px;
    }
    
    /* Testimonial Mobile */
    section.testimonial {
        padding: 50px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .slider-item {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
    }
    
    /* News/Blog Mobile */
    section.news {
        padding: 50px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .news-item {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .news-content {
        padding: 20px;
        text-align: center;
    }
    
    /* Footer Mobile */
    footer {
        padding: 50px 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content .col-xs-12 {
        margin-bottom: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact {
        padding: 20px;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Contact Form Mobile */
    .contact-inner {
        padding: 30px 20px;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }
    
    .contact-inner .form-group {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-inner .form-control {
        height: 45px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    
    /* Gallery Mobile */
    .gallery-item {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb-outer {
        padding: 100px 0 60px;
        margin-top: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .breadcrumb h2 {
        font-size: 28px;
        text-align: center;
    }
    
    /* Doctor Detail Mobile */
    .doctor-title {
        display: block;
    }
    
    .doctor-image,
    .doctor-title-content {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Blog Mobile */
    .blog-item {
        display: block;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .blog-image,
    .blog-item .news-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Shop Mobile */
    .shop-item {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .shop-content {
        padding: 20px;
        text-align: center;
    }
    
    /* Utility Classes for Mobile */
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-visible {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile-30 {
        margin-bottom: 30px !important;
    }
    
    .pt-mobile-50 {
        padding-top: 50px !important;
    }
    
    .pb-mobile-50 {
        padding-bottom: 50px !important;
    }
    
    /* Center all text content */
    h1, h2, h3, h4, h5, h6, p, span, div {
        text-align: center;
    }
    
    /* Center all images */
    img {
        display: block;
        margin: 0 auto;
    }
    
    /* Center all buttons */
    .btn {
        display: block;
        margin: 0 auto;
    }
    
    /* Center all forms */
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* Center all lists */
    ul, ol {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    li {
        text-align: center;
        margin-bottom: 10px;
    }
    
    /* WhatsApp Button Mobile Optimization */
    .whatsapp-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        background-color: #25d366;
        border-radius: 50px;
        color: #ffffff;
        text-decoration: none;
        width: 60px;
        height: 60px;
        font-size: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0px 0px 25px -6px rgba(0, 0, 0, 0.3);
        animation: whatsapp-pulse 2s infinite ease-in-out;
        transition: all 0.3s ease;
    }
    
    .whatsapp-button:hover {
        transform: scale(1.1);
        box-shadow: 0px 0px 30px -6px rgba(0, 0, 0, 0.4);
    }
    
    @keyframes whatsapp-pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
    
    /* Mobile Menu Improvements */
    .navbar-nav > li.submenu > a {
        position: relative;
    }
    
    .navbar-nav > li.submenu > a:after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    
    .navbar-nav > li.submenu.open > a:after {
        content: '-';
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Mobile Form Improvements */
    .form-control {
        border-radius: 8px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .form-control:focus {
        border-color: #f49b00;
        box-shadow: 0 0 0 0.2rem rgba(244, 155, 0, 0.25);
    }
    
    .btn {
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
        display: block;
        margin: 0 auto;
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    /* Mobile Image Optimization */
    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* Mobile Table Responsive */
    .table-responsive {
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .table-responsive table {
        font-size: 14px;
        text-align: center;
    }
    
    /* Mobile Card Improvements */
    .card, .service-item, .special-item, .news-item {
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .card:hover, .service-item:hover, .special-item:hover, .news-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    /* Mobile Loading States */
    .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #f49b00;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Mobile Accessibility */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    
    /* Mobile Focus Indicators */
    a:focus, button:focus, input:focus, textarea:focus, select:focus {
        outline: 2px solid #f49b00;
        outline-offset: 2px;
    }
    
    /* Mobile Print Styles */
    @media print {
        .whatsapp-button,
        .navbar-toggle,
        .mobile-hidden {
            display: none !important;
        }
    }
}

/* Extra Small Mobile Styles - 320px specifically */
@media (max-width: 320px) {
    body {
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .header_menu .navbar.navbar-default .navbar-header .navbar-brand img {
        max-height: 30px;
    }
    
    section.slider {
        height: 300px;
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    section.slider .carousel-caption h1 {
        font-size: 20px;
        text-align: center;
    }
    
    section.slider .carousel-caption p {
        font-size: 12px;
        text-align: center;
    }
    
    .appointment-form {
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 280px;
    }
    
    .contact-inner {
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 280px;
    }
    
    .breadcrumb-outer {
        padding: 60px 0 30px;
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .breadcrumb h2 {
        font-size: 20px;
        text-align: center;
    }
    
    .counter-item h2 {
        font-size: 24px;
        text-align: center;
    }
    
    /* WhatsApp Button Extra Small Mobile */
    .whatsapp-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 10px;
        right: 10px;
    }
    
    /* Center everything on 320px */
    * {
        text-align: center;
    }
    
    .row, .col-md-8, .col-md-4, .col-sm-6, .col-xs-12 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    /* Center all content */
    h1, h2, h3, h4, h5, h6, p, span, div, li, a {
        text-align: center;
        display: block;
        margin: 0 auto;
    }
    
    /* Center all images */
    img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
    }
    
    /* Center all buttons */
    .btn {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    /* Center all forms */
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    /* Center all inputs */
    input, textarea, select {
        text-align: center;
        display: block;
        margin: 0 auto;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .header_menu .navbar.navbar-default .navbar-header .navbar-brand img {
        max-height: 45px;
    }
    
    section.slider {
        height: 500px;
        margin-top: 80px;
    }
    
    section.slider .carousel-caption h1 {
        font-size: 36px;
    }
    
    .about-item {
        margin-bottom: 40px;
    }
    
    .service-item {
        margin-bottom: 40px;
    }
    
    .special-item {
        margin-bottom: 40px;
    }
    
    .counter-item {
        margin-bottom: 40px;
    }
    
    .news-item {
        margin-bottom: 40px;
    }
    
    /* WhatsApp Button Tablet */
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 25px;
        right: 25px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .header_menu .navbar.navbar-default .navbar-header .navbar-brand img {
        max-height: 35px;
    }
    
    section.slider {
        height: 350px;
        margin-top: 60px;
    }
    
    section.slider .carousel-caption h1 {
        font-size: 24px;
    }
    
    section.slider .carousel-caption p {
        font-size: 14px;
    }
    
    .appointment-form {
        padding: 20px 15px;
    }
    
    .contact-inner {
        padding: 20px 15px;
    }
    
    .breadcrumb-outer {
        padding: 80px 0 40px;
        margin-top: 60px;
    }
    
    .breadcrumb h2 {
        font-size: 24px;
    }
    
    .counter-item h2 {
        font-size: 28px;
    }
    
    .special-image {
        height: 150px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    /* WhatsApp Button Small Mobile */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

/* Landscape Mobile Styles */
@media (max-width: 767px) and (orientation: landscape) {
    .header_menu {
        position: relative;
    }
    
    section.slider {
        height: 300px;
        margin-top: 0;
    }
    
    .navbar-collapse {
        max-height: 60vh;
    }
    
    /* WhatsApp Button Landscape */
    .whatsapp-button {
        bottom: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* High DPI Mobile Devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header_menu .navbar.navbar-default .navbar-header .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .navbar-nav > li > a,
    .dropdown-menu > li > a,
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px;
    }
    
    .navbar-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .whatsapp-button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print Styles */
@media print {
    .header_menu,
    .top-bar,
    .navbar-toggle,
    .whatsapp-button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-button {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .header_menu {
        background: #1a1a1a;
    }
    
    .navbar-nav > li > a {
        color: #fff;
    }
    
    .dropdown-menu {
        background: #2a2a2a;
    }
    
    .dropdown-menu > li > a {
        color: #fff;
    }
}

/* Focus Styles for Accessibility */
.navbar-nav > li > a:focus,
.dropdown-menu > li > a:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid #f49b00;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Mobile */
@media (max-width: 767px) {
    .navbar-collapse::-webkit-scrollbar {
        width: 4px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: #f49b00;
        border-radius: 2px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: #f33807;
    }
}

/* Mobile Lightbox Styles */
.mobile-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Back to Top Button */
.back-to-top {
    /* position: fixed; */
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    /* background: #f49b00; */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Touch Feedback */
.touch-active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Form Error Styles */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Mobile Menu Improvements */
@media (max-width: 767px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .dropdown-menu > li > a {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .mega-menu > li > ul > li > a {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* Make the Google review logo in the footer smaller */
footer .google-review img,
.google-review img {
    width: 28px;   /* or any size you prefer */
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px; /* space between logo and text */
} 