/**
 * Avaliador Imob - Styles
 * Landing Page Otimizada
 * @version 2.0.0
 */

/* ========== RESET & VARIABLES ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Deep Navy Blue */
    --primary-900: #020617;
    --primary-800: #0F172A;
    --primary-700: #1E293B;
    --primary-600: #334155;

    /* Accent Colors */
    --accent-400: #E8C547;
    --accent-500: #D4A533;
    --accent-600: #B8860B;

    /* Neutral Colors */
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;

    /* Functional */
    --white: #FFFFFF;
    --success: #10B981;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(12px);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--neutral-100);
    color: var(--neutral-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(165deg, var(--primary-900) 0%, var(--primary-800) 40%, var(--primary-700) 100%);
    min-height: 100vh;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 10px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.badge-text {
    color: var(--neutral-200);
    font-size: 14px;
    font-weight: 500;
}

/* Headline */
.headline {
    color: var(--white);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.headline-accent {
    background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-500) 50%, var(--accent-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    display: inline;
    padding: 0 4px;
}

.subheadline {
    color: var(--neutral-300);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

/* Glass Button */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(232, 197, 71, 0.95) 0%, rgba(212, 165, 51, 0.98) 50%, rgba(184, 134, 11, 1) 100%);
    backdrop-filter: var(--glass-blur);
    color: var(--neutral-900);
    font-size: 17px;
    font-weight: 700;
    padding: 18px 36px;
    border: 1px solid rgba(232, 197, 71, 0.4);
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(212, 165, 51, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn-glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 165, 51, 0.4);
}

.btn-glass:active {
    transform: translateY(-1px);
}

.btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Guarantee */
.guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-300);
    font-size: 14px;
}

.guarantee svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    min-width: 140px;
    transition: all var(--transition-normal);
}

.stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.stat-number {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.stat-number span {
    background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--neutral-300);
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

/* Hero Visual - Image + Floating Badges */
.hero-visual {
    position: relative;
    height: 450px;
    display: none;
}

/* Central Image */
.hero-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

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

/* Placeholder quando não há imagem */
.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--accent-400);
    opacity: 0.8;
}

.hero-image-placeholder span {
    color: var(--neutral-300);
    font-size: 14px;
    font-weight: 500;
}

/* Floating Badges - Glassmorphism Style */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: floatBadge 5s ease-in-out infinite;
    transition: all var(--transition-normal);
    z-index: 10;
}

.floating-badge:hover {
    transform: scale(1.05) translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(232, 197, 71, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.floating-badge-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 165, 51, 0.3);
}

.floating-badge-icon svg {
    width: 16px;
    height: 16px;
    color: var(--neutral-900);
}

.floating-badge span {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Badge Positions - 4 badges */
.floating-badge-1 { top: 5%; left: 0; animation-delay: 0s; }
.floating-badge-2 { top: 8%; right: 0; animation-delay: 0.8s; }
.floating-badge-3 { bottom: 30%; left: -5%; animation-delay: 1.6s; }
.floating-badge-4 { bottom: 25%; right: -5%; animation-delay: 0.4s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Legacy floating-icon support */
.floating-icon {
    display: none;
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
}

.section-dark {
    background: linear-gradient(180deg, var(--primary-900) 0%, var(--primary-800) 100%);
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.section-light {
    background: var(--neutral-50);
}

.section-header {
    margin-bottom: 48px;
}

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

.section-header-center .section-subtitle {
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-tag-light {
    background: rgba(12, 74, 110, 0.08);
    border: 1px solid rgba(12, 74, 110, 0.15);
    color: var(--primary-700);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}

.section-title-dark {
    color: var(--neutral-900);
}

.section-subtitle {
    font-size: 17px;
    color: var(--neutral-300);
    max-width: 600px;
}

.section-subtitle-dark {
    color: var(--neutral-600);
}

/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--neutral-900);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* ========== STEPS / COMO FUNCIONA ========== */
.steps-container {
    position: relative;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 360px;
    transition: all var(--transition-normal);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 197, 71, 0.3);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -1px;
    left: 32px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(232, 197, 71, 0.4) 0%, rgba(232, 197, 71, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(212, 165, 51, 0.3);
}

.step-icon svg {
    width: 36px;
    height: 36px;
    color: var(--neutral-900);
}

.step-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.step-text {
    font-size: 15px;
    color: var(--neutral-400);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    opacity: 0.4;
}

.step-connector svg {
    width: 32px;
    height: 32px;
    color: var(--accent-400);
}

.steps-cta {
    margin-top: 56px;
    text-align: center;
}

/* Steps Desktop Layout */
@media (min-width: 900px) {
    .steps-grid {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 0;
    }

    .step-card {
        flex: 1;
        max-width: 340px;
        display: flex;
        flex-direction: column;
    }

    .step-card .step-text {
        flex-grow: 1;
    }

    .step-connector {
        transform: rotate(0deg);
        min-width: 60px;
        opacity: 0.5;
    }

    .step-connector svg {
        width: 40px;
        height: 40px;
    }
}

/* ========== DIFERENCIAIS ========== */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.diff-card {
    background: var(--white);
    border: 2px solid var(--neutral-200);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all var(--transition-normal);
}

.diff-card:hover {
    border-color: var(--primary-600);
    box-shadow: 0 10px 30px rgba(12, 74, 110, 0.1);
}

.diff-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-800);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.diff-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.diff-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.3;
}

/* ========== TESTIMONIALS CAROUSEL ========== */
.testimonial-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    flex: 0 0 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-sizing: border-box;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    justify-content: center;
}

.testimonial-stars svg {
    width: 22px;
    height: 22px;
    color: var(--accent-400);
    fill: var(--accent-400);
}

.testimonial-text {
    font-size: 18px;
    color: var(--neutral-200);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-900);
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    font-style: normal;
}

.testimonial-role {
    font-size: 14px;
    color: var(--neutral-400);
}

.testimonial-google {
    width: 28px;
    height: 28px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-400);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-dot.active {
    background: var(--accent-400);
    width: 28px;
    border-radius: 10px;
}

/* ========== FAQ ========== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-question-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-900);
}

.faq-icon {
    min-width: 24px;
    height: 24px;
    transition: transform var(--transition-normal);
}

.faq-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-700);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-text {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(165deg, var(--primary-900) 0%, var(--primary-800) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-urgency {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 24px;
    border-radius: 100px;
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--success);
}

.cta-urgency svg {
    width: 20px;
    height: 20px;
}

.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: var(--neutral-300);
    margin-bottom: 36px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--neutral-900);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.footer-text {
    font-size: 14px;
    color: var(--neutral-500);
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--neutral-400);
    transition: color var(--transition-normal);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.footer-link:hover {
    color: var(--accent-400);
}

.footer-link svg {
    width: 28px;
    height: 28px;
}

.footer-copy {
    font-size: 13px;
    color: var(--neutral-600);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
    color: white;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--neutral-100);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--neutral-200);
    color: var(--neutral-900);
}

.modal-header {
    padding: 32px 32px 0;
    text-align: center;
}

.modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--neutral-600);
}

.modal-form {
    padding: 24px 32px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--neutral-900);
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.1);
}

.form-input::placeholder {
    color: var(--neutral-400);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .btn-icon {
    width: 22px;
    height: 22px;
}

.form-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--neutral-500);
    margin-top: 16px;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
    .hero {
        padding: 100px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero-visual {
        display: block;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: baseline;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (min-width: 1024px) {
    .diff-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .section {
        padding: 100px 0;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-800);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}
