:root {
    --brand-cyan: #00d4ff;
    --brand-pink: #ff3aa6;
    --bg-deep: #0b1020;
    --accent-blue: #2563eb;
    --accent-purple: #a788dc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --card-bg: rgba(15, 23, 42, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--brand-cyan), var(--brand-pink));
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

* {
    font-family: 'Inter', sans-serif;
}

html, body {
    height: 100%;
    background: #0f172a;
    color: var(--text-primary); 
    overflow: unset !important;   
}

.container {
    max-width: 1400px;
}

.modern-nav {
    position: fixed; /* make it independent of flow */
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999; /* ensure it stays on top */
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hide on scroll */
.modern-nav.scrolled {
    transform: translateY(-100%); /* actually moves it up */
    background: rgba(8, 12, 24, 0.98);
    padding: 8px 0;
}

.navbar .nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 4px;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    border-radius: 8px;
}

/* .navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
} */

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
}

.brand-text {
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.logo-main {
    height: 60px;
    width: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-main {
    transform: rotate(5deg) scale(1.05);
}
.animated-header {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(125deg, rgba(11,16,32,0.95) 0%, rgba(37,99,235,0.4) 50%, rgba(255,58,166,0.4) 100%);
    overflow: hidden;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--brand-cyan);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Buttons - Matching your contact page */
.btn {
    /* padding: 0.75rem 1.5rem; */
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-pill {
    border-radius: 50px !important;
    padding: 1rem;
}

.btn-lg {
    /* padding: 1.25rem 2.5rem !important; */
    font-size: 1.125rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    margin: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.section-padding {
    padding: 100px 0;
}

.section-result-padding {
    padding-top: 40px;
}

.section-cta-result-padding {
    padding: 60px;
    padding-bottom: 100px;
}


.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

.section-result-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}
.use-case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s ease;
    backdrop-filter: blur(6px);
}

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.use-case-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.use-case-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.use-case-savings {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 168, 89, 0.1);
    border: 1px solid rgba(0, 168, 89, 0.3);
    border-radius: 8px;
    color: #00a859;
    font-size: 0.875rem;
    font-weight: 600;
}

/* BEFORE automation (negative / manual state) */
.use-case-card.before-automation {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.28);
}

.use-case-card.before-automation:hover {
    border-color: rgba(220, 53, 69, 0.45);
}

.use-case-card.before-automation .use-case-icon {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    animation: subtle-pulse 1.8s ease-in-out infinite;
}

