/* ==========================================================================
   FINAGECO - MASTER STYLESHEET (apropos.css / tarifs.css)
   Completely synchronized for FINAGECO Platform, apropos.html, and Tarifs.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES, SHADOW SYSTEM & RESET
   -------------------------------------------------------------------------- */
:root {
    --primary-blue: #0b4c8c;
    --primary-blue-hover: #083868;
    --secondary-blue: #004bb5;
    --accent-orange: #ff6b00;
    --accent-orange-hover: #e05e00;
    --accent-gold: #f59e0b;
    --dark-bg: #0d233a;
    --dark-surface: #091929;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --light-blue-bg: #f0f7ff;
    --white: #ffffff;
    --border-color: #9e743d;
    --border-gold: #9e743d;

    /* Shadow System */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.288);
    --shadow-md: 0 6px 18px rgba(11, 76, 140, 0.08);
    --shadow-lg: 0 12px 30px rgba(13, 35, 58, 0.14);
    --shadow-glow-orange: 0 8px 25px rgba(255, 107, 0, 0.3);
    --shadow-glow-blue: 0 8px 25px rgba(11, 76, 140, 0.25);
    --shadow-card-hover: 0 18px 40px rgba(11, 76, 140, 0.12);

    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --container-width: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. UTILITY & HELPER CLASSES
   -------------------------------------------------------------------------- */
.text-primary {
    color: var(--primary-blue) !important;
    font-weight: 600;
}  
.text-accent-gold { color: var(--accent-gold) !important; }
.text-primary-custom { color: var(--primary-blue) !important; }
.text-light-80 { color: rgba(255, 255, 255, 0.85) !important; }
.uppercase-track { letter-spacing: 1.5px; text-transform: uppercase; }
.tracking-wider { letter-spacing: 1.2px; }
.min-vh-50 { min-height: 50vh; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.bg-light-blue { background-color: var(--light-blue-bg) !important; }

.bg-primary-soft { background-color: rgba(11, 76, 140, 0.1) !important; }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-warning-soft { background-color: rgba(255, 107, 0, 0.1) !important; }

.z-index-2 { z-index: 2; }

/* Custom Primary Button */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-glow-orange);
    transition: var(--transition);
    border: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.45);
    color: var(--white) !important;
}

/* --------------------------------------------------------------------------
   3. PRELOADER
   -------------------------------------------------------------------------- */
#finageco-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-orange, .circle-blue {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.circle-orange {
    width: 90px;
    height: 90px;
    border-top-color: var(--accent-orange);
    animation: spin 1.2s linear infinite;
}

.circle-blue {
    width: 75px;
    height: 75px;
    border-bottom-color: var(--primary-blue);
    animation: spin-reverse 1s linear infinite;
}

.spinner-wrapper img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.preloader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: -5px;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.navbar a.active::after,
.navbar a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.sidenav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-idemo, .btn-login, .btn-demo {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-block;
    transition: var(--transition);
}

.btn-idemo {
    background-color: #e2e8f0;
    color: var(--text-dark);
}

.btn-idemo:hover {
    background-color: #cbd5e1;
}

.btn-login {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-login:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-glow-blue);
}

.btn-demo {
    background-color: var(--accent-orange);
    color: var(--white);
    box-shadow: var(--shadow-glow-orange);
}

.btn-demo:hover {
    background-color: var(--accent-orange-hover);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   5. WIDGETS (LEFT & RIGHT)
   -------------------------------------------------------------------------- */
.left-widgets {
    position: fixed;
    bottom: 25px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-widgets {
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 1000;
}

.widget-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.widget-btn:hover {
    transform: translateY(-4px) scale(1.06);
}

.calendar-btn {
    background-color: var(--primary-blue);
}

.wa-trigger {
    background-color: #25d366;
}

.whatsapp-container {
    position: relative;
}

.info-card.whatsapp {
    position: absolute;
    bottom: 65px;
    left: 0;
    width: 230px;
    max-width: 85vw;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    border: 1px solid var(--border-color);
}

.info-card.whatsapp.active {
    display: block;
}

.close-wa {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.chat-trigger-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: var(--transition);
}

.chat-trigger-btn:hover {
    transform: scale(1.05);
}

.chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--white);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
    overflow: hidden;
}

