/* ==========================================================================
   Vijay Eye Hospital - Mobile & Tablet Responsive Overrides (phone.css)
   This stylesheet handles layout adjustments specifically for portable devices.
   ========================================================================== */

/* --- 1. Tablets and Medium Screens (max-width: 1200px) --- */
@media (max-width: 1200px) {
    .testimonials-container {
        grid-template-columns: 300px 1fr;
    }
    .testimonial-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
    .diagnostics-content {
        grid-template-columns: 1fr 1.4fr;
        gap: 30px;
        padding: 30px;
    }
    .diagnostics-info h3 {
        font-size: 1.9rem;
    }
}

/* --- 2. Landscape Tablets (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .cashless-logo-slide {
        width: 150px;
        height: 75px;
        padding: 8px 12px;
    }
    .cashless-logo-group {
        gap: 30px;
        padding-right: 30px;
    }
    .cashless-slider-fade {
        width: 100px;
    }
}

/* --- 3. Portrait Tablets (max-width: 992px) --- */
@media (max-width: 992px) {
    .hero-container, .booking-container, .doctor-card { 
        flex-direction: column; 
    }
    .hero-content {
        text-align: center;
    }
    .hero-certifications {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }
    .cert-divider {
        display: none;
    }
    .cert-item {
        font-size: 0.9rem !important;
    }
    .nabh-icon {
        height: 46px;
    }
    .hero-features {
        display: inline-block;
        text-align: left;
    }
    .hero-buttons {
        justify-content: center;
    }
    .doctor-grid { 
        grid-template-columns: 1fr; 
    }
    .footer-grid { 
        grid-template-columns: 1.4fr 1fr 1fr 1.6fr !important; 
        gap: 20px !important;
    }
    .brand-col .brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .contact-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .contact-col p {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
        text-align: left !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    .contact-col p a {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
        text-align: left !important;
        width: 100% !important;
    }
    .contact-col i {
        margin: 0 !important;
        margin-top: 3px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
    }
    .contact-col span {
        display: inline-block !important;
        text-align: left !important;
        width: auto !important;
        line-height: 1.45 !important;
    }
    .footer-cta-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }
    .footer-cta-row .social-links {
        display: flex !important;
        margin: 0 !important;
        margin-left: 0 !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    .process-timeline::before { 
        left: 30px; 
    }
    .doctor-info { 
        text-align: center; 
    }
    .doctor-info h3, .doc-spec { 
        white-space: normal; 
    }
    .doctor-info .cta-button { 
        margin: 0 auto; 
        display: inline-flex; 
    }
    /* Fix Collapsing Doctor Image Circle */
    .doctor-img-wrap { 
        width: 210px !important; 
        height: 210px !important; 
        flex: none !important; 
    }
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .testimonials-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .testimonials-left p {
        max-width: 600px;
    }
    .diagnostics-content {
        grid-template-columns: 1fr 1.3fr;
        gap: 20px;
        padding: 25px;
    }
    .diagnostics-info h3 {
        font-size: 1.6rem;
    }
    .diagnostics-info p {
        font-size: 0.95rem;
    }
    .diagnostics-alert-box {
        padding: 12px 15px;
        gap: 10px;
    }
    .diagnostics-alert-box i {
        font-size: 1.2rem;
    }
    .diagnostics-alert-box strong {
        font-size: 0.95rem;
    }
    .diagnostics-alert-box p {
        font-size: 0.85rem;
    }
}

/* --- 4. Mobile Devices (max-width: 768px) --- */
@media (max-width: 768px) {
    /* General Mobile Layout Adjustments */
    section {
        padding: 60px 0 !important;
    }
    .section-header {
        margin-bottom: 30px !important;
    }
    .section-header h2 {
        font-size: 2rem !important;
    }
    .section-header p {
        font-size: 0.95rem !important;
    }
    .process-timeline::before {
        left: 20px !important;
        width: 4px !important;
    }
    .process-step {
        padding: 10px 15px 10px 0 !important;
        margin-left: 0 !important;
        gap: 15px !important;
    }
    .process-step h3 {
        font-size: 1.05rem !important;
        margin-bottom: 4px !important;
    }
    .process-step p {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
    }
    .step-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
        box-shadow: 0 0 0 5px var(--bg-light) !important;
    }

    .hide-mobile { 
        display: none !important; 
    }
    .nav-content {
        flex-wrap: wrap !important;
        gap: 8px 0 !important;
    }
    .desktop-nav {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 15px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(0, 137, 123, 0.08) !important;
        margin-top: 4px !important;
    }
    .desktop-nav a {
        font-size: 0.82rem !important;
        font-weight: 600 !important;
    }
    .brand-logo-img { 
        height: 44px !important; 
    }
    .brand-title { 
        font-size: 1rem !important; 
    }
    .brand-subtitle { 
        display: none !important; 
    }
    .navbar .cta-button { 
        padding: 6px 12px !important; 
        font-size: 0.8rem !important; 
        border-radius: 6px !important;
    }
    .hero-title { 
        font-size: 2.5rem; 
    }
    /* Add Standard Vertical Spacing for Mobile Form Fields */
    .form-row { 
        flex-direction: column; 
        gap: 20px; 
    }
    .booking-info h2 {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
    }
    .booking-info p {
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
    }
    .contact-methods {
        margin-top: 15px !important;
    }
    .method {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
        gap: 8px !important;
    }
    .booking-form-wrapper {
        padding: 25px 20px !important;
        border-radius: 16px !important;
    }
    .booking-form-wrapper label {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }
    .booking-form-wrapper input, 
    .booking-form-wrapper select, 
    .booking-form-wrapper textarea {
        padding: 8px 12px !important;
        font-size: 0.88rem !important;
        border-radius: 6px !important;
    }
    .booking-form-wrapper .cta-button {
        padding: 10px 20px !important;
        font-size: 0.92rem !important;
        border-radius: 6px !important;
    }
    .map-wrapper { 
        flex-direction: column !important; 
        max-height: none !important; 
    }
    .map-info {
        padding: 25px 20px !important;
    }
    .map-info h3 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }
    .map-info p {
        font-size: 0.92rem !important;
        margin-bottom: 10px !important;
    }
    .map-info .cta-button {
        padding: 10px 18px !important;
        font-size: 0.88rem !important;
        border-radius: 6px !important;
    }
    .map-embed {
        min-height: 250px !important;
        height: 250px !important;
    }
    .footer-grid { 
        grid-template-columns: 1.3fr 0.9fr 0.9fr 1.5fr !important; 
        gap: 10px !important;
     }
    .footer-col h3 {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    .footer-col a {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }
    .footer-col p {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }
    .brand-col h2 {
        font-size: 1.1rem !important;
    }
    .brand-col p {
        font-size: 0.55rem !important;
        white-space: normal !important;
        margin-top: 10px !important;
    }
    .google-rating {
        font-size: 0.75rem !important;
        margin: 12px 0 !important;
    }
    .social-links a {
        width: 30px !important;
        height: 30px !important;
    }
    .social-links a i {
        font-size: 14px !important;
    }
    .contact-col .cta-button {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        flex: 1 !important;
    }
    .chat-window { 
        width: calc(100vw - 40px); 
        right: -10px; 
    }
    /* Stats Layout Alignment */
    .stats-grid { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    .testimonials-track {
        gap: 20px !important;
    }
    .testimonial-card {
        flex: 0 0 100% !important; /* 1 card on mobile */
        padding: 24px 20px !important;
        min-height: 220px !important;
    }
    .testimonial-card p {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
        line-height: 1.5 !important;
    }
    .testimonial-quote {
        font-size: 2rem !important;
        top: 12px !important;
        right: 15px !important;
    }
    .testimonial-card .stars {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }
    .testimonial-user {
        padding-top: 12px !important;
    }
    .testimonial-user-info h4 {
        font-size: 0.95rem !important;
    }
    .testimonial-user-info span {
        font-size: 0.8rem !important;
    }
    .cashless-logo-slide {
        width: 120px;
        height: 60px;
        padding: 6px 10px;
    }
    .cashless-logo-group {
        gap: 20px;
        padding-right: 20px;
    }
    .cashless-slider-fade {
        width: 60px;
    }
    .diagnostics-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 25px 20px !important;
        border-radius: 20px !important;
    }
    .diagnostics-info {
        gap: 15px !important;
    }
    .diagnostics-info h3 {
        font-size: 1.6rem !important;
    }
    .diagnostics-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    .diagnostics-info p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    .diagnostics-highlight {
        font-size: 1rem !important;
    }
    .diagnostics-alert-box {
        padding: 12px 15px !important;
        gap: 10px !important;
        display: flex !important;
    }
    .diagnostics-alert-box i {
        font-size: 1.2rem !important;
    }
    .diagnostics-alert-box strong {
        font-size: 0.95rem !important;
    }
    .diagnostics-alert-box p {
        font-size: 0.88rem !important;
    }
    .diagnostics-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
    }
    /* Set Grid Columns to 2-Column Layout on Mobile/Tablets */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .service-card {
        padding: 20px 15px !important;
        border-radius: 12px !important;
    }
    .service-card > div:first-child {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }
    .service-card h3 {
        font-size: 1.15rem !important;
        margin-bottom: 10px !important;
    }
    .service-card p {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        margin-bottom: 15px !important;
    }
    .service-card .cta-button {
        padding: 10px 15px !important;
        font-size: 0.88rem !important;
        border-radius: 6px !important;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .gallery-card {
        border-radius: 8px !important;
    }
    .gallery-overlay {
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        padding: 8px 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(10, 37, 64, 0.85) !important;
    }
    .gallery-title {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin: 0 !important;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .video-review-info {
        padding: 15px 10px !important;
    }
    .video-review-info h4 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    .review-tag {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    .video-review-play-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }
}

/* --- 5. Small Phones (max-width: 576px) --- */
@media (max-width: 576px) {
    /* Stack Hero CTA Buttons Vertically */
    .hero-buttons { 
        flex-direction: column; 
        gap: 10px; 
        width: 100%; 
    }
    .hero-buttons .cta-button { 
        width: 100%; 
        padding: 12px 20px; 
        font-size: 1rem; 
    }
    /* Compact Padding and Text sizes for Booking */
    .booking-info h2 {
        font-size: 1.5rem !important;
    }
    .booking-info p {
        font-size: 0.85rem !important;
    }
    .method {
        font-size: 0.85rem !important;
    }
    .booking-form-wrapper {
        padding: 15px 12px !important;
    }
    .booking-form-wrapper label {
        font-size: 0.75rem !important;
    }
    .booking-form-wrapper input, 
    .booking-form-wrapper select, 
    .booking-form-wrapper textarea {
        padding: 6px 10px !important;
        font-size: 0.82rem !important;
    }
    .map-info { 
        padding: 15px 12px !important; 
    }
    .map-info h3 {
        font-size: 1.3rem !important;
    }
    .map-info p {
        font-size: 0.85rem !important;
    }
    .map-info .cta-button {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    .map-embed {
        min-height: 200px !important;
        height: 200px !important;
    }
    .diagnostics-content {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px 12px !important;
        border-radius: 16px !important;
    }
    .diagnostics-info h3 {
        font-size: 1.3rem !important;
    }
    .diagnostics-info p {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
    }
    .diagnostics-alert-box {
        padding: 10px !important;
        gap: 8px !important;
        display: flex !important;
    }
    .diagnostics-alert-box i {
        font-size: 1.1rem !important;
    }
    .diagnostics-alert-box strong {
        font-size: 0.9rem !important;
    }
    .diagnostics-alert-box p {
        font-size: 0.8rem !important;
    }
    .diagnostics-highlight {
        font-size: 0.9rem !important;
    }
    .diagnostics-info .cta-button {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        text-align: center !important;
    }
    .gallery-title {
        font-size: 0.58rem !important;
    }
    /* Set Services into 2-Column Layout on Phones */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .service-card {
        padding: 15px 10px !important;
        border-radius: 12px !important;
    }
    .service-card > div:first-child {
        font-size: 1.6rem !important;
        margin-bottom: 8px !important;
    }
    .service-card h3 {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
    }
    .service-card p {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
    }
    .service-card .cta-button {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }
    .testimonial-card {
        padding: 20px 15px !important;
        min-height: 200px !important;
        flex: 0 0 100% !important; /* 1 card on mobile */
    }
    .testimonial-card p {
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }
    .testimonial-user-info h4 {
        font-size: 0.9rem !important;
    }
    .testimonial-user-info span {
        font-size: 0.78rem !important;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .video-review-info {
        padding: 10px 8px !important;
    }
    .video-review-info h4 {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    .review-tag {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
        border-radius: 8px !important;
    }
    .video-review-play-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }
    .footer-grid {
        grid-template-columns: 1.1fr 0.8fr 0.8fr 1.5fr !important;
        gap: 6px !important;
    }
    .footer-col h3 {
        font-size: 0.75rem !important;
        margin-bottom: 10px !important;
    }
    .footer-col a {
        font-size: 0.65rem !important;
        margin-bottom: 6px !important;
    }
    .footer-col p {
        font-size: 0.65rem !important;
        margin-bottom: 6px !important;
    }
    .brand-col h2 {
        font-size: 0.85rem !important;
    }
    .brand-col p {
        font-size: 0.45rem !important;
    }
    .google-rating {
        font-size: 0.65rem !important;
        margin: 8px 0 !important;
    }
    .social-links a {
        width: 24px !important;
        height: 24px !important;
    }
    .social-links a i {
        font-size: 11px !important;
    }
    .contact-col .cta-button {
        padding: 6px 10px !important;
        font-size: 0.68rem !important;
    }
    .process-timeline::before {
        left: 17px !important;
    }
    .process-step {
        padding: 8px 10px 8px 0 !important;
        gap: 12px !important;
    }
    .process-step h3 {
        font-size: 0.92rem !important;
    }
    .process-step p {
        font-size: 0.78rem !important;
    }
    .step-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
        box-shadow: 0 0 0 4px var(--bg-light) !important;
    }
}

/* --- 6. Extra Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {
    .cert-item {
        font-size: 0.8rem !important;
    }
    .nabh-icon {
        height: 36px;
    }
    .hero-title { 
        font-size: 2rem; 
    }
    .stats-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
}

/* --- 7. Tiny Screens / Older Devices (max-width: 360px) --- */
@media (max-width: 360px) {
    .brand-title { 
        font-size: 0.95rem !important; 
    }
    .navbar .cta-button { 
        padding: 6px 10px; 
        font-size: 0.75rem; 
    }
    .gallery-title {
        font-size: 0.52rem !important;
    }
    .service-card h3 {
        font-size: 0.85rem !important;
    }
    .service-card p {
        font-size: 0.78rem !important;
    }
    .service-card .cta-button {
        font-size: 0.75rem !important;
    }
    .testimonial-card {
        min-height: 200px !important;
    }
    .testimonial-card p {
        font-size: 0.82rem !important;
    }
    .testimonial-user-info h4 {
        font-size: 0.82rem !important;
    }
    .testimonial-user-info span {
        font-size: 0.72rem !important;
    }
    .video-review-info h4 {
        font-size: 0.8rem !important;
    }
    .review-tag {
        font-size: 0.7rem !important;
    }
    .video-review-play-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
    .process-timeline::before {
        left: 14px !important;
    }
    .process-step {
        padding: 6px 8px 6px 0 !important;
        gap: 10px !important;
    }
    .process-step h3 {
        font-size: 0.85rem !important;
    }
    .process-step p {
        font-size: 0.72rem !important;
    }
    .step-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        box-shadow: 0 0 0 3px var(--bg-light) !important;
    }
    .booking-info h2 {
        font-size: 1.3rem !important;
    }
    .booking-info p {
        font-size: 0.78rem !important;
    }
    .method {
        font-size: 0.78rem !important;
    }
    .booking-form-wrapper input, 
    .booking-form-wrapper select, 
    .booking-form-wrapper textarea {
        padding: 5px 8px !important;
        font-size: 0.78rem !important;
    }
    .booking-form-wrapper label {
        font-size: 0.7rem !important;
    }
    .footer-grid {
        gap: 6px !important;
    }
    .footer-col h3 {
        font-size: 0.68rem !important;
    }
    .footer-col a {
        font-size: 0.58rem !important;
    }
    .footer-col p {
        font-size: 0.58rem !important;
    }
    .brand-col h2 {
        font-size: 0.75rem !important;
    }
    .brand-col p {
        font-size: 0.4rem !important;
    }
    .google-rating {
        font-size: 0.58rem !important;
    }
    .social-links a {
        width: 20px !important;
        height: 20px !important;
    }
    .social-links a i {
        font-size: 9px !important;
    }
    .contact-col .cta-button {
        font-size: 0.6rem !important;
        padding: 5px 8px !important;
    }
    .map-info h3 {
        font-size: 1.1rem !important;
    }
    .map-info p {
        font-size: 0.78rem !important;
    }
    .map-embed {
        min-height: 180px !important;
        height: 180px !important;
    }
}