.use-case-card.before-automation .use-case-icon::before {
    content: "\f057"; /* fa-times-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* AFTER automation (positive / automated state) */
.use-case-card.after-automation {
    background: rgba(25, 135, 84, 0.08);
    border-color: rgba(25, 135, 84, 0.28);
}

.use-case-card.after-automation:hover {
    border-color: rgba(25, 135, 84, 0.45);
}

.use-case-card.after-automation .use-case-icon {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
    animation: subtle-pulse 1.8s ease-in-out infinite;
}

.use-case-card.after-automation .use-case-icon::before {
    content: "\f058"; /* fa-check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

@keyframes subtle-pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

.use-case-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.use-case-line {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.5;
}

.line-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* icon base */
.use-case-line .line-icon {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* BEFORE lines (red X) */
.use-case-line.negative .line-icon {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.use-case-line.negative .line-icon::before {
    content: "\f00d"; /* fa-xmark */
}

/* AFTER lines (green check) */
.use-case-line.positive .line-icon {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.use-case-line.positive .line-icon::before {
    content: "\f00c"; /* fa-check */
}

.quick-wins-section {
    position: relative;
}

.quick-win-item {
    height: 100%;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(142, 6, 163, 0.14),
        rgba(36, 14, 80, 0.04)
    );
    border: 1px solid rgba(61, 14, 137, 0.35);
    backdrop-filter: blur(10px);
    transition: all 0.35s ease;
}

.quick-win-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(16, 185, 129, 0.45);
}

.quick-win-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
}



.quick-win-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(6px);
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.6;
}
.customer-logos {
    background: var(--gradient-dark);
}

.logos-title {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    font-weight: 600;
}

.logo-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    backdrop-filter: blur(10px);
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.logo-placeholder {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.logos-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}
.cta-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

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

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/*
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 9999;
    overflow-y: auto;
}

.modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}*/

.modal-dialog {
    height: 100dvh; /* full viewport */
    margin: 0;
    display: flex;
    flex-direction: column;
}



.modal-body {
    flex: 1 1 auto;   /* fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* top content */
    overflow-y: auto;  /* scroll inside modal */
    -webkit-overflow-scrolling: touch;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}


.modal-header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(11,16,32,0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.modal-logo {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

body.textarea-step .question-area,
body.textarea-step .question-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* start from top like other steps */
}

.textarea-spacer {
    flex-shrink: 0;
    height: 0; /* JS adjusts dynamically */
}
@media (min-width: 768px) {
    .modal-body {
        flex: 1 1 auto;                 /* fill remaining modal space */
        display: flex;                  
        flex-direction: column;         
        justify-content: flex-start;    
        min-height: calc(100dvh - var(--header-height, 120px) - var(--footer-height, 60px));
        padding-bottom: var(--footer-height, 96px); /* push content above footer */
    }

    .question-area {
        flex: 1 1 auto; /* ensure all steps, including textarea, fill same space */
    }
}

@media (max-width: 767px) {
    .modal-content {
        bottom: 0.5rem; /* lift navigation above keyboard slightly */
    }
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    grid-column: 3;
    justify-self: end;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.question-headline {
    font-family: 'Poppins', 'Fredoka One', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;

    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;   
}


.arrow-indicator {
    display: flex;
    justify-content: center; /* center under headline */
    margin-top: 12px;
    margin-bottom: 40px;
}

.gradient-arrow {
    width: 150px;    /* arrow width */
    height: 19px;   /* arrow height (shallow) */
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.6), rgba(255, 0, 255, 0.6));

    clip-path: polygon(50% 100%, 0 0, 100% 0); /* triangle pointing down */
    animation: blinkArrow 6s infinite;        /* blinking effect */
}
 
@keyframes blinkArrow {
    0%, 50%, 100% { opacity: 0; }
    25%, 75%      { opacity: 1; }
}


/* Question area centered */
.question-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.question-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.question-content::after {
    content: "";
    flex: 1;
}


.result-metric {
    min-width: 220px;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.metric-label {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Result metric boxes (theme-based, animated) */
.result-metric {
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.12),
        rgba(255, 58, 166, 0.12)
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    min-width: 240px;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.result-metric::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.result-metric:hover::before {
    transform: translateX(100%);
}

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

.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.metric-label {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Orbit animation (replaces dots) */
.result-orbit {
    position: relative;
    width: 80px;
    height: 80px;
    margin-inline: auto;
}

.result-orbit span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--brand-cyan);
    animation: orbit-spin 2.5s linear infinite;
}

.result-orbit span:nth-child(2) {
    border-top-color: var(--brand-pink);
    animation-duration: 3.5s;
    inset: 8px;
}

.result-orbit span:nth-child(3) {
    border-top-color: rgba(255, 255, 255, 0.5);
    animation-duration: 5s;
    inset: 16px;
}

@keyframes orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Abstract graffiti-style overlay */
.animated-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,212,255,0.18), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255,58,166,0.18), transparent 45%),
        radial-gradient(circle at 60% 80%, rgba(99,102,241,0.15), transparent 50%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    animation: graffiti-drift 14s ease-in-out infinite alternate;
}

@keyframes graffiti-drift {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-20px) scale(1.05);
    }
}