.chat-window.active {
    display: block;
}

.chat-header {
    background-color: var(--primary-blue);
    padding: 12px;
    display: flex;
    justify-content: flex-end;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

.chat-body {
    padding: 18px;
}

.chat-message p {
    font-size: 0.88rem;
    color: var(--text-dark);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.chat-opt {
    background: var(--light-bg);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--primary-blue);
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.chat-opt:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* --------------------------------------------------------------------------
   6. DEMO MODAL (MULTI-STEP) & OVERLAY FIXES
   -------------------------------------------------------------------------- */
.demo-overlay,
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(13, 35, 58, 0.8) !important;
    backdrop-filter: blur(6px);
    z-index: 100000 !important;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.demo-overlay.active,
.demo-overlay.show,
.modal-overlay.active,
.modal-overlay.show {
    display: flex !important;
}

.demo-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.demo-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-blue));
    color: var(--white);
    padding: 30px 25px 20px;
    position: relative;
}

.close-demo {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.demo-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.demo-header h2 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
}

.demo-header p {
    font-size: 0.88rem;
    opacity: 0.9;
}

.demo-badges {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.8rem;
}

.demo-body {
    padding: 25px;
}

.demo-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.choice-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.choice-card.active {
    border-color: var(--primary-blue);
    background-color: rgba(11, 76, 140, 0.03);
    box-shadow: var(--shadow-sm);
}

.choice-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.choice-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.choice-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    overflow-x: auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.step.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.step.active .step-circle {
    background: var(--primary-blue);
    color: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 76, 140, 0.1);
}

.phone-group {
    display: flex;
    gap: 8px;
}

.phone-group select {
    width: 105px;
}

.phone-group input {
    flex: 1;
}

.input-group small {
    font-size: 0.72rem;
    color: var(--text-dark);
}

.demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.footer-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.link-skip {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.btn-continue, .btn-confirm {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-continue:hover, .btn-confirm:hover {
    background: var(--primary-blue-hover);
    box-shadow: var(--shadow-glow-blue);
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.recaptcha-mock {
    border: 1px solid #d3d3d3;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
}

.recaptcha-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.recaptcha-mock img {
    height: 32px;
}

.security-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION (ANIMATED SLIDER & DARK OVERLAY)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background-color: var(--dark-bg);
    overflow: hidden;
    max-height: 60vh;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlideCrossFade 12s infinite ease-in-out;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

@keyframes heroSlideCrossFade {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; transform: scale(1.03); }
    45% { opacity: 1; transform: scale(1.06); }
    55% { opacity: 0; transform: scale(1.08); }
    100% { opacity: 0; transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 35, 58, 0.90) 0%, rgba(0, 0, 0, 0.78) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. HISTOIRE & PRESENTATION GENERALE
   -------------------------------------------------------------------------- */
#histoire {
    position: relative;
    background-color: var(--white);
}

.img-composition {
    position: relative;
}

.main-img {
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.stat-floating-card {
    position: absolute;
    bottom: -25px;
    right: 10px;
    background: var(--white);
    border-left: 5px solid #10b981;
    box-shadow: var(--shadow-card-hover);
    z-index: 10;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   9. VISION, MISSION & VALEURS
   -------------------------------------------------------------------------- */
#vision-mission {
    background-color: var(--white);
}

.hover-lift-card {
    transition: var(--transition);
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md) !important;
}

.hover-lift-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover) !important;
    border-color: var(--primary-blue) !important;
}

.icon-box-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   10. ECOSYSTEME & AVANTAGES PAR ACTEUR
   -------------------------------------------------------------------------- */
