/* ============================================================
   SIMULAÇÃO — Step Form Styles
   ============================================================ */

/* ── Standalone mode (no header/footer) ──── */
.sim-section-standalone {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - var(--sim-nav-offset, 0px));
    display: flex;
    align-items: center;
}

body {
    padding-top: var(--sim-nav-offset, 72px);
}

.sim-hero {
    padding-bottom: 2rem !important;
}

/* ── Card principal ─────────────────────── */
.sim-section {
    padding: 0 0 5rem;
    position: relative;
}

.sim-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 3rem 2rem;
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin: 0 auto;
}

.sim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d03c79, #6c3e8e);
}

/* ── Progress bar ───────────────────────── */
.sim-progress {
    margin-bottom: 2.5rem;
}

.sim-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.sim-progress-fill {
    height: 100%;
    width: 16.66%;
    background: linear-gradient(90deg, #d03c79, #6c3e8e);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.sim-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s ease;
    cursor: default;
}

.sim-step-dot.active {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(208,60,121,0.3);
}

.sim-step-dot.done {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    border-color: transparent;
    color: #fff;
    opacity: 0.8;
}

/* ── Pages ──────────────────────────────── */
.sim-page {
    display: none;
    animation: simFadeIn 0.4s ease;
}

.sim-page.active {
    display: block;
}

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

.sim-page-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(208,60,121,0.12), rgba(108,62,142,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #d03c79;
    margin: 0 auto 1.25rem;
}

.sim-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.sim-page-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Input field ────────────────────────── */
.sim-input-wrap {
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
}

.sim-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    padding: 1rem 1.25rem;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.sim-input::-webkit-outer-spin-button,
.sim-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sim-input:focus {
    border-color: #6c3e8e;
    box-shadow: 0 0 0 4px rgba(108,62,142,0.15);
}

.sim-input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* ── Recursos grid (Step 4) ─────────────── */
.sim-recursos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
    width: 95%;
    margin: 0 auto;
}

.sim-recurso-card {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    user-select: none;
}

.sim-recurso-card:hover {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}

.sim-recurso-card.selected {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(208,60,121,0.12), rgba(108,62,142,0.12));
    box-shadow: 0 0 0 2px #d03c79, inset 0 0 0 0px transparent;
}

.sim-recurso-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    font-size: 1rem;
    color: #64748b;
}

.sim-recurso-card.selected .sim-recurso-icon {
    background: linear-gradient(135deg, rgba(208,60,121,0.15), rgba(108,62,142,0.15));
    border-color: transparent;
    color: transparent;
    font-size: 1.2rem;
    box-shadow: 0 0 12px rgba(208,60,121,0.3), 0 0 24px rgba(108,62,142,0.15);
    transform: scale(1.1);
}

.sim-recurso-card.selected .sim-recurso-icon i {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sim-recurso-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.35;
}

.sim-recurso-card.selected .sim-recurso-label {
    color: var(--text-primary);
}

/* ── Navigation buttons ─────────────────── */
.sim-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sim-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-btn-back {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.sim-btn-back:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.sim-btn-back.hidden {
    visibility: hidden;
    pointer-events: none;
}

.sim-btn-next {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    color: #fff;
    margin-left: auto;
}

.sim-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208,60,121,0.3);
}

.sim-btn-new {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    color: #fff;
}

.sim-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208,60,121,0.3);
}

/* ── Result (Step 5) ────────────────────── */
.sim-result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sim-result-header .sim-page-icon {
    background: linear-gradient(135deg, rgba(208,60,121,0.15), rgba(108,62,142,0.05));
    color: #d03c79;
}

.sim-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(208,60,121,0.1), rgba(108,62,142,0.1));
    border: 1px solid rgba(208,60,121,0.25);
    color: #d03c79;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.sim-result-plan {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sim-result-plan.basic-plan {
    border-color: rgba(59,130,246,0.3);
    background: linear-gradient(180deg, rgba(59,130,246,0.06) 0%, transparent 50%);
}

.sim-result-plan.exec-plan {
    border-color: rgba(108,62,142,0.3);
    background: linear-gradient(180deg, rgba(108,62,142,0.06) 0%, transparent 50%);
}

.sim-result-plan.full-plan {
    border-color: rgba(208,60,121,0.3);
    background: linear-gradient(180deg, rgba(208,60,121,0.06) 0%, transparent 50%);
}

.sim-result-plan-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.sim-result-plan-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.sim-result-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.sim-result-price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.sim-result-price .currency {
    font-size: 1.3rem;
    font-weight: 600;
    vertical-align: super;
}

/* ── Breakdown table ────────────────────── */
.sim-breakdown {
    margin-top: 1.5rem;
    text-align: left;
}

.sim-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.sim-breakdown-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sim-breakdown-label i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.sim-breakdown-value {
    font-weight: 700;
    color: var(--text-primary);
}

