/**
 * SPE Feasibility Landing Page — Premium CSS
 * Refined for high-end corporate consulting (McKinsey/BCG style).
 * Mobile-first, RTL-ready, performance-optimized.
 */

/* ─────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --spe-primary:      #0b1c2d; /* Deep premium navy */
    --spe-primary-rgb:  11,28,45;
    --spe-accent:       #159844; /* SPE Green */
    --spe-accent-hover: #108039;
    
    /* Backgrounds */
    --spe-bg-white:     #ffffff;
    --spe-bg-light:     #f8fafc;
    --spe-bg-alt:       #f1f5f9;
    --spe-bg-dark:      #0f172a; /* Slate 900 for dark mode sections */
    
    /* Text */
    --spe-text-main:    #1e293b;
    --spe-text-muted:   #475569;
    --spe-text-light:   #94a3b8;
    --spe-text-white:   #f8fafc;
    
    /* UI Elements */
    --spe-border:       #e2e8f0;
    --spe-border-light: #f1f5f9;
    --spe-success:      #159844;
    --spe-error:        #ef4444;
    --spe-whatsapp:     #25D366;
    
    /* Structure */
    --spe-radius-sm:    6px;
    --spe-radius:       8px;
    --spe-radius-lg:    16px;
    --spe-radius-xl:    24px;
    --spe-font:         'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spe-transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spe-container:    1200px;
    
    /* Spacing */
    --space-xs:         0.5rem;
    --space-sm:         1rem;
    --space-md:         2rem;
    --space-lg:         4rem;
    --space-xl:         6rem;
    --section-pad:      clamp(4rem, 8vw, 7rem);
}

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
.spe-lp, .spe-lp *, .spe-lp *::before, .spe-lp *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.spe-lp {
    font-family: var(--spe-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--spe-text-main);
    background: var(--spe-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.spe-lp-html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    .spe-lp-html { scroll-behavior: auto; }
}

[hidden] { display: none !important; }

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--spe-primary);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────
   CONTAINER & GRID UTILS
   ───────────────────────────────────────────── */
.spe-container {
    width: 100%;
    max-width: var(--spe-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.spe-grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 992px) {
    .spe-grid-2 { grid-template-columns: 1fr 1fr; }
    .spe-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .spe-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .spe-gap-lg { gap: var(--space-lg); }
}

/* ─────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────── */
.spe-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 72px;
    transition: box-shadow var(--spe-transition);
}

.spe-nav.is-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.spe-nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spe-nav__logo img { height: 32px; width: auto; }

.spe-nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spe-lang-switch {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--spe-text-muted);
    padding: 0.5rem;
    transition: color var(--spe-transition);
}
.spe-lang-switch:hover { color: var(--spe-primary); }

@media (max-width: 768px) {
    .spe-nav__cta { display: none; }
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.spe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--spe-radius);
    padding: 0.875rem 1.75rem;
    transition: all var(--spe-transition);
    white-space: nowrap;
}

.spe-btn--primary {
    background: var(--spe-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(21,152,68,0.25);
}
.spe-btn--primary:hover {
    background: var(--spe-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21,152,68,0.35);
}

.spe-btn--secondary {
    background: var(--spe-bg-white);
    color: var(--spe-primary);
    border: 1px solid var(--spe-border);
}
.spe-btn--secondary:hover {
    border-color: var(--spe-primary);
    background: var(--spe-bg-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.spe-btn--outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.spe-btn--outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.spe-btn--wa {
    background: var(--spe-whatsapp);
    color: #fff;
}
.spe-btn--wa:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

.spe-btn--phone {
    background: var(--spe-primary);
    color: #fff;
}
.spe-btn--phone:hover {
    background: #06101a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11,28,45,0.3);
}

.spe-btn--icon {
    padding: 0.875rem 1.25rem;
}

.spe-btn__spinner { display: inline-flex; }
.spe-btn--loading .spe-btn__text { opacity: 0; }
.spe-btn--loading .spe-btn__spinner { position: absolute; }
.spe-btn--loading { pointer-events: none; position: relative; }

/* ─────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────── */
.spe-hero {
    padding-top: calc(72px + var(--space-md));
    padding-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--spe-bg-light) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.spe-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(21,152,68,0.03) 0%, transparent 60%);
    z-index: 0;
}

.spe-hero__inner {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .spe-hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.spe-hero__content {
    position: relative;
    z-index: 2;
}

.spe-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
    color: var(--spe-primary);
}

.spe-hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--spe-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-weight: 400;
}

