/* Mopstarts Design System */
:root {
    /* Color Palette - Fresh & Clean */
    --primary: #00b4d8;
    /* Fresh Blue */
    --primary-dark: #0077b6;
    --secondary: #90e0ef;
    /* Light Blue */
    --accent: #caf0f8;
    /* Very Light Blue */
    --text-dark: #1d3557;
    /* Navy for text */
    --text-light: #f1faee;
    /* Off-white */
    --white: #ffffff;
    --success: #2a9d8f;
    --bg-light: #f8f9fa;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

/* Validation Error State */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .top-bar .container {
        justify-content: center;
        gap: 1rem;
        font-size: 0.8rem;
    }
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    /* Ensure no underline on hover */
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    justify-content: center;
}

.logo-main {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
    /* Add space between title and tagline */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.6)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(rgba(0, 119, 182, 0.8), rgba(0, 119, 182, 0.6)), url('../assets/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.9;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .hero h1 {
        font-size: 2.5rem !important;
        /* Override inline styles if any */
    }

    .hero p {
        font-size: 1rem !important;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    .services-grid,
    .why-grid,
    .testimonial-grid,
    .highlights-grid,
    .footer-grid,
    .addons-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .cta-box {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .top-bar {
        display: none;
        /* Hide top bar on mobile to save space */
    }
}

/* Customer Stories */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: serif;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-dark);
}

.testimonial-role {
    font-size: 0.85rem;
    color: #666;
}