.sim-breakdown-total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-breakdown-total .sim-breakdown-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.sim-breakdown-total .sim-breakdown-value {
    font-size: 1.25rem;
    color: #d03c79;
}

/* ── CTA buttons on result ──────────────── */
.sim-result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.sim-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 340px;
}

.sim-btn-cta-primary {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    color: #fff;
    border: none;
}

.sim-btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208,60,121,0.3);
    color: #fff;
}

.sim-btn-cta-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
}

.sim-btn-cta-secondary:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

/* ============================================================
   LIGHT THEME overrides
   ============================================================ */
[data-theme="light"] .sim-card {
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

[data-theme="light"] .sim-progress-bar {
    background: rgba(0,0,0,0.06);
}

[data-theme="light"] .sim-step-dot {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-muted);
}

[data-theme="light"] .sim-step-dot.active {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    color: #fff;
}

[data-theme="light"] .sim-step-dot.done {
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    color: #fff;
    opacity: 0.8;
}

[data-theme="light"] .sim-input {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.12);
}

[data-theme="light"] .sim-input:focus {
    border-color: #6c3e8e;
    box-shadow: 0 0 0 4px rgba(108,62,142,0.1);
}

[data-theme="light"] .sim-recurso-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .sim-recurso-card:hover {
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
}

[data-theme="light"] .sim-recurso-card.selected {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(208,60,121,0.08), rgba(108,62,142,0.08));
    box-shadow: 0 0 0 2px #d03c79;
}

[data-theme="light"] .sim-recurso-check {
    border-color: rgba(0,0,0,0.15);
}

[data-theme="light"] .sim-recurso-icon {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
    color: #94a3b8;
}

[data-theme="light"] .sim-recurso-card.selected .sim-recurso-icon {
    background: linear-gradient(135deg, rgba(208,60,121,0.1), rgba(108,62,142,0.1));
    box-shadow: 0 0 12px rgba(208,60,121,0.2), 0 0 24px rgba(108,62,142,0.1);
}

[data-theme="light"] .sim-btn-back {
    border-color: rgba(0,0,0,0.1);
    color: var(--text-muted);
}

[data-theme="light"] .sim-btn-back:hover {
    border-color: rgba(0,0,0,0.2);
    color: var(--text-primary);
}

