/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors (Extracted from Logo) */
    --primary: #0a2240;             /* Navy Blue (Solid, Corporate) */
    --primary-light: #12335c;       /* Medium Navy */
    --primary-rgb: 10, 34, 64;
    
    --accent: #1e73be;              /* Sky/Royal Blue (Action, Modernity) */
    --accent-hover: #155a96;
    --accent-light: #e8f3fc;
    --accent-rgb: 30, 115, 190;
    
    /* Semantic Colors */
    --text-dark: #1e293b;           /* Slate 800 */
    --text-muted: #64748b;          /* Slate 500 */
    --text-light: #ffffff;
    --bg-light: #f8fafc;            /* Slate 50 */
    --bg-white: #ffffff;
    --success: #10b981;             /* Emerald 500 */
    --success-light: #ecfdf5;
    --error: #ef4444;               /* Red 500 */
    --error-light: #fef2f2;
    
    /* Borders & Shadow Tokens */
    --border-color: #e2e8f0;        /* Slate 200 */
    --border-focus: #93c5fd;        /* Blue 300 */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(10, 34, 64, 0.06), 0 10px 10px -5px rgba(10, 34, 64, 0.03);
    --shadow-premium: 0 25px 50px -12px rgba(10, 34, 64, 0.15);
    --shadow-glow: 0 0 20px rgba(30, 115, 190, 0.2);
    
    /* Transition & Animation Defaults */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Safeguard zoom on iOS */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    accent-color: var(--accent); /* Native tint for checkbox/radio */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.25;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px; /* Tap target compliance */
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Focus states for accessibility */
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 2px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
}