/* --- Contact Page Specifics --- */
.contact-hero {
    background: linear-gradient(rgba(0, 119, 182, 0.8), rgba(0, 119, 182, 0.6)), url('../assets/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 140px;
    /* Reduced padding */
    /* Extra padding bottom for overlap */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Removed SVG overlay as requested */
.contact-hero::before {
    display: none;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-wrapper {
    margin-top: -100px;
    /* Negative margin for overlap */
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    max-width: 1000px;
    /* Constrain width */
    margin: 0 auto;
    /* Center the card */
}

.contact-info-side {
    background: var(--primary-dark);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form-side {
    padding: 3rem;
}

.modern-input {
    width: 100%;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.modern-input:focus {
    background: white;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modern-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .contact-card {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-info-side,
    .contact-form-side {
        padding: 2rem;
    }

    .contact-wrapper {
        margin-top: -50px;
    }

    .contact-hero {
        padding: 60px 0 100px;
    }
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    /* KEY FIX: Let clicks pass through the container */
}

.chat-popup {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    max-width: 300px;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    position: relative;
}

.chat-popup.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
    /* Only interactive when active */
}

.chat-popup h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.chat-popup p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.chat-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    /* KEY FIX: Make sure the button itself is clickable */
}

.chat-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.chat-btn svg {
    width: 30px;
    height: 30px;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin: 4rem 0;
}

.stat-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Why Choose Us Modern */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.why-icon {
    background: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* Mascot */
.mascot-container {
    position: relative;
    display: inline-block;
}

.mascot-img {
    max-width: 150px;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-mascot {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 120px;
    transform: rotate(-10deg);
    display: none;
}

@media (min-width: 768px) {
    .cta-mascot {
        display: block;
    }
}

/* --- Services Page Overhaul --- */

/* Service Highlights */
.highlights-section {
    background-color: var(--white);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Enhanced Service Cards */
.service-card-enhanced {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card-header {
    background-color: var(--bg-light);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-pricing {
    margin-top: auto;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
}

.price-sub {
    font-size: 0.85rem;
    color: #777;
    font-weight: 400;
}

/* How It Works */
.how-it-works-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.3);
}

.step-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Expectations Checklist */
.expectations-section {
    padding: var(--spacing-xl) 0;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.check-icon {
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Add-On Services */
.addons-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--white);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.addon-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.addon-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.addon-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.addon-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.addon-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Mobile Responsiveness Fixes */
@media (max-width: 768px) {

    /* Force single column for all grids EXCEPT highlights */
    .services-grid,
    .addons-grid,
    .steps-grid,
    .checklist-grid,
    .why-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    /* Horizontal Scroll for Highlights */
    .highlights-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        gap: 1.5rem;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .highlight-item {
        min-width: 120px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Reduce spacing */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    /* Adjust card padding */
    .service-card-enhanced,
    .addon-card,
    .step-card,
    .contact-card,
    .stat-item {
        padding: 1.5rem;
    }

    .service-card-body {
        padding: 1.5rem;
    }

    .service-card-header {
        padding: 1.5rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* --- Modern Hero Section --- */
.hero-modern {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to right, #f8f9fa 50%, #fff 50%);
    overflow: hidden;
}

.hero-modern .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 1rem;
    height: 500px;
    position: relative;
}

.hero-img-block {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-img-block:hover {
    transform: translateY(-5px);
}

.hero-img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image 1: Large Main (Living Room) */
.img-1 {
    grid-column: 1 / 9;
    grid-row: 1 / 13;
    z-index: 1;
}

/* Image 2: Top Right (Kitchen) */
.img-2 {
    grid-column: 9 / 13;
    grid-row: 1 / 7;
    z-index: 2;
}

/* Image 3: Bottom Right (Detail) */
.img-3 {
    grid-column: 9 / 13;
    grid-row: 7 / 13;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-modern {
        background: #f8f9fa;
        text-align: center;
        padding: 4rem 0;
    }

    .hero-modern .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image-grid {
        height: 400px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-image-grid {
        display: none;
        /* Hide complex grid on mobile for simplicity, or simplify it */
    }

    /* Optional: Show just one main image on mobile if desired, but for now hiding to keep it clean as per 'block image' request usually implies desktop impact */
    .hero-modern {
        padding-bottom: 2rem;
    }
}

/* --- Quote Wizard Styles --- */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    z-index: 2;
    width: var(--progress, 20%);
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.step {
    width: 30px;
    height: 30px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.step.active {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2);
}

.step.completed {
    background: var(--success);
    color: white;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Option Cards (Service Type) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Fix: Make cards rectangular to save space */
    .card-content {
        aspect-ratio: auto !important;
        /* Override the 1/1 ratio */
        flex-direction: row !important;
        /* Horizontal layout on tiny screens */
        padding: 1rem !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .option-card .icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0 !important;
        /* Align with text */
    }

    .option-card .label {
        font-size: 1rem !important;
    }
}

.option-card {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
    /* Ensure the input can cover this */
    display: block;
}

.option-card:hover {
    transform: translateY(-5px);
}

.option-card input {
    position: absolute;
    opacity: 0.01;
    /* Ensure it captures events */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    /* Sit on top of content */
    cursor: pointer;
}

.card-content {
    background: white;
    border: 2px solid #f1f3f5;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
    /* Sit below input */
}

.option-card input:checked+.card-content {
    border-color: var(--primary);
    background: #f0f9ff;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.15);
    transform: translateY(-2px);
}

.option-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f8f9fa;
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.option-card input:checked+.card-content .icon {
    background: var(--primary);
    color: white;
}

.option-card .label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Animation for error feedback */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Counter Controls */
.counter-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.counter-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.counter-controls input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    background: transparent;
}

/* Frequency Options */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.option-row {
    cursor: pointer;
    position: relative;
}

.option-row input {
    position: absolute;
    opacity: 0;
}

.row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.option-row input:checked+.row-content {
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.05);
}

.badge {
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Extras Grid */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.extra-card {
    cursor: pointer;
    position: relative;
}

.extra-card input {
    position: absolute;
    opacity: 0;
}

.extra-card .card-content {
    padding: 1rem;
}

.extra-card input:checked+.card-content {
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.05);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.full-width {
    grid-column: span 2;
}


/* Navigation Buttons */
.wizard-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    position: relative;
    z-index: 100;
    /* Ensure buttons are clickable */
}

@media (max-width: 600px) {

    .options-grid,
    .extras-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .wizard-nav {
        margin-top: 1rem;
        padding-bottom: 1rem;
        /* Extra touch space */
    }
}

/* --- Contact Page Redesign --- */

/* Wizard Section */
.wizard-section {
    margin-top: -100px;
    position: relative;
    z-index: 20;
    /* Increased to ensure it's above hero */
    padding-bottom: 4rem;
}

.wizard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-item .icon-circle {
    margin: 0 auto 1rem;
    background: var(--accent);
    color: var(--primary-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .wizard-section {
        margin-top: -50px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .wizard-card {
        padding: 0.75rem;
    }

    /* Aggressive scaling */
    .wizard-card h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .wizard-card p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .wizard-progress {
        margin-bottom: 1rem;
    }

    .step-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* Compact Option Cards */
    .option-card .card-content {
        padding: 0.75rem;
        min-height: auto;
        aspect-ratio: auto;
    }

    .option-card .icon {
        width: 40px;
        height: 40px;
    }

    .option-card .icon svg {
        width: 24px;
        height: 24px;
    }

    .option-card .label {
        font-size: 0.9rem;
    }
}