/* ==========================================================================
   LEAD GENERATION EXPERTS - BLUE & GREEN DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Palette - Royal Blue & Emerald Green Theme */
    --primary-blue: #2563EB;
    --primary-blue-hover: #1D4ED8;
    --primary-blue-soft: #DBEAFE;
    --primary-blue-light: #EFF6FF;
    
    --accent-green: #10B981;
    --accent-green-hover: #059669;
    --accent-green-soft: #D1FAE5;
    --accent-green-light: #ECFDF5;
    
    --text-heading: #0F172A;
    --text-body: #475569;
    --text-muted: #64748B;
    
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-input: #F8FAFC;
    
    --border-light: #E2E8F0;
    --border-hover: #CBD5E1;
    --border-focus: #2563EB;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    --shadow-card: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    --shadow-blue-glow: 0 8px 25px rgba(37, 99, 235, 0.3);
    --shadow-green-glow: 0 8px 25px rgba(16, 185, 129, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transition */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Standards */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   Header Component
   -------------------------------------------------------------------------- */
.site-header {
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.logo-divider {
    width: 1.5px;
    height: 38px;
    background-color: #CBD5E1;
    margin: 0 0.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #0F172A;
}

.brand-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.38em;
    color: #10B981;
    margin-top: 3px;
}

.brand-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.12em;
    color: #64748B;
    margin-top: 4px;
    text-transform: uppercase;
}

.header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    color: #059669;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.header-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

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

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   Hero Section Layout
   -------------------------------------------------------------------------- */
.hero-section {
    flex: 1;
    padding: 3.5rem 1.5rem 4rem;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 3.5rem;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Left Side Hero Content
   -------------------------------------------------------------------------- */
.hero-left {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
}

.tagline-overline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.overline-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: var(--primary-blue-light);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.overline-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.main-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.15rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.highlight-accent {
    background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.sub-headline {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-body);
    max-width: 620px;
    margin-bottom: 2rem;
}

/* Primary Hero CTA Button */
.hero-cta-wrapper {
    margin-bottom: 2.5rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    padding: 0.95rem 2.25rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--shadow-blue-glow);
    transition: all var(--transition-normal);
}

.btn-hero-cta:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.45);
}

/* Micro-Trust Badges */
.micro-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trust-badge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.trust-badge-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon-box.green-icon-bg {
    background: var(--accent-green-light);
}

.badge-icon-box.teal-icon-bg {
    background: #F0F9FF;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--text-heading);
    line-height: 1.2;
}

.badge-sub {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Right Side Form Card
   -------------------------------------------------------------------------- */
.hero-right {
    position: sticky;
    top: 5rem;
}

.form-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563EB 0%, #10B981 100%);
}

.form-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-light);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-label {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
}

.step-indicator {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.time-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent-green-light);
    color: var(--accent-green-hover);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

/* Step Navigation Tabs */
.step-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
    border-bottom: 2.5px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.tab-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.tab-item.active {
    border-bottom-color: var(--primary-blue);
}

.tab-item.active .tab-number {
    background: var(--primary-blue);
    color: #FFFFFF;
}

.tab-item.active .tab-title {
    color: var(--text-heading);
    font-weight: 700;
}

/* Form Titles */
.form-main-title {
    margin-bottom: 1.25rem;
}

.form-main-title h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.form-main-title p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Progress Bar */
.progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563EB 0%, #10B981 100%);
    transition: width 0.4s ease;
}

/* Form Steps Visibility */
.form-step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Inputs & Controls */
.input-group {
    margin-bottom: 1.25rem;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.775rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-body);
    margin-bottom: 0.45rem;
}

.required {
    color: #EF4444;
    font-weight: 800;
}

.input-wrapper input,
.select-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-heading);
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.input-wrapper input::placeholder,
.select-wrapper select::placeholder,
.input-wrapper textarea::placeholder {
    color: #94A3B8;
}

.input-wrapper input:focus,
.select-wrapper select:focus,
.input-wrapper textarea:focus {
    background-color: #FFFFFF;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
}

.error-msg {
    display: none;
    font-size: 0.75rem;
    color: #EF4444;
    font-weight: 600;
    margin-top: 0.3rem;
}

.word-counter-box {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.4rem;
    text-align: right;
    transition: all var(--transition-fast);
}

.word-counter-box.valid {
    color: #10B981;
}

.word-counter-box.invalid {
    color: #EF4444;
}

.input-group.error .input-wrapper input,
.input-group.error .select-wrapper select,
.input-group.error .input-wrapper textarea {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.input-group.error .error-msg {
    display: block;
}

/* Buttons */
.form-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.95rem 1.75rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-blue-glow);
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green-glow);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FFFFFF;
    color: var(--text-body);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.2rem;
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-input);
}

/* Trust Footer */
.form-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.775rem;
    color: var(--text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.trust-divider {
    color: var(--border-hover);
}

/* --------------------------------------------------------------------------
   Success Confirmation State Card
   -------------------------------------------------------------------------- */
.success-card {
    text-align: center;
}

.success-content {
    padding: 1.5rem 0.5rem;
}

.success-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--accent-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.success-content h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.success-lead {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.success-details-box {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 700;
    color: var(--text-heading);
}

.highlight-badge {
    background: var(--accent-green);
    color: #FFFFFF;
    font-size: 0.725rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.success-next {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #25D366;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Footer Component
   -------------------------------------------------------------------------- */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 1.5rem;
    margin-top: auto;
    text-align: center;
}

.footer-container p {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-right {
        position: static;
    }
    
    .main-heading {
        font-size: 2.65rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 1rem;
    }
    
    .header-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .hero-section {
        padding: 2rem 1rem 3rem;
    }

    .main-heading {
        font-size: 2.15rem;
    }

    .sub-headline {
        font-size: 1rem;
    }

    .micro-trust-badges {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-card {
        padding: 1.5rem 1.25rem;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .step-tabs {
        gap: 0.25rem;
    }

    .tab-title {
        font-size: 0.75rem;
    }

    .tab-number {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}
