/* Mobile Styles - Extracted from style.css */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Install Banner Premium Styles */
.install-banner {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.banner-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.banner-text p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.install-btn {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.install-btn:active {
    transform: scale(0.95);
}

.close-banner {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.close-banner:hover {
    color: #ef4444;
    background: #fef2f2;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Location Banner */
@media (max-width: 600px) {
    .location-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        border-radius: 12px;
    }

    .share-btn {
        width: 80px;
        height: 46px;
        border-radius: 30px;
        padding: 0;
        justify-content: center;
        font-size: 30px;
    }

    .share-btn i {
        margin: 0;
    }
}

/* Navbar */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 10px;
        gap: 15px;
    }

    #menu-toggle:checked+.hamburger-icon+.nav-links {
        display: flex;
    }

    .hamburger-icon {
        display: block;
        margin-top: 10px;
    }

    .chat-button {
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* Device Section */
@media (max-width: 1024px) {
    .device-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .device-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .fancy-divider h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 500px) {
    .device-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .device {
        width: 85%;
        padding: 20px;
    }
}

/* Form Section */
@media (max-width: 900px) {
    #Form {
        padding: 35px 25px;
    }

    .input-row {
        gap: 15px;
    }

    .input-row>div {
        min-width: 100%;
    }

    .fancy-divider h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    #Form {
        padding: 25px 20px;
        margin: 25px auto;
    }

    .fancy-divider h2 {
        font-size: 1.5rem;
    }

    label {
        font-size: 15px;
    }

    input,
    select,
    textarea {
        font-size: 15px;
    }

    input[type="submit"] {
        font-size: 15px;
        padding: 12px 16px;
    }

    .modal-content {
        width: 90%;
        padding: 22px;
    }
}

/* PWA Install Banner & Splash Screen */
@media (max-width: 600px) {
    .install-banner {
        padding: 10px 15px;
        bottom: 60px;
        /* Adjusted for bottom nav height */
    }

    .banner-text p {
        display: none;
        /* Simplify on very small screens */
    }
}

/* =========================================
   ADDITIONAL MOBILE STYLES (Extracted)
   ========================================= */

/* Testimonials */
@media (max-width: 768px) {
    .testimonial-box {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-section h2 {
        font-size: 1.8rem;
    }

    .testimonial {
        width: 90%;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 60px 15px;
    }

    .testimonial {
        max-width: 100%;
        padding: 20px;
    }
}

/* Steps (How It Works) */
@media (max-width: 768px) {
    .step {
        flex-direction: column;
        text-align: center;
    }

    .text {
        text-align: center;
    }

    .step-image {
        margin-bottom: 15px;
    }
}

/* FAQ */
@media (max-width: 768px) {
    .faq-item {
        margin: 0 10px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.95rem;
    }
}

/* Splash Screen Text */
@media (max-width: 480px) {
    .banner-text p {
        display: none;
    }
}

/* =========================================
   MOBILE APP UI OVERRIDES (Extracted)
   ========================================= */

:root {
    --bottom-nav-height: 65px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --primary-color: #22c55e;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
}

/* Base Mobile optimisations */
html,
body {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 20px) !important;
    }
}

/* Hide default desktop nav on mobile */
@media (max-width: 768px) {
    .nav-container {
        display: none !important;
    }

    /* Sticky Simple Top Bar for Mobile */
    header.mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    header.mobile-header img.logo-img {
        height: 40px;
        width: auto;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .header-icon {
        font-size: 22px;
        color: #64748b;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    .header-icon.primary {
        color: #22c55e;
    }

    .header-icon:hover {
        color: #1FC181;
    }
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        z-index: 9999;
        padding-bottom: var(--safe-area-bottom);
        box-sizing: border-box;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        text-decoration: none;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
        transition: all 0.3s ease;
    }

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-item.active i {
        transform: translateY(-3px);
    }

    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        width: 4px;
        height: 4px;
        background: var(--primary-color);
        border-radius: 50%;
    }

    .nav-item:active {
        background-color: rgba(34, 197, 94, 0.05);
    }
}

/* Improve Card Layout for Mobile */
@media (max-width: 768px) {
    .device-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 5px;
    }

    .device {
        width: 100% !important;
        padding: 15px;
        box-sizing: border-box;
    }

    .device img {
        width: 60px;
        height: 60px;
    }

    .fancy-divider h2 {
        font-size: 1.5rem !important;
    }
}

/* Form & Input Optimisations */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }

    input[type="submit"] {
        min-height: 52px;
        font-size: 18px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Further Mobile Sections Optimizations */
@media (max-width: 768px) {

    /* Location Banner */
    .location-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
        margin: 10px;
        border-radius: 20px;
    }

    .location-text {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .location-left i {
        font-size: 32px;
    }

    /* Repair Banner */
    .repair-banner {
        padding: 25px 15px;
        margin: 10px;
        border-radius: 16px;
    }

    .repair-banner h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Why Choose Us */
    .reasons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .reason {
        max-width: 100%;
        padding: 15px 10px;
    }

    .reason img {
        width: 50px;
        height: 50px;
    }

    .reason h4 {
        font-size: 15px;
    }

    /* How It Works */
    .how-it-works-section {
        padding: 40px 15px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .step-image {
        margin-bottom: 10px;
        width: 60px;
        height: 60px;
    }

    .step-title {
        font-size: 1.2rem;
    }

    /* Footer */
    .site-footer {
        padding-bottom: 90px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .footer-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }
}