.spe-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
}

.spe-hero__actions-main {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .spe-hero__actions-main { flex-direction: column; }
    .spe-hero__actions-main .spe-btn { width: 100%; }
}

.spe-hero__trust-text {
    font-size: 0.875rem;
    color: var(--spe-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.spe-hero__trust-text i { color: var(--spe-accent); }

.spe-hero__visual {
    position: relative;
    border-radius: var(--spe-radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(11,28,45,0.15);
}
.spe-hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
    border-radius: var(--spe-radius-xl);
    pointer-events: none;
}

.spe-hero__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transform: scale(1.02);
}

/* ─────────────────────────────────────────────
   CONTACT METHODS SECTION (NEW)
   ───────────────────────────────────────────── */
.spe-contact-methods {
    background: var(--spe-bg-white);
    border-bottom: 1px solid var(--spe-border);
}

.spe-cm-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .spe-cm-grid { grid-template-columns: repeat(2, 1fr); }
}

.spe-cm-card {
    background: var(--spe-bg-alt);
    border: 1px solid var(--spe-border);
    border-radius: var(--spe-radius-xl);
    padding: var(--space-lg);
    text-align: start;
    transition: all var(--spe-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spe-cm-card:hover {
    border-color: var(--spe-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    background: var(--spe-bg-white);
}

.spe-cm-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(21,152,68,0.1);
    color: var(--spe-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    transition: transform var(--spe-transition);
}
.spe-cm-card:hover .spe-cm-card__icon {
    transform: scale(1.1);
    background: var(--spe-accent);
    color: #fff;
}

.spe-cm-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.spe-cm-card__desc {
    font-size: 1rem;
    color: var(--spe-text-muted);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.spe-cm-card__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.spe-cm-card__actions .spe-btn {
    flex: 1;
}
@media (max-width: 480px) {
    .spe-cm-card__actions { flex-direction: column; }
    .spe-cm-card__actions .spe-btn { width: 100%; }
}

/* ─────────────────────────────────────────────
   TRUST LOGOS (CAROUSEL)
   ───────────────────────────────────────────── */
.spe-trust {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--spe-border);
    background: var(--spe-bg-white);
    overflow: hidden;
    position: relative;
}

.spe-trust::before,
.spe-trust::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.spe-trust::before {
    left: 0;
    background: linear-gradient(to right, var(--spe-bg-white) 0%, rgba(255,255,255,0) 100%);
}
.spe-trust::after {
    right: 0;
    background: linear-gradient(to left, var(--spe-bg-white) 0%, rgba(255,255,255,0) 100%);
}

.spe-trust__carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.spe-trust__track {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-left: 4rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.spe-trust:hover .spe-trust__track {
    animation-play-state: paused;
}

.spe-trust__item {
    flex-shrink: 0;
    width: 160px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spe-trust__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.spe-trust__item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

[dir="rtl"] .spe-trust__track {
    animation-name: scroll-rtl;
    padding-left: 0;
    padding-right: 4rem;
}

@keyframes scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

@media (max-width: 768px) {
    .spe-trust__track { gap: 2rem; padding-right: 2rem; }
    .spe-trust__item { width: 120px; height: 60px; }
}

/* ─────────────────────────────────────────────
   SECTION GLOBALS
   ───────────────────────────────────────────── */
.spe-section {
    padding: var(--section-pad) 0;
}

.spe-section--alt {
    background: var(--spe-bg-alt);
}

.spe-section--dark {
    background: var(--spe-bg-dark);
    color: var(--spe-text-white);
}

.spe-section__header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto var(--space-lg);
}

.spe-section__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-sm);
}
.spe-section--dark .spe-section__title { color: #fff; }

.spe-section__desc {
    font-size: 1.125rem;
    color: var(--spe-text-muted);
}
.spe-section--dark .spe-section__desc { color: var(--spe-text-light); }

/* ─────────────────────────────────────────────
   DECISION CARDS
   ───────────────────────────────────────────── */
.spe-decision-cards {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .spe-decision-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .spe-decision-cards { grid-template-columns: repeat(4, 1fr); } }

.spe-dcard {
    background: var(--spe-bg-white);
    border: 1px solid var(--spe-border);
    border-radius: var(--spe-radius-lg);
    padding: var(--space-md);
    text-align: start;
    transition: all var(--spe-transition);
    position: relative;
    overflow: hidden;
}

.spe-dcard:hover {
    border-color: var(--spe-accent);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.spe-dcard__icon {
    width: 48px;
    height: 48px;
    background: rgba(21,152,68,0.1);
    color: var(--spe-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.spe-dcard__num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--spe-text-light);
}
[dir="rtl"] .spe-dcard__num { right: auto; left: 1.5rem; }

.spe-dcard__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.spe-dcard__desc {
    font-size: 0.875rem;
    color: var(--spe-text-muted);
}

/* ─────────────────────────────────────────────
   DELIVERABLES (Visual Flow)
   ───────────────────────────────────────────── */
.spe-deliverables-flow {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}
@media (min-width: 992px) {
    .spe-deliverables-flow { grid-template-columns: 1fr 1fr; }
}

.spe-deliverables__visual {
    border-radius: var(--spe-radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.spe-deliverables__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.spe-deliverables__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.spe-ditem {
    background: var(--spe-bg-white);
    border: 1px solid var(--spe-border);
    border-radius: var(--spe-radius-lg);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--spe-transition);
}

@media (min-width: 640px) {
    .spe-ditem {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.spe-ditem.is-highlighted {
    border-color: var(--spe-accent);
    background: rgba(21,152,68,0.03);
    box-shadow: 0 8px 16px rgba(21,152,68,0.08);
    transform: scale(1.02);
}

.spe-ditem__input {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--spe-text-muted);
}

.spe-ditem__arrow {
    color: var(--spe-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
@media (max-width: 639px) {
    .spe-ditem__arrow { transform: rotate(90deg); align-self: center; }
}
[dir="rtl"] .spe-ditem__arrow { transform: rotate(180deg); }
@media (max-width: 639px) {
    [dir="rtl"] .spe-ditem__arrow { transform: rotate(90deg); }
}

.spe-ditem__output {
    flex: 1;
    font-weight: 700;
    color: var(--spe-primary);
    font-size: 1rem;
}
@media (min-width: 640px) {
    .spe-ditem__output { text-align: end; }
}

/* ─────────────────────────────────────────────
   STATISTICS
   ───────────────────────────────────────────── */
.spe-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}
@media (min-width: 992px) {
    .spe-stats-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
}

.spe-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--spe-radius-lg);
    padding: var(--space-md);
    text-align: center;
}

.spe-stat__num {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--spe-accent);
    margin-bottom: 0.5rem;
    line-height: 1;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.spe-stat__label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--spe-text-light);
}

/* ─────────────────────────────────────────────
   TIMELINE (6-STEP FRAMEWORK)
   ───────────────────────────────────────────── */
.spe-timeline {
    position: relative;
    padding: var(--space-md) 0;
}

@media (max-width: 991px) {
    .spe-timeline::before {
        content: '';
        position: absolute;
        top: 0; bottom: 0;
        left: 24px;
        width: 2px;
        background: var(--spe-border);
    }
    [dir="rtl"] .spe-timeline::before { left: auto; right: 24px; }
}

@media (min-width: 992px) {
    .spe-timeline {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
    .spe-timeline::before {
        content: '';
        position: absolute;
        top: 40px; /* aligns with icon center */
        left: 0; right: 0;
        height: 2px;
        background: var(--spe-border);
        z-index: 0;
    }
}

.spe-tstep {
    position: relative;
    z-index: 1;
    padding: 0 0 var(--space-md) 4rem;
}
[dir="rtl"] .spe-tstep { padding: 0 4rem var(--space-md) 0; }

@media (min-width: 992px) {
    .spe-tstep { padding: 0; text-align: center; }
    [dir="rtl"] .spe-tstep { padding: 0; }
}

.spe-tstep__icon {
    position: absolute;
    top: -4px; left: 8px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--spe-bg-white);
    border: 2px solid var(--spe-accent);
    color: var(--spe-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}
[dir="rtl"] .spe-tstep__icon { left: auto; right: 8px; }

@media (min-width: 992px) {
    .spe-tstep__icon {
        position: relative;
        top: 0; left: 0; right: 0;
        margin: 0 auto var(--space-sm);
        width: 48px; height: 48px;
        font-size: 1rem;
    }
}

.spe-tstep__title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.spe-tstep__desc {
    font-size: 0.875rem;
    color: var(--spe-text-muted);
}

/* ─────────────────────────────────────────────
   LEAD FORM SECTION
   ───────────────────────────────────────────── */
.spe-lead-section {
    background: var(--spe-primary);
    color: #fff;
    position: relative;
}

.spe-lead-grid {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}
@media (min-width: 992px) {
    .spe-lead-grid { grid-template-columns: 1fr 1fr; }
}

.spe-lead-content__title {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.spe-lead-content__desc {
    color: var(--spe-text-light);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.spe-trust-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spe-trust-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: #fff;
}
.spe-trust-point i {
    color: var(--spe-accent);
    margin-top: 4px;
}

/* The Form Card */
.spe-form-card {
    background: var(--spe-bg-white);
    border-radius: var(--spe-radius-xl);
    padding: var(--space-md);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    color: var(--spe-text-main);
}

@media (min-width: 640px) {
    .spe-form-card { padding: var(--space-lg); }
}

.spe-form {
    display: grid;
    gap: 1rem;
}

.spe-field__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.spe-field__required {
    color: var(--spe-error);
}

.spe-field__input {
    width: 100%;
    font-family: var(--spe-font);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--spe-border);
    border-radius: var(--spe-radius);
    background: var(--spe-bg-alt);
    color: var(--spe-text-main);
    transition: all var(--spe-transition);
    appearance: none;
}
.spe-field__input:focus {
    outline: none;
    border-color: var(--spe-accent);
    background: var(--spe-bg-white);
    box-shadow: 0 0 0 4px rgba(21,152,68,0.1);
}
.spe-field__input.is-error {
    border-color: var(--spe-error);
    background: rgba(239,68,68,0.02);
}

.spe-field__select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
[dir="rtl"] .spe-field__select {
    background-position: left 1rem center;
    padding-left: 2.5rem;
    padding-right: 1rem;
}

.spe-field__error {
    display: block;
    font-size: 0.75rem;
    color: var(--spe-error);
    margin-top: 0.25rem;
    min-height: 0;
}
.spe-field__error:empty { display: none; }

/* Phone input group */
.spe-phone-group {
    display: flex;
    position: relative;
}
.spe-phone-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border: 1px solid var(--spe-border);
    border-right: none;
    border-radius: var(--spe-radius) 0 0 var(--spe-radius);
    background: var(--spe-border-light);
}
[dir="rtl"] .spe-phone-code {
    border-right: 1px solid var(--spe-border);
    border-left: none;
    border-radius: 0 var(--spe-radius) var(--spe-radius) 0;
}
.spe-field__input--phone {
    border-radius: 0 var(--spe-radius) var(--spe-radius) 0;
}
[dir="rtl"] .spe-field__input--phone {
    border-radius: var(--spe-radius) 0 0 var(--spe-radius);
}

/* Custom Dropdown for phone code */
.spe-phone-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--spe-border);
    border-radius: var(--spe-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 4px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
}
.spe-phone-dropdown__search {
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid var(--spe-border);
    font-family: var(--spe-font);
    outline: none;
}
.spe-phone-dropdown__list {
    overflow-y: auto;
    flex: 1;
}
.spe-phone-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.spe-phone-dropdown__item:hover { background: var(--spe-bg-alt); }
.spe-phone-dropdown__item-code { direction: ltr; margin-left: auto; color: var(--spe-text-muted); }

/* Form privacy text */
.spe-form-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--spe-text-muted);
    margin-top: 1rem;
}
.spe-form-privacy i { color: var(--spe-accent); }

