:root {
    --bg-primary: #f8f9fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
    --bg-dark: #1a1a2e;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5f6d;
    --text-muted: #8a8f9d;
    --text-light: #ffffff;
    --accent: #4361ee;
    --accent-dim: #3651de;
    --accent-glow: rgba(67, 97, 238, 0.15);
    --accent-light: rgba(67, 97, 238, 0.06);
    --border: #e5e7eb;
    --border-dark: #333333;
    --gradient-1: linear-gradient(135deg, #4361ee 0%, #6684ff 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: white;
}

.serif {
    font-family: 'Instrument Serif', serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.65rem 1.25rem;
    background: var(--text-primary);
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-cta:hover {
    background: #2a2a3e;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section with Hyperspace Effect */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Hyperspace Warp Effect */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--accent);
    border-radius: 2px;
    transform-origin: center center;
}

@keyframes warp {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    5% {
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 10vw + 1rem, 10rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
    max-width: 100%;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #2a2a3e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.2);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    width: 100%;
    max-width: 700px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-family: 'Instrument Serif', serif;
    /* Aumentado significativamente o tamanho da fonte com clamp para responsividade */
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 400;
    /* Mantém o peso regular para elegância */
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    /* Adicionado um pouco de espaço abaixo do número */
    /* Adicionado um brilho suave para destacar ainda mais */
    text-shadow: 0 0 30px rgba(67, 97, 238, 0.4);
    transition: transform 0.3s ease;
}

.stat:hover .stat-value {
    transform: scale(1.05);
    /* Leve zoom ao passar o mouse */
}

.stat-label {
    font-size: 0.85rem;
    /* Levemente aumentado para acompanhar os números maiores */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Sections */
section {
    padding: 6rem 4rem;
    position: relative;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    max-width: 100%;
    color: var(--text-primary);
    line-height: 1.1;
}

.section-title em {
    color: var(--accent);
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.2rem, 1.3rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Services Section */
.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-features {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.service-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 1.25rem;
    position: relative;
    list-style: none;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Differentials Section */
.differentials {
    background: var(--bg-secondary);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.diff-item {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.diff-item:hover {
    background: var(--bg-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.diff-number {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.75rem;
}

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

.diff-item p {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Calculator Section - Light Theme */
.calculator {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.calculator .section-label {
    color: var(--accent);
}

.calculator .section-title {
    color: var(--text-primary);
}

.calculator .section-subtitle {
    color: var(--text-secondary);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.calc-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.calc-form h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.calc-group {
    margin-bottom: 1.25rem;
}

.calc-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calc-group input,
.calc-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.calc-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.calc-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.calc-checkbox:hover {
    background: var(--bg-tertiary);
}

.calc-checkbox input {
    width: auto;
    accent-color: var(--accent);
}

.calc-btn {
    width: 100%;
    padding: 1rem;
    background: var(--text-primary);
    border: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border-radius: var(--radius-md);
}

.calc-btn:hover {
    background: #2a2a3e;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.2);
}

.calc-results {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.calc-results h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.result-item {
    padding: 1.25rem;
    background: var(--bg-primary);
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.result-value {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.result-value.danger {
    color: #ef4444;
}

.result-value.warning {
    color: #f59e0b;
}

.result-value.success {
    color: #10b981;
}

.result-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.risk-meter {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.risk-meter h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.risk-bar {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 5px;
}

.risk-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Coverage Section */
.coverage {
    background: var(--bg-secondary);
    padding: 6rem 4rem;
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* D3 Map Styling */
.coverage-map {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    min-height: 500px;
}

/* Map SVG specific styles */
.coverage-map svg {
    width: 100%;
    height: 100%;
    display: block;
}

.state {
    fill: #e5e7eb;
    /* Matches user's non-interactive grey */
    stroke: #ffffff;
    stroke-width: 0.8px;
    transition: all 0.2s ease;
}

.state.interactive {
    fill: #e0e7ff;
    /* Light accent blue */
    stroke: var(--accent);
    cursor: pointer;
}

/* Updated selector to include .active-state class for animation */
.state.interactive:hover,
.state.interactive.active-state {
    fill: var(--accent);
    /* Full accent color on hover/active */
    stroke: #3651de;
    stroke-width: 2px;
    filter: drop-shadow(0 0 8px rgba(67, 97, 238, 0.4));
}

.state.non-interactive {
    cursor: default;
}

/* Map Tooltip */
#map-tooltip {
    position: absolute;
    background: rgba(26, 26, 46, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 20;
    transform: translate(-50%, -150%);
    /* Center above cursor */
    white-space: nowrap;
}

#map-loading {
    position: absolute;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.coverage-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.coverage-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.coverage-info strong {
    color: var(--text-primary);
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.whatsapp-cta:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 2.5rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-highlight {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.25rem 0;
}

.about-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 2rem 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-years {
    flex-shrink: 0;
    text-align: center;
}

.about-years .number {
    font-family: 'Instrument Serif', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    animation: floatJiggle 6s ease-in-out infinite;
}

@keyframes floatJiggle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(0.3deg);
    }

    50% {
        transform: translateY(-2px) rotate(-0.2deg);
    }

    75% {
        transform: translateY(-6px) rotate(0.2deg);
    }
}

.about-years .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.4rem;
}

/* Logo Carousel */
.logo-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    /* Added explicit width constraints to prevent breaking on resize/mobile */
    width: 100%;
    max-width: 100%;
    /* Added min-width: 0 to force flex child to respect parent bounds */
    min-width: 0;
    /* More pronounced blurred edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-carousel::before,
.logo-carousel::after {
    display: none;
}

.logo-track {
    display: flex;
    gap: 4rem;
    /* Increased gap for better separation */
    animation: scrollLogos 30s linear infinite;
    /* Slower speed for better visibility */
    width: max-content;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    opacity: 0.4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Style for text logos */
.logo-item span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #4a4a5a;
    white-space: nowrap;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.contact-card.highlight {
    border-color: var(--accent);
    position: relative;
    background: var(--bg-secondary);
}

.contact-card.highlight::before {
    content: 'Recomendado';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-left: auto;
    margin-right: auto;
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.contact-link {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.contact-card.highlight .contact-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.contact-card.highlight .contact-link:hover {
    background: var(--accent-dim);
}

/* Form */
.contact-form {
    /* max-width: 850px; Removed to match the grid width above */
    width: 100%;
    margin: 3rem auto 0;
    text-align: left;
    background: var(--bg-secondary);
    padding: 2.5rem 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.form-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Pain Points Quick Select */
.pain-points {
    margin-bottom: 1.25rem;
}

.pain-points label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.pain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pain-tag {
    padding: 0.5rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.pain-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pain-tag.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pain-tag input {
    display: none;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--text-primary);
    border: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.form-submit:hover {
    background: #2a2a3e;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.2);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 1.5rem 2rem;
    }

    section {
        padding: 5rem 2rem;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coverage-content,
    .calc-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .coverage-map {
        /* Removed order: -1 to let map fall naturally below text */
        min-height: 400px;
    }

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

    .about-stats-row {
        flex-direction: column;
        gap: 2rem;
    }

    .about-years {
        padding-right: 0;
        padding-bottom: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

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

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

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

    .calc-checkboxes {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-years .number {
        font-size: 3.5rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}