[data-theme="light"] .sim-nav {
    border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .sim-result-plan {
    background: rgba(0,0,0,0.015);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .sim-result-plan.basic-plan {
    border-color: rgba(37,99,235,0.25);
    background: linear-gradient(180deg, rgba(37,99,235,0.04) 0%, transparent 50%);
}

[data-theme="light"] .sim-result-plan.exec-plan {
    border-color: rgba(108,62,142,0.25);
    background: linear-gradient(180deg, rgba(108,62,142,0.04) 0%, transparent 50%);
}

[data-theme="light"] .sim-result-plan.full-plan {
    border-color: rgba(208,60,121,0.25);
    background: linear-gradient(180deg, rgba(208,60,121,0.04) 0%, transparent 50%);
}

[data-theme="light"] .sim-breakdown-row {
    border-bottom-color: rgba(0,0,0,0.04);
}

[data-theme="light"] .sim-breakdown-total {
    border-top-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .sim-btn-cta-secondary {
    border-color: rgba(0,0,0,0.12);
    color: var(--text-secondary);
}

[data-theme="light"] .sim-btn-cta-secondary:hover {
    border-color: rgba(0,0,0,0.2);
    color: var(--text-primary);
}

/* ── Plan features list in result ────────── */
.sim-plan-features {
    margin-top: 1.5rem;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
}

.sim-plan-features-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.sim-plan-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
}

.sim-plan-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.sim-plan-feature-item i {
    font-size: 0.65rem;
    color: #d03c79;
    min-width: 14px;
    text-align: center;
}

[data-theme="light"] .sim-plan-features {
    border-top-color: rgba(0,0,0,0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .sim-card {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 18px;
    }

    .sim-page-title {
        font-size: 1.2rem;
    }

    .sim-page-desc {
        font-size: 0.85rem;
    }

    .sim-input {
        font-size: 1.5rem;
    }

    .sim-recursos-grid {
        grid-template-columns: 1fr;
    }

    .sim-plan-features-grid {
        grid-template-columns: 1fr;
    }

    .sim-plan-features-grid {
        grid-template-columns: 1fr;
    }

    .sim-result-price {
        font-size: 2.25rem;
    }

    .sim-result-plan-name {
        font-size: 1.4rem;
    }

    .sim-step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .sim-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* ============================================================
   LEAD MODAL
   ============================================================ */

/* ── Overlay ────────────────────────────── */
.lead-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lead-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Dialog ─────────────────────────────── */
.lead-modal {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 980px;
    max-height: 96vh;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.lead-modal-overlay.open .lead-modal {
    transform: translateY(0) scale(1);
}

/* ── Close button ───────────────────────── */
.lead-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.lead-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Left column: Plan preview ──────────── */
.lead-modal-plan {
    padding: 1.75rem 1.75rem;
    background: linear-gradient(160deg, rgba(208, 60, 121, 0.08) 0%, rgba(108, 62, 142, 0.05) 55%, transparent 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 24px 0 0 24px;
    gap: 0;
}

.lead-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(208, 60, 121, 0.3);
    color: #d03c79;
    background: rgba(208, 60, 121, 0.08);
    margin-bottom: 0.85rem;
}

.lead-plan-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, rgba(208, 60, 121, 0.15), rgba(108, 62, 142, 0.12));
}

.lead-plan-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.lead-plan-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.9rem;
    max-width: 230px;
}

.lead-plan-price {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.lead-plan-price .currency {
    font-size: 1.1rem;
    font-weight: 600;
    vertical-align: super;
}

.lead-plan-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.lead-plan-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.lead-plan-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.73rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lead-plan-chip i {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.lead-plan-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.lead-plan-security i {
    color: #22c55e;
}

/* ── Features list inside modal left column ── */
.lead-modal-features {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.7rem 0;
    margin: 0.65rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.lead-modal-feature-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.lead-modal-feature-item i {
    font-size: 0.62rem;
    color: #d03c79;
    min-width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.lead-modal-feature-more {
    color: var(--text-muted);
    font-style: italic;
}

.lead-modal-feature-more i {
    color: var(--text-muted);
}

[data-theme="light"] .lead-modal-features {
    border-top-color: rgba(0, 0, 0, 0.07);
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

/* ── Right column: Form ─────────────────── */
.lead-modal-form-col {
    padding: 1.75rem 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-modal-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
    background: rgba(34, 197, 94, 0.07);
    margin-bottom: 0.65rem;
    align-self: flex-start;
}

.lead-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.lead-modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    line-height: 1.55;
}

/* ── Form fields ────────────────────────── */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lead-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.lead-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lead-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.lead-input-wrap:focus-within .lead-input-icon {
    color: #6c3e8e;
}

.lead-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.82rem 1rem 0.82rem 2.75rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.lead-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.lead-input:focus {
    border-color: #6c3e8e;
    box-shadow: 0 0 0 3px rgba(108, 62, 142, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.lead-form-group.has-error .lead-input {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.lead-form-group.has-error .lead-input-icon {
    color: #f87171;
}

.lead-input-error {
    font-size: 0.75rem;
    color: #f87171;
    min-height: 1rem;
    display: block;
    line-height: 1.3;
}

/* ── Submit button ──────────────────────── */
.lead-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #d03c79, #6c3e8e);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.4rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.lead-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(208, 60, 121, 0.35);
}

.lead-btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.lead-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Submit error banner ────────────────── */
.lead-submit-error {
    font-size: 0.78rem;
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    margin: 0;
    text-align: center;
}

/* ── Success state ──────────────────────── */
.lead-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    gap: 0.75rem;
}

.lead-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.lead-success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.lead-success-msg {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    max-width: 280px;
}

/* ── Light theme overrides ──────────────── */
[data-theme="light"] .lead-modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .lead-modal {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .lead-modal-close {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
}

[data-theme="light"] .lead-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .lead-modal-plan {
    background: linear-gradient(160deg, rgba(208, 60, 121, 0.05) 0%, rgba(108, 62, 142, 0.03) 55%, transparent 100%);
    border-right-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .lead-plan-chip {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.07);
    color: var(--text-secondary);
}

[data-theme="light"] .lead-plan-chip i {
    color: var(--text-muted);
}

[data-theme="light"] .lead-input {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lead-input:focus {
    border-color: #6c3e8e;
    box-shadow: 0 0 0 3px rgba(108, 62, 142, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

/* ── Success toast ─────────────────────── */
.lead-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 10100;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left: 4px solid #22c55e;
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.lead-toast.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.lead-toast.hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(120%);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.lead-toast-icon {
    font-size: 1.5rem;
    color: #22c55e;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.lead-toast-body {
    flex: 1;
    min-width: 0;
}

.lead-toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
}

.lead-toast-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.lead-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
    transition: color 0.2s;
}

.lead-toast-close:hover {
    color: var(--text-primary);
}

[data-theme="light"] .lead-toast {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 767.98px) {
    .lead-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .lead-modal-plan {
        padding: 2rem 1.5rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 24px 24px 0 0;
    }

    [data-theme="light"] .lead-modal-plan {
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    .lead-plan-desc {
        max-width: 100%;
    }

    .lead-modal-form-col {
        padding: 1.75rem 1.5rem 2rem;
    }

    .lead-plan-price {
        font-size: 2rem;
    }

    .lead-plan-name {
        font-size: 1.6rem;
    }
}