/* Result card animation */
/* Result hero wrapper */
.result-hero {
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* Premium metric cards */
.result-metric-premium {
    background: linear-gradient(
        135deg,
        rgba(0,212,255,0.18),
        rgba(255,58,166,0.18)
    );
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    min-width: 220px;
    backdrop-filter: blur(8px);
}

/* Metric typography */
.result-metric-value {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.result-metric-label {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Energy line animation */
.result-energy-line {
    margin: 3rem auto 0;
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--brand-cyan),
        var(--brand-pink),
        var(--brand-cyan)
    );
    background-size: 200% 100%;
    animation: result-energy-move 2.5s linear infinite;
}

@keyframes result-energy-move {
    to { background-position: -200% 0; }
}

/* Reveal animation (namespaced) */
.result-reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    animation: result-reveal-up 0.8s ease forwards;
}

.result-delay-1 { animation-delay: 0.15s; }
.result-delay-2 { animation-delay: 0.3s; }
.result-delay-3 { animation-delay: 0.45s; }

@keyframes result-reveal-up {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ================================
   RESULT HEADER (GRAFFITI HERO)
================================ */
.result-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 2.5rem;
    height: auto;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11,16,32,0.96), rgba(18,28,58,0.92));
    animation: header-breathe 18s ease-in-out infinite;
}

.result-header-content {
    width: 100%;
    padding: 0;
}

.result-header .row {
    margin: 0;
}

.result-content {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}


 
@media (max-width: 576px) {
    .result-header {
        align-items: flex-start;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .result-header {
        align-items: flex-start;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}



@keyframes header-breathe {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.result-header::before,
.result-header::after {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 0;
    pointer-events: none;
    filter: blur(90px);
}

/* Back slow layer */
.result-header::before {
    background:
        radial-gradient(circle at 10% 70%, rgba(0,212,255,0.22), transparent 60%),
        radial-gradient(circle at 90% 40%, rgba(255,58,166,0.18), transparent 55%);
    animation: graffiti-drift-slow 35s linear infinite;
}

/* Front faster layer */
.result-header::after {
    background:
        radial-gradient(circle at 60% 20%, rgba(99,102,241,0.28), transparent 50%);
    animation: graffiti-drift-fast 18s ease-in-out infinite alternate;
}

.result-header-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(255,255,255,0.04),
        rgba(0,0,0,0.55)
    );
    z-index: 2;
    pointer-events: none;
}


/* Graffiti background layer */
.result-graffiti-layer {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,212,255,0.22), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(255,58,166,0.22), transparent 50%),
        radial-gradient(circle at 60% 75%, rgba(99,102,241,0.18), transparent 55%);
    filter: blur(70px);
    opacity: 0.85;
    animation: graffiti-float 22s ease-in-out infinite alternate;
    z-index: 1;
}

/* Slow drifting motion */
@keyframes graffiti-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-40px, -30px, 0) scale(1.08);
    }
    100% {
        transform: translate3d(30px, 20px, 0) scale(1.04);
    }
}


@keyframes graffiti-drift-main {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(-60px, -40px) scale(1.08); }
    100% { transform: translate(60px, 40px) scale(1.12); }
}

@keyframes graffiti-drift-slow {
    from { transform: translateX(-80px) translateY(0); }
    to   { transform: translateX(80px) translateY(-40px); }
}

@keyframes graffiti-drift-fast {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-70px) scale(1.15); }
}

.result-energy-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.06) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: energy-sweep 9s linear infinite;
    z-index: 3;
    pointer-events: none;
}


@keyframes energy-sweep {
    to {
        transform: translateX(100%);
    }
}

/* ===== Subtle floating particles (Ergebnis) ===== */
.result-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.result-particles::before,
.result-particles::after {
    content: "";
    position: absolute;
    background: rgba(0, 212, 255, 0.45);
    border-radius: 50%;
    filter: blur(0.5px);
    animation: result-particle-float 18s linear infinite;
}

