/**
 * Consulting cost savings — poster-style comparison panel (right rail).
 */

.aiea-marketing-rail__tier-savings {
    width: 100%;
}

.aiea-marketing-rail__onboarding-promo {
    display: none;
    flex-direction: column;
    width: 100%;
}

body.aiea-app--live .advisor-fab--onboarding .aiea-marketing-rail__tier-savings {
    display: none;
}

body.aiea-app--live .advisor-fab--onboarding .aiea-marketing-rail__onboarding-promo {
    display: flex;
}

body.aiea-app--live .advisor-fab--tiers .aiea-marketing-rail__onboarding-promo {
    display: none !important;
}

/* ---- Main panel ---- */
.aiea-consulting-savings {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 0.85rem 0.7rem 0.95rem;
    border-radius: 20px;
    color: #0f2a44;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(124, 58, 237, 0.07), transparent 55%),
        radial-gradient(100% 70% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow:
        0 4px 6px rgba(15, 42, 68, 0.04),
        0 16px 40px rgba(29, 79, 145, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* ---- Hero (portrait lives beside center-column headline) ---- */
.aiea-cs-hero {
    display: block;
    margin-bottom: 0.7rem;
}

.aiea-cs-hero__copy {
    min-width: 0;
}

.aiea-cs-hero__brand {
    margin: 0 0 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.aiea-cs-hero__title {
    margin: 0 0 0.3rem;
    font-size: clamp(0.95rem, 2.4vw, 1.12rem);
    line-height: 1.2;
    font-weight: 900;
    color: #0f2a44;
}

.aiea-cs-hero__subtitle {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #475569;
    font-weight: 500;
}

/* ---- Compact toolbar (not form-like) ---- */
.aiea-cs-toolbar {
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 4px 14px rgba(15, 42, 68, 0.05);
}

.aiea-cs-toolbar__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aiea-cs-toolbar__select,
.aiea-cs-toolbar__input {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    color: #0f2a44;
    background: #f8fafc;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 10px;
    padding: 0.35rem 0.45rem;
}

.aiea-cs-toolbar__select--country {
    background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
}

.aiea-cs-toolbar__select:focus,
.aiea-cs-toolbar__input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 1px;
}

.aiea-cs-toolbar__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.aiea-cs-toolbar__field-label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.aiea-cs-toolbar__rate {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.aiea-cs-toolbar__rate .aiea-cs-toolbar__input {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.aiea-cs-toolbar__unit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1d4f91;
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    border-radius: 8px;
    white-space: nowrap;
}

.aiea-cs-toolbar__range {
    margin: 0.4rem 0 0;
    padding: 0.3rem 0.45rem;
    font-size: 0.65rem;
    line-height: 1.35;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    background: rgba(241, 245, 249, 0.9);
    border-radius: 8px;
}

/* ---- Comparison duel ---- */
.aiea-cs-duel {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.65rem;
    position: relative;
}

.aiea-cs-offer {
    position: relative;
    padding: 0.65rem 0.6rem 0.7rem;
    border-radius: 14px;
}

.aiea-cs-offer--classic {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid rgba(100, 116, 139, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.aiea-cs-offer--ultimate {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #eff6ff 55%, #e0e7ff 100%);
    border: 2px solid rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    margin-top: 0.15rem;
}

.aiea-cs-offer__badge {
    position: absolute;
    top: -0.45rem;
    right: 0.55rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
}

.aiea-cs-offer__head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.aiea-cs-offer__head--ultimate {
    padding-right: 3.5rem;
}

.aiea-cs-offer__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
}

.aiea-cs-offer__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    color: #334155;
}

.aiea-cs-offer--ultimate .aiea-cs-offer__title {
    color: #1e3a8a;
}

.aiea-cs-offer__price {
    margin: 0 0 0.15rem;
    font-size: clamp(1.35rem, 3.5vw, 1.65rem);
    font-weight: 900;
    line-height: 1.1;
    color: #475569;
    letter-spacing: -0.02em;
}

.aiea-cs-offer__price--ultimate {
    color: #1d4ed8;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.aiea-cs-offer__meta {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}

.aiea-cs-offer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.68rem;
    line-height: 1.4;
    color: #64748b;
}

.aiea-cs-offer__list li {
    position: relative;
    padding-left: 1rem;
    margin-top: 0.2rem;
}

.aiea-cs-offer__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #94a3b8;
}

.aiea-cs-offer__list--ultimate {
    color: #334155;
}

.aiea-cs-offer__list--ultimate li::before {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.aiea-cs-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -0.35rem 0;
    position: relative;
    z-index: 2;
}

.aiea-cs-vs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #64748b, #475569);
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 42, 68, 0.2);
}

/* ---- Savings hero (main focus) ---- */
.aiea-cs-savings {
    margin-bottom: 0.65rem;
    padding: 0.85rem 0.65rem;
    text-align: center;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.25) 45%, rgba(45, 212, 191, 0.2) 100%);
    border: 2px solid rgba(16, 185, 129, 0.45);
    box-shadow:
        0 8px 28px rgba(16, 185, 129, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.aiea-cs-savings__kicker {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #065f46;
}

.aiea-cs-savings__amount {
    margin: 0.25rem 0 0.15rem;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 900;
    line-height: 1.15;
    color: #047857;
}

.aiea-cs-savings__pct-line {
    margin: 0.15rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem 0.35rem;
}

.aiea-cs-savings__pct-prefix,
.aiea-cs-savings__pct-suffix {
    font-size: 0.78rem;
    font-weight: 700;
    color: #065f46;
}

.aiea-cs-savings__pct {
    font-size: clamp(2rem, 5.5vw, 2.65rem);
    font-weight: 900;
    line-height: 1;
    color: #059669;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* ---- Budget chips ---- */
.aiea-cs-budget {
    margin-bottom: 0.65rem;
    padding: 0.6rem 0.55rem;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.9), rgba(239, 246, 255, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.aiea-cs-budget__title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.3;
    color: #065f46;
}

.aiea-cs-budget__chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.aiea-cs-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.3rem;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    color: #334155;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 42, 68, 0.05);
}

.aiea-cs-chip__icon {
    width: 28px;
    height: 28px;
    color: #2563eb;
}

/* ---- CTA ---- */
.aiea-cs-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.aiea-cs-cta__btn {
    appearance: none;
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #7c3aed 100%);
    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.aiea-cs-cta__btn:hover,
.aiea-cs-cta__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
    outline: none;
}

.aiea-cs-cta__link {
    appearance: none;
    border: none;
    background: transparent;
    color: #1d4f91;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
    padding: 0.2rem;
}

.aiea-cs-cta__link:hover,
.aiea-cs-cta__link:focus-visible {
    color: #2563eb;
}

.aiea-cs-disclaimer {
    margin: 0.5rem 0 0;
    font-size: 0.58rem;
    line-height: 1.4;
    text-align: center;
    color: #94a3b8;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    body.aiea-app--live .advisor-fab--tiers .aiea-marketing-rail--right {
        order: 3;
    }

    .aiea-consulting-savings {
        padding: 1rem 0.85rem 1.1rem;
    }

    .aiea-cs-toolbar__inputs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1280px) {
    .aiea-cs-duel {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
        gap: 0.35rem;
    }

    .aiea-cs-vs {
        margin: 0;
        align-self: center;
    }

    .aiea-cs-offer--ultimate {
        margin-top: 0;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .aiea-cs-toolbar__inputs {
        grid-template-columns: 1fr;
    }
}