.main-header.scrolled .header-container {
    height: 70px;
}

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

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.main-header.scrolled .logo-img {
    height: 46px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

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

.nav-btn-link {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-btn-link:hover {
    color: var(--accent);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

/* Hamburger lines style */
.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: background-color 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger open state */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 120px;
    background: linear-gradient(135deg, #020b18 0%, #081d38 50%, #0f2b4e 100%);
    color: var(--text-light);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

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

.hero-badge {
    background-color: rgba(30, 115, 190, 0.15);
    border: 1px solid rgba(30, 115, 190, 0.3);
    color: #93c5fd;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(120deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hero-section .btn-outline {
    color: var(--bg-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-section .btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--bg-light);
    color: var(--primary);
}


.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Hero Visual & Interactive Card Stack */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.hero-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    position: relative;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card-header-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.card-header-logo .brand-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-light);
}

.badge-status {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.card-body-content {
    margin-bottom: 2.5rem;
}

.label-info {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.val-info {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.grid-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-card-details .val-info {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.card-footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
}

/* Floating supportive elements */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 6;
}

.floating-card h4 {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.floating-card p {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.floating-card.c1 {
    top: -40px;
    right: -20px;
    animation: floating-anim 6s ease-in-out infinite;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.floating-card.c2 {
    bottom: -30px;
    left: -40px;
    flex-direction: column;
    align-items: flex-start;
    animation: floating-anim 6s ease-in-out infinite 3s;
    max-width: 180px;
}

.badge-tag {
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

/* Keyframes animations */
@keyframes floating-anim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards 0.2s;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title.animate-slide-up { animation-delay: 0.3s; }
.hero-subtitle.animate-slide-up { animation-delay: 0.4s; }
.hero-actions.animate-slide-up { animation-delay: 0.5s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* ==========================================================================
   PRODUCTS & SERVICES SECTION
   ========================================================================== */
.products-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.product-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.product-icon {
    width: 28px;
    height: 28px;
}

.product-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.product-features li {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: "✓";
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.product-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    align-self: flex-start;
}

/* Highlighted Product Card styling */
.product-card.highlighted {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background-color: var(--primary);
    color: var(--text-light);
}

.product-card.highlighted h3 {
    color: var(--text-light);
}

.product-card.highlighted p {
    color: #94a3b8;
}

.product-card.highlighted .product-icon-wrapper {
    background-color: rgba(30, 115, 190, 0.2);
    color: #93c5fd;
}

.product-card.highlighted .product-features {
    border-color: rgba(255, 255, 255, 0.1);
}

.product-card.highlighted .product-features li {
    color: var(--text-light);
}

.product-card.highlighted .product-link {
    color: #93c5fd;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--accent);
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 2.5rem;
    transform: rotate(45deg);
    text-transform: uppercase;
}

/* ==========================================================================
   SIMULATOR SECTION
   ========================================================================== */
.simulator-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bg-white);
}

.simulator-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 4rem;
    box-shadow: var(--shadow-md);
}

.simulator-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.simulator-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.simulator-info h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.simulator-info p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.simulator-list {
    list-style: none;
}

.simulator-list li {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.simulator-calc {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.calc-tabs {
    display: flex;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 0.35rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.25rem;
}

.calc-tab {
    flex: 1;
    min-width: 100px;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.6rem 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    text-align: center;
}

.calc-tab.active {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.value-display {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.value-display .currency {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.value-display .amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Range slider customization */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    margin-bottom: 0.5rem;
}

/* Track filling dynamically with JS, or fallback to accent-color */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.1s;
    border: 2px solid var(--bg-white);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.calc-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}

.calc-results {
    margin-bottom: 2rem;
}

.result-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-val.highlight {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--success);
}

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

/* ==========================================================================
   LEAD CAPTURE FORM SECTION
   ========================================================================== */
.cadastro-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bg-light);
}

.form-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Stepper Navigation */
.stepper-nav {
    margin-bottom: 3.5rem;
}

.stepper-list {
    display: flex;
    list-style: none;
    position: relative;
    justify-content: space-between;
}

.stepper-list::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    text-align: center;
}

.step-item.active .step-num {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.step-item.active .step-text {
    color: var(--primary);
    font-weight: 700;
}

.step-item.completed .step-num {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.step-item.completed .step-text {
    color: var(--primary);
}

/* Form Panel control */
.form-step-panel {
    display: none;
}

.form-step-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.form-fieldset {
    border: none;
    margin-bottom: 2rem;
}

.form-legend {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* STEP 1: Profile Selector Card Grid */
.profile-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.profile-option-label {
    cursor: pointer;
    position: relative;
}

.profile-option-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.profile-card-content {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    height: 100%;
}

.profile-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.profile-icon svg {
    width: 22px;
    height: 22px;
}

.profile-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

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

/* Radio select highlights */
.profile-option-label input[type="radio"]:checked + .profile-card-content {
    border-color: var(--accent);
    background-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.profile-option-label input[type="radio"]:checked + .profile-card-content .profile-icon {
    background-color: var(--accent);
    color: var(--text-light);
}

/* Grid & fields formatting */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 48px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

/* Pre-styled feedback text */
.error-feedback {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Real-time :user-invalid validation triggers */
.lead-form input:user-invalid,
.lead-form select:user-invalid,
.lead-form textarea:user-invalid {
    border-color: var(--error);
    background-color: var(--error-light);
}

.lead-form input:user-invalid + .error-feedback,
.lead-form select:user-invalid + .error-feedback {
    display: block;
}

/* Fallback class trigger if browser doesn't natively support :user-invalid */
.lead-form input.user-invalid-fallback {
    border-color: var(--error);
    background-color: var(--error-light);
}

.lead-form input.user-invalid-fallback + .error-feedback {
    display: block;
}

/* Currency input prefix styling */
.input-currency-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-currency-wrapper .prefix {
    position: absolute;
    left: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
}

.input-currency-wrapper input {
    padding-left: 2.25rem !important;
    width: 100%;
}

/* Checkbox specific design */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.terms-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.4;
}

.terms-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Step navigation actions styling */
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
}

/* Accessible hidden element class helper */
.visually-hidden {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

/* Custom Checkbox Branded Fallback (for older browsers) */
@supports not (accent-color: var(--accent)) {
    /* Apply custom checks */
    .terms-label {
        position: relative;
        padding-left: 2rem;
    }
    .terms-label input[type="checkbox"] {
        position: absolute;
        clip-path: inset(50%);
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
    }
    .terms-label span::before {
        content: "";
        position: absolute;
        left: 0;
        top: 2px;
        width: 18px;
        height: 18px;
        border: 2px solid var(--border-color);
        background: var(--bg-white);
        border-radius: 4px;
        box-sizing: border-box;
        transition: var(--transition);
    }
    .terms-label input[type="checkbox"]:checked + span::before {
        background-color: var(--accent);
        border-color: var(--accent);
    }
    .terms-label input[type="checkbox"]:checked + span::after {
        content: "✓";
        position: absolute;
        left: 4px;
        top: 2px;
        color: var(--text-light);
        font-weight: bold;
        font-size: 0.75rem;
    }
    .terms-label input[type="checkbox"]:focus-visible + span::before {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
}

/* Success Screen Animation */
.success-screen {
    text-align: center;
    padding: 3rem 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--success);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--success);
    animation: fillSuccess 0.4s ease-in-out 0.4s forwards, scaleCheckmark 0.3s ease-in-out alternate;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success);
    fill: none;
    animation: strokeSuccess 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--text-light);
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-screen h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.success-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.success-body-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2.5rem;
}

@keyframes strokeSuccess {
    100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
    100% { stroke-dashoffset: 0; }
}

@keyframes fillSuccess {
    100% { box-shadow: inset 0px 0px 0px 40px var(--success); }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   INSTITUTIONAL / ABOUT SECTION
   ========================================================================== */
.about-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.about-stat h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.about-stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-wrapper {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-team-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive overrides for about section */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .about-info {
        align-items: center;
    }
}


/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.rating {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
    color: var(--text-dark);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--accent);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* Highlighted Testimonial card style */
.highlighted-testimonial {
    border-color: var(--accent-light);
    background-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.highlighted-testimonial .user-avatar {
    background-color: var(--primary);
}

/* ==========================================================================
   FAQ ACCORDION SECTION
   ========================================================================== */
.faq-section {
    padding-top: 100px;
    padding-bottom: 120px;
    background-color: var(--bg-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid transparent;
    transition: opacity 0.3s ease;
}

/* Open states */
.faq-question[aria-expanded="true"] {
    color: var(--accent);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   MODALS SYSTEM (PORTAL & VERIFICATION)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(9, 21, 38, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-links {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.portal-links a {
    color: var(--accent);
}

/* Certificate validation result board */
.validation-result-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.4s ease;
}

.result-status-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-status-title.valid {
    color: var(--success);
}

.result-status-title.invalid {
    color: var(--error);
}

.validation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.validation-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.validation-table td.field-lbl {
    font-weight: 600;
    color: var(--primary);
    width: 40%;
}

.validation-table td.field-val {
    color: var(--text-dark);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float-btn:hover {
    background-color: #128c7e;
    transform: scale(1.08);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--primary);
    color: #cbd5e1;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #94a3b8;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-grid h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-info li {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-contact-info strong {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #64748b;
    transition: var(--transition);
}

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

/* ==========================================================================
   RESPONSIVENESS (MOBILE FIRST COMPLIANCE)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .simulator-box {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    /* Mobil Nav Overlay styles */
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--primary);
        padding: 3rem 1.5rem;
        display: none;
        flex-direction: column;
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-link, .nav-btn-link {
        color: var(--text-light);
        font-size: 1.25rem;
    }
    
    .nav-cta, .nav-portal-btn {
        display: none; /* Inside header list or layout */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-options-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .stepper-list::before {
        display: none; /* Hide stepper connecting line on mobile */
    }
    
    .stepper-list {
        gap: 1rem;
    }
    
    .step-text {
        font-size: 0.75rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .simulator-box {
        padding: 2rem 1.5rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide on mobile to save space */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .floating-card.c1 {
        right: 0px;
        top: -20px;
    }
    
    .floating-card.c2 {
        left: 0px;
        bottom: -20px;
    }
    
    .hero-card-stack {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-image-wrapper {
        height: 300px;
    }
    
    .hero-visual {
        height: auto;
        padding: 2rem 0;
    }
}