.result-particles::after {
    width: 3px;
    height: 3px;
    background: rgba(255, 58, 166, 0.45);
    animation-duration: 26s;
    animation-delay: -10s;
}

@keyframes result-particle-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(10px, -10px) rotate(45deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-10px, -20px) rotate(90deg);
        opacity: 0.5;
    }
    75% {
        transform: translate(15px, 5px) rotate(135deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0) rotate(180deg);
        opacity: 0.4;
    }
}



/* ================================
   TEXT & METRICS
================================ */

.result-metric-box {
    border: 2.5px solid rgba(9, 97, 56, 0.785);
    backdrop-filter: blur(0px);
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(6, 91, 51, 0.1),
        rgba(4, 108, 60, 0.15),
        rgba(2, 71, 39, 0.3)
    );
    background-size: 200% 200%;
    animation: metric-glow-shift 10s ease-in-out infinite;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -6px 12px rgba(0, 0, 0, 0.35);
    transform: translateZ(0);
}

.result-metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-metric-value {
    font-weight: 800;
}

.result-metric-label {
    color: var(--text-secondary);
}

.metrics-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}


/* ================================
   DESKTOP / LARGE SCREENS ONLY
================================ */
@media (min-width: 769px) {

    .result-header {
        min-height: 60svh;
        align-items: center;
        padding: 0 !important;
    }

    .result-header-content {
        max-width: 1100px;
        padding: 2rem 1rem;
    }

    .result-title {
        font-size: clamp(2.2rem, 4vw, 3.2rem);
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .result-subtitle {
        font-size: 1.1rem;
        margin-top: 0.75rem;
        color: var(--text-secondary);
    }

    .metrics-wrapper {
        display: flex;
        justify-content: center;
        gap: 2.5rem;
        margin-top: 3rem;
        flex-wrap: wrap;
    }

    .result-metric-box {
        width: 350px;
        padding: 1rem 1rem;
        border-radius: 18px;
    }

    .result-metric-value {
        font-size: 1.9rem;
    }

    .result-metric-label {
        font-size: 0.9rem;
    }

    /* Particles bigger for desktop */
    .result-particles::before,
    .result-particles::after {
        width: 6px;
        height: 6px;
    }

    .result-particles::after {
        width: 4px;
        height: 4px;
        animation-duration: 26s;
        animation-delay: -10s;
        background: rgba(255, 58, 166, 0.45);
    }
}

@keyframes metric-glow-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.result-metric-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(5, 126, 7, 0.2),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.result-metric-box:hover::after {
    opacity: 1;
}


.result-metric-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* ================================
   RESULT HEADER COMPACT MOBILE - UNIFORM BOXES
================================ */

/* Standard mobile compact (<768px) */
@media (min-width: 481px) and (max-width: 768px){
    .result-header {
        min-height: 40svh;
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .result-header-content {
        padding: 1rem 0.5rem;
        max-width: 95%;
    }

    .result-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .result-subtitle {
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }

    .metrics-wrapper {
        gap: 0.8rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .result-metric-box {
        width: 240px; /* make all boxes equal width */
        padding: 0.5rem 0.5rem;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .result-metric-value {
        font-size: 1.5rem;
    }

    .result-metric-label {
        font-size: 0.8rem;
    }

    .result-graffiti-layer {
        transform: scale(0.85);
        inset: -15%;
        filter: blur(60px);
    }

    .result-particles::before,
    .result-particles::after {
        width: 3.5px;
        height: 3.5px;
    }
}

/* Optional ultra-compact for very small screens (<480px) */
@media (max-width: 480px) {
    .result-header {
        min-height: 35svh;
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .result-header-content {
        padding: 0.5rem 0.5rem;
    }

    .result-title {
        font-size: clamp(1.6rem, 6vw, 1.9rem);
    }

    .result-subtitle {
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }

    .metrics-wrapper {
        gap: 0.6rem;
        margin-top: 1rem;
        flex-direction: column; /* stack boxes */
        align-items: center;
    }

    .result-metric-box {
        width: 230px;
        max-width: 95%;
        padding: 0.5rem 0.5rem;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .result-metric-value {
        font-size: 1.3rem;
    }

    .result-metric-label {
        font-size: 0.75rem;
    }

    .result-graffiti-layer {
        transform: scale(0.75);
        inset: -10%;
        filter: blur(50px);
    }

    .result-particles::before,
    .result-particles::after {
        width: 3px;
        height: 3px;
    }
}

/* ================================
   STAGGERED ENTRANCE
================================ */

.result-animate {
    opacity: 0;
    transform: translateY(22px);
    animation: result-fade-up 0.9s ease forwards;
}

.result-delay-1 { animation-delay: 0.15s; }
.result-delay-2 { animation-delay: 0.3s; }
.result-delay-3 { animation-delay: 0.45s; }

@keyframes result-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 .calendly-page {
    padding-top: 120px;
    padding-bottom: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.calendly-wrapper {
    position: relative;
    height: 800px;
}

.calendly-inline-widget {
    height: 100%;
}

.calendly-loader,
.calendly-fallback {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 32, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #fff;
    text-align: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #00e5ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fallback-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: #00e5ff;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

/* Navigation at bottom */
/* .navigation {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    padding-bottom: 1rem;
} */

/* Progress bar */
.progress-container {
    grid-column: 2;
    justify-self: center;
    width: 95%;
    max-width: 730px;
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    width: 0%;
    transition: width 300ms ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.progress-container:empty {
    display: none;
}

/* Button fixes */
#startCalculator, #ctaCalculator {
    cursor: pointer;
}

/* Ensure body doesn't scroll when modal is open 
body.modal-open {
    overflow: hidden;
}*/

/* Responsive adjustments */

@media (max-width: 999px) {
    .modal-header {
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        row-gap: 0.75rem;
    }

    .modal-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .modal-close {
        grid-column: 2;
        grid-row: 1;
    }

    .progress-container {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
    }
}


@media (max-width: 768px) {
    .modal-content {
        padding: 0;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }

    .progress-container {
        width: 100%;
    }
    
}

/* Remove old modal styles that might conflict */
.modal-overlay,
.modal-container {
    display: none;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    width: 0%;
    transition: width 300ms ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}
/*.question-area {
    min-height: 300px;
}*/

.question-container {
    animation: fadeInUp 300ms ease;
}

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

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.question-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-button {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.option-button:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.option-button.active {
    background: rgba(255, 58, 166, 0.2);
    border-color: #ff3aa6;
    box-shadow: 0 0 20px rgba(255, 58, 166, 0.2);
}

.option-button .checkmark {
    color: var(--brand-pink);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Text Input */
.text-input, .text-area {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.text-input,
.text-area {
    touch-action: manipulation;
}

.text-area {
    min-height: 120px;
}

.text-input:focus, .text-area:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
}

.text-input::placeholder, .text-area::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Other Input Container */
.other-container {
    margin-top: 1rem;
}

/* Comment Box 
.comment-box {
    padding: 1rem 1.25rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.comment-box:before {
    content: "💡";
    margin-right: 0.5rem;
} */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    overflow: visible;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-label.required:after {
    content: " *";
    color: var(--brand-pink);
}

.form-check-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-check-label.required:after {
    content: " *";
    color: var(--brand-pink);
}

.form-input {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px  !important;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
}

.form-input.error {
    border-color: #802336;
    background: rgba(255, 255, 255, 0.05); /* same as normal */
}

.form-error-text {
    font-size: 0.75rem;
    color: #802336;
    display: none;
}

.form-error-text.show {
    display: block;
}

.form-check-input.error {
    outline: 2px solid #802336;
    outline-offset: 2px;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 1.25rem;
    margin-top: 1rem;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.privacy-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.ai-loader {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

.neural-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid;
    border-radius: 50%;
    border-color: rgba(0, 212, 255, 0.3) transparent rgba(255, 58, 166, 0.3) transparent;
}

.ring-1 {
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: -40px;
    animation: rotate 3s linear infinite;
}

.ring-2 {
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
    animation: rotate 4s linear infinite reverse;
}

.ring-3 {
    width: 160px;
    height: 160px;
    margin-left: -80px;
    margin-top: -80px;
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: opacity 300ms ease;
}

.loading-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 500px;
}

.stage {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 300ms ease;
    opacity: 0.5;
    backdrop-filter: blur(10px);
}

.stage.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--brand-cyan);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.stage.completed {
    background: rgba(0, 168, 89, 0.1);
    border-color: rgba(0, 168, 89, 0.3);
}

.stage-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stage-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}
.result-container {
    animation: fadeInUp 500ms ease;
}

.result-card {
    background: linear-gradient(125deg, rgba(11,16,32,0.95) 0%, rgba(37,99,235,0.4) 50%, rgba(255,58,166,0.4) 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.result-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.result-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.result-equivalent {
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: inline-block;
}

.insights-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.insight-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.insight-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
}
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    animation: fadeIn 300ms ease;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-text {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.retry-button {
    margin-bottom: 1rem;
}

/* Navigation footer */
.navigation {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 96px; /* your nav height */
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 12px 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}



.navigation > * {
    width: 100%;
    max-width: 820px;
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn-back,
.btn-next {
    flex: 1;
    height: 52px;
    font-size: 16px;
    padding: 0 1.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

/* Single button takes full width */
.navigation .btn-back:only-child {
    width: 100%;
}


.btn-resend {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-resend:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-resend:not(:disabled) {
    opacity: 1;
}

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-3px);
}

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--brand-cyan);
}

.footer-links i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--brand-cyan);
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
@media (max-width: 1200px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .animated-header {
        padding: 140px 0 80px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .navigation {
        padding-left: calc((100vw - 820px) / 2);
        padding-right: calc((100vw - 780px) / 2);
        height: 76px;
    }
}


@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .question-title {
        font-size: 1.25rem;
    }
    
    .result-amount {
        font-size: 2.5rem;
    }
    
    .navigation {
        flex-direction: row;    /* ⬅ force same line */
        gap: 0.75rem;
        height: 56px;
    }

    /* Tablet & down */
    .btn-back,
    .btn-next {
        height: 48px;
        font-size: 15px;
        padding: 0 1.25rem;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .use-case-card, .benefit-item {
        padding: 1.5rem;
    }
    
    .use-case-icon, .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-header {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto;
    }

    .modal-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .progress-container {
        grid-column: 2;
        grid-row: 1;
        width: 95%;
        max-width: none;
    }

    .has-progress .brand-text {
        display: none;
    }

    .logo-main {
        height: 24px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        grid-column: 3;
        grid-row: 1;
    }

    .stage {
        min-width: 100%;
    }

    .btn-back,
    .btn-next {
        height: 38px;
        font-size: 14px;
        padding: 0 1rem;
    }

}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-option {
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.language-option:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.fi {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 18px;
}
/* Customer Logos Section */
.customer-logos {
    background-color: #f8f9fa;
}

.logos-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.logos-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.logo-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-container {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.logo-img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.logos-note {
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logos-title {
        font-size: 1.5rem;
    }
    
    .logo-container {
        height: 100px;
        padding: 1rem;
    }
    
    .logo-img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        height: 80px;
        padding: 0.75rem;
    }
    
    .logo-img {
        max-height: 40px;
    }
}
/* ==============================
   AI LOADER ANIMATIONS
   ============================== */
.ai-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.brain-core {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    position: absolute;
    top: 25px;
    left: 25px;
    animation: pulse 2s infinite;
    z-index: 2;
}

.neural-ring {
    position: absolute;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    opacity: 0;
}

.ring-1 {
    width: 70px;
    height: 70px;
    top: 15px;
    left: 15px;
    animation: neural-pulse 3s infinite;
}

.ring-2 {
    width: 90px;
    height: 90px;
    top: 5px;
    left: 5px;
    animation: neural-pulse 3s infinite 0.5s;
}

.ring-3 {
    width: 110px;
    height: 110px;
    top: -5px;
    left: -5px;
    animation: neural-pulse 3s infinite 1s;
}

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

@keyframes neural-pulse {
    0% { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    100% { 
        transform: scale(1.2); 
        opacity: 0; 
    }
}

/* ==============================
   RESULT STYLES
   ============================== */
.result-container {
    max-width: 600px;
    /* margin: 0 auto; */
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.result-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-badge i {
    margin-right: 8px;
}

.result-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 10px 0;
    line-height: 1.2;
}

.result-period {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 25px;
}

.result-equivalent {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    color: #495057;
}

.result-equivalent i {
    color: #667eea;
    margin-right: 10px;
}

.result-equivalent strong {
    color: #28a745;
    font-weight: 700;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.result-detail-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.result-detail-item i {
    width: 24px;
    color: #667eea;
    margin-right: 12px;
    font-size: 1.1rem;
}

.detail-label {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.detail-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #28a745;
}

.recommendations-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.recommendations-box h4 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.recommendations-box h4 i {
    color: #ffc107;
    margin-right: 10px;
}

.recommendations-box p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.result-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
    text-align: center;
}

.result-footer i {
    margin-right: 5px;
}

/* ==============================
   ERROR CONTAINER
   ============================== */
.error-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
    opacity: 0.8;
}

.error-container h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-weight: 600;
}

.error-container p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ==============================
   LOADING STAGES
   ============================== */
.loading-stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stage {
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.stage.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.stage.completed {
    background: #28a745;
    color: white;
    opacity: 0.8;
}

.stage-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.stage-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==============================
   RESPONSIVE ADJUSTMENTS
   ============================== */
@media (max-width: 768px) {
    .result-amount {
        font-size: 2rem;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .loading-stages {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stage {
        padding: 12px 8px;
    }
    
    .stage-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .result-card {
        padding: 20px 15px;
    }
    
    .result-amount {
        font-size: 1.75rem;
    }
    
    .loading-stages {
        grid-template-columns: 1fr;
    }
}
.result-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a6cf7;
}

.result-summary p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}
/* Result Container */
.result-container {
    max-width: 800px;
    /* margin: 0 auto; */
    padding: 2rem;
}

.result-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Result Card */
.animated-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.animated-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Savings Display */
.savings-display {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed #e2e8f0;
}

.currency-symbol {
    font-size: 3rem;
    color: #48bb78;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.savings-range {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.min-amount, .max-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    line-height: 1;
}

.range-separator {
    font-size: 2.5rem;
    font-weight: 300;
    color: #718096;
}

.period-label {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 500;
}

/* Result Details */
.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    /* display: flex; */
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.detail-item:hover {
    background: #edf2f7;
}

.detail-icon {
    font-size: 2rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.3rem;
}

.detail-label {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
}

/* Summary */
.result-summary-container {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f6f9ff 0%, #f0f7ff 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.summary-icon {
    font-size: 1.8rem;
    margin-right: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.result-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* CTA Section */
.result-cta {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 2px solid #e2e8f0;
}

.cta-content {
    margin-bottom: 2rem;
}

.cta-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.8rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.cta-button .fa-arrow-right {
    transition: transform 0.3s ease;
}

.cta-button:hover .fa-arrow-right {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .result-container {
        padding: 1rem;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .min-amount, .max-amount {
        font-size: 24px;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        /* width: 100%; */
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .btn-pill {
       border-radius: 50px !important;
    /* padding: 1rem; */
    }
}