/* Form Success */
.spe-form-message {
    padding: 1.5rem;
    border-radius: var(--spe-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}
.spe-form-message--success {
    background: rgba(21,152,68,0.1);
    border: 1px solid rgba(21,152,68,0.3);
    color: var(--spe-accent-hover);
}
.spe-form-message--success i { font-size: 1.5rem; }

/* ─────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────── */
.spe-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.spe-accordion__item {
    border-bottom: 1px solid var(--spe-border);
}

.spe-accordion__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--spe-primary);
    text-align: start;
}

.spe-accordion__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    color: var(--spe-text-muted);
}
.spe-accordion__icon::before,
.spe-accordion__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--spe-transition);
}
.spe-accordion__icon::before { width: 16px; height: 2px; }
.spe-accordion__icon::after { height: 16px; width: 2px; }

.spe-accordion__btn[aria-expanded="true"] .spe-accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.spe-accordion__panel {
    padding-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--spe-text-muted);
    line-height: 1.8;
}

/* ─────────────────────────────────────────────
   FINAL CTA
   ───────────────────────────────────────────── */
.spe-final-cta {
    background: var(--spe-primary);
    color: #fff;
    text-align: center;
    padding: var(--space-xl) 0;
}

.spe-final-cta__title {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.spe-final-cta__desc {
    color: var(--spe-text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.spe-final-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .spe-final-cta__actions { flex-direction: column; }
    .spe-final-cta__actions .spe-btn { width: 100%; }
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.spe-footer {
    background: #06101a;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.spe-footer__inner img { height: 24px; }
.spe-footer__copy { font-size: 0.875rem; color: var(--spe-text-muted); }

/* ─────────────────────────────────────────────
   MOBILE STICKY CONTACT BAR
   ───────────────────────────────────────────── */
.spe-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .spe-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0; right: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid var(--spe-border);
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        display: flex;
        gap: 0.75rem;
        transform: translateY(100%);
        transition: transform var(--spe-transition);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }
    
    .spe-sticky-bar.is-visible {
        transform: translateY(0);
    }
    
    .spe-sticky-bar .spe-btn {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

/* ─────────────────────────────────────────────
   MODAL (PROFILE DOWNLOAD)
   ───────────────────────────────────────────── */
.spe-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spe-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.spe-modal__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 28, 45, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.spe-modal__box {
    position: relative;
    background: var(--spe-bg-white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--spe-radius-xl);
    padding: var(--space-md);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.spe-modal.is-open .spe-modal__box {
    transform: translateY(0) scale(1);
}

.spe-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--spe-bg-alt);
    color: var(--spe-text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
[dir="rtl"] .spe-modal__close { right: auto; left: 1rem; }
.spe-modal__close:hover {
    background: var(--spe-error);
    color: #fff;
    transform: rotate(90deg);
}

.spe-modal__header {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.spe-modal__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--spe-primary);
}

.spe-modal__desc {
    font-size: 0.9375rem;
    color: var(--spe-text-muted);
}

/* ─────────────────────────────────────────────
   FLOATING WHATSAPP BUTTON
   ───────────────────────────────────────────── */
.spe-float-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--spe-whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
    z-index: 1500;
    transition: transform 0.3s ease;
    text-decoration: none;
}
[dir="rtl"] .spe-float-wa {
    right: auto;
    left: 2rem;
}
.spe-float-wa:hover {
    transform: scale(1.1);
    color: #fff;
}
.spe-float-wa::before,
.spe-float-wa::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37,211,102,0.4);
    z-index: -1;
    animation: waPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.spe-float-wa::after {
    animation-delay: 1s;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    /* Hide float on mobile since we have sticky bar */
    .spe-float-wa { display: none; }
}