#avantages {
    background-color: var(--light-blue-bg);
}

.actor-card {
    border: 1px solid rgba(11, 76, 140, 0.12);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.actor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-blue);
}

.actor-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.small-text li {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   11. MODULES GRID (21 MODULES FINAGECO)
   -------------------------------------------------------------------------- */
#modules {
    background-color: var(--white);
}

.module-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.module-box h3 {
    font-weight: 700;
}

.module-box p {
    color: var(--text-dark);
}

.module-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
    opacity: 0;
    transition: var(--transition);
}

.module-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-blue);
}

.module-box:hover::before {
    opacity: 1;
}

.module-number {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* Highlight Module 21 (Paiement & KiesbiPay) */
.module-box.border-warning {
    border: 2px solid var(--accent-gold) !important;
    background: linear-gradient(180deg, #fffdfa 0%, #fff7ed 100%);
}

.module-box.border-warning::before {
    background: var(--accent-orange);
    opacity: 1;
}

.bg-primary-custom {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
}

.btn-warning-custom {
    background: var(--accent-orange);
    color: var(--white) !important;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   12. KIESBIPAY & ARCHITECTURE FINANCIERE
   -------------------------------------------------------------------------- */
#kiesbipay, .bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-secondary-dark {
    background-color: var(--dark-surface) !important;
}

.icon-square {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   13. PROMOTIONAL POPUP MODAL (#finagecoModal)
   -------------------------------------------------------------------------- */
.finageco-modal {
    background: var(--white);
    width: 100%;
    max-width: 850px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.promo-side {
    background: linear-gradient(135deg, #0b4c8c, #002d5a);
    color: var(--white);
    padding: 35px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.decor-circle-top {
    width: 180px;
    height: 180px;
    top: -50px;
    right: -50px;
}

.decor-circle-bottom {
    width: 140px;
    height: 140px;
    bottom: -40px;
    left: -40px;
}

.special-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.crown-box {
    font-size: 2rem;
    margin-top: 10px;
}

.promo-label {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 800;
    letter-spacing: 1px;
}

.promo-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 10px 0;
}

.promo-description {
    font-size: 0.85rem;
    opacity: 0.85;
}

.pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 10px;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
}

.price-description {
    font-size: 0.72rem;
    opacity: 0.8;
    margin-top: 3px;
}

.price-or {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 600;
}

.saving-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 0, 0.25);
    border: 1px solid var(--accent-orange);
    color: #ffaa66;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.content-side {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.content-side h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.feature-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feature-highlight {
    background: var(--light-blue-bg);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-blue);
}

.feature-highlight .feature-icon {
    background: var(--primary-blue);
    color: var(--white);
}

.countdown-box {
    background: var(--light-bg);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.countdown-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 6px;
}

.countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.separator {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.time-box {
    text-align: center;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex: 1;
}

.time-box div {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.time-box span {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.offer-button {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition);
}

.offer-button:hover {
    background: var(--accent-orange-hover);
    box-shadow: var(--shadow-glow-orange);
}

.later-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background: var(--dark-surface);
    color: #94a3b8;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about img {
    height: 42px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-contact i {
    color: var(--accent-orange);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Viewports (max-width: 992px) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .finageco-modal {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }

    .promo-side {
        padding: 25px 20px;
    }

    .content-side {
        padding: 25px 20px;
    }
}

/* Mobile Viewports (max-width: 768px) */
@media (max-width: 768px) {
    /* Show mobile hamburger toggle button */
    .menu-toggle {
        display: flex !important;
    }

    /* Hide top header sidenav on mobile screen widths */
    .header .container > .sidenav,
    .header .container > #side-nav {
        display: none !important;
    }

    /* Mobile hamburger navigation popup panel */
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--border-color);
        max-height: 85vh;
        overflow-y: auto;
        z-index: 9999;
    }

    .navbar.active {
        display: flex !important;
        flex-direction: column;
    }

    .navbar ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 0;
        padding-left: 0;
        align-items: left;
    }

    .navbar ul li {
        width: 100%;
        text-align: left;
        gap: 5px;
    }

    .navbar ul li a {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    /* Sidenav items nested inside mobile navbar dropdown */
    .navbar .sidenav,
    .navbar .mobile-sidenav-container {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        align-items: center;
    }

    .navbar .sidenav a,
    .navbar .mobile-sidenav-container a {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.9rem;
        font-weight: 600;
        display: block;
        border-radius: var(--radius-sm);
    }

    /* Multi-step modal adjustments */
    .demo-choices {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 70px 0 50px;
        max-height: 40vh;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* Small Mobile Viewports (max-width: 576px) */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .demo-body {
        padding: 15px;
    }

    .demo-header {
        padding: 20px 15px 15px;
    }

    .stat-floating-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 15px;
    }

    .left-widgets {
        bottom: 15px;
        left: 15px;
    }

    .right-widgets {
        bottom: 15px;
        right: 15px;
    }

    .chat-window {
        right: -10px;
        width: 290px;
    }
}

/* ==========================================================================
   FINAGECO - APROPOS RESPONSIVE STYLES (360px, 480px, 520px, 768px, 1080px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESKTOP SMALL / TABLET LANDSCAPE (max-width: 1080px)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .container {
        max-width: 960px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .demo-modal-content {
        max-width: 680px;
    }

    .finageco-modal {
        max-width: 720px;
    }
}

/* --------------------------------------------------------------------------
   2. TABLET PORTRAIT (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 18px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .hero-section {
        max-height: 40vh;
        padding: 70px 0 50px;
    }

    .hero-section h1 {
        font-size: 2.1rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .stat-floating-card {
        position: static;
        margin-top: 20px;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .demo-choices {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .demo-modal-content {
        max-height: 95vh;
    }

    .finageco-modal {
        grid-template-columns: 1fr;
        max-height: 88vh;
        overflow-y: auto;
    }

    .promo-side {
        padding: 30px 20px;
    }

    .content-side {
        padding: 30px 20px;
    }
}

/* --------------------------------------------------------------------------
   3. LARGE MOBILE (max-width: 520px)
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
    .container {
        padding: 0 15px;
    }

    .logo-text h2 {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }

    .chat-window {
        width: calc(100vw - 30px);
        right: -5px;
    }

    .info-card.whatsapp {
        width: calc(100vw - 40px);
        left: -10px;
    }

    .demo-stepper {
        gap: 5px;
    }

    .step {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .recaptcha-mock {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   4. MEDIUM MOBILE (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .left-widgets {
        left: 10px;
        bottom: 15px;
    }

    .right-widgets {
        right: 10px;
        bottom: 15px;
    }

    .widget-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .chat-trigger-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .demo-header {
        padding: 20px 15px 15px;
    }

    .demo-header h2 {
        font-size: 1.25rem;
    }

    .demo-body {
        padding: 15px;
    }

    .demo-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .footer-actions-right {
        flex-direction: column;
        width: 100%;
    }

    .btn-continue, 
    .btn-confirm {
        width: 100%;
        text-align: center;
    }

    .promo-title {
        font-size: 1.4rem;
    }
}

/* --------------------------------------------------------------------------
   5. SMALL MOBILE (max-width: 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .logo-text h2 {
        font-size: 0.95rem;
    }

    .logo-text span {
        display: none;
    }

    .hero-section h1 {
        font-size: 1.35rem;
    }

    .hero-section .lead {
        font-size: 0.82rem;
    }

    .btn-primary-custom {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .phone-group {
        flex-direction: column;
    }

    .phone-group select {
        width: 100%;
    }

    .countdown {
        gap: 4px;
    }

    .time-box {
        padding: 2px 4px;
    }

    .time-box div {
        font-size: 0.75rem;
    }

    .time-box span {
        font-size: 0.5rem;
    }

    .promo-title {
        font-size: 1.25rem;
    }
}
