/* =====================================================================
   ROI & Costing Calculator — Styles
   ===================================================================== */

/* ── Intro Strip ──────────────────────────────────────────────────── */
.roi-intro-strip {
    background: linear-gradient(135deg, var(--primary, #0d3b6e) 0%, #1a5fa8 100%);
    padding: 18px 0;
}
.roi-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    padding: 8px 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.roi-stat-chip i {
    font-size: 15px;
    color: #ffd166;
}

/* ── Main Section ─────────────────────────────────────────────────── */
.roi-section {
    padding: 60px 0 80px;
    background: #f0f4f9;
}

/* ── Input Card ───────────────────────────────────────────────────── */
.roi-input-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(13, 59, 110, 0.10);
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.roi-card-header {
    background: linear-gradient(135deg, var(--primary, #0d3b6e) 0%, #1a5fa8 100%);
    padding: 28px 28px 22px;
    color: #fff;
}
.roi-step-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff !important;
}
.roi-card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff !important;
}
.roi-card-header p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    color: #fff !important;
}
.roi-card-body {
    padding: 28px;
}

/* ── Fields ───────────────────────────────────────────────────────── */
.roi-field {
    margin-bottom: 24px;
}
.roi-field label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}
.roi-field label i {
    color: var(--primary, #0d3b6e);
}
.roi-label-value {
    margin-left: auto;
    background: var(--primary, #0d3b6e);
    color: #fff;
    border-radius: 99px;
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Select */
.roi-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: auto;
}
.roi-select:focus {
    border-color: var(--primary, #0d3b6e);
    background: #fff;
}

/* Slider */
.roi-slider-wrap {
    padding: 4px 0 0;
}
.roi-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(to right, var(--primary, #0d3b6e) 0%, var(--primary, #0d3b6e) var(--val, 2%), #e2e8f0 var(--val, 2%), #e2e8f0 100%);
    outline: none;
    cursor: pointer;
    margin-bottom: 4px;
}
.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary, #0d3b6e);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(13,59,110,0.3);
    cursor: pointer;
}
.roi-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary, #0d3b6e);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(13,59,110,0.3);
    cursor: pointer;
}
.roi-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}
.roi-or-text {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin: 8px 0 6px;
}
.roi-number-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
}
.roi-number-input:focus {
    border-color: var(--primary, #0d3b6e);
    background: #fff;
}

/* Market Buttons */
.roi-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.roi-market-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 99px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.roi-market-btn.active,
.roi-market-btn:hover {
    border-color: var(--primary, #0d3b6e);
    background: var(--primary, #0d3b6e);
    color: #fff;
}

/* Calc Button */
.roi-calc-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}
.roi-calc-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(245,158,11,0.5);
}
.roi-calc-btn:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    color: #94a3b8;
}
.roi-disclaimer-small {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

/* ── Placeholder Card ─────────────────────────────────────────────── */
.roi-placeholder-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(13,59,110,0.08);
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #cbd5e1;
}
.roi-placeholder-icon {
    width: 80px; height: 80px;
    background: rgba(13,59,110,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary, #0d3b6e);
}
.roi-placeholder-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.roi-placeholder-card p {
    color: #64748b;
    font-size: 14px;
    max-width: 360px;
    margin: 0 auto 24px;
}
.roi-sample-strip {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #f0f4f9;
    border-radius: 12px;
    padding: 16px;
}
.roi-sample-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.roi-sample-label { font-size: 11px; color: #94a3b8; font-weight: 500; }
.roi-sample-val   { font-size: 18px; font-weight: 800; color: var(--primary, #0d3b6e); }

/* ── Metric Cards ─────────────────────────────────────────────────── */
.roi-metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom: 4px solid transparent;
    transition: transform 0.2s;
}
.roi-metric-card:hover { transform: translateY(-3px); }
.roi-mc-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    font-size: 16px;
}
.roi-mc-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.roi-mc-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
}
.roi-mc-invest   { border-color: #3b82f6; } .roi-mc-invest   .roi-mc-icon { background: #eff6ff; color: #3b82f6; }
.roi-mc-roi      { border-color: #10b981; } .roi-mc-roi      .roi-mc-icon { background: #ecfdf5; color: #10b981; }
.roi-mc-payback  { border-color: #f59e0b; } .roi-mc-payback  .roi-mc-icon { background: #fffbeb; color: #f59e0b; }
.roi-mc-revenue  { border-color: var(--primary, #0d3b6e); } .roi-mc-revenue .roi-mc-icon { background: rgba(13,59,110,0.08); color: var(--primary, #0d3b6e); }

/* ── Chart Card ───────────────────────────────────────────────────── */
.roi-chart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
}
.roi-chart-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.roi-chart-header h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.roi-chart-header h5 i { color: var(--primary, #0d3b6e); }
.roi-chart-body {
    padding: 20px;
}

/* ── Breakdown Card ───────────────────────────────────────────────── */
.roi-breakdown-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
}
.roi-breakdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.roi-breakdown-header h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.roi-breakdown-header h5 i { color: var(--primary, #0d3b6e); }
.roi-breakdown-body { padding: 0 20px; }
.roi-brow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: #475569;
}
.roi-brow:last-child { border-bottom: none; }
.roi-brow span:last-child { font-weight: 700; color: #1e293b; white-space: nowrap; }
.roi-brow-total {
    background: rgba(13,59,110,0.05);
    margin: 0 -20px;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    color: var(--primary, #0d3b6e) !important;
}
.roi-brow-total span { color: var(--primary, #0d3b6e) !important; font-size: 15px; }

/* ── Advantage Card ───────────────────────────────────────────────── */
.roi-advantage-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
}
.roi-advantage-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.roi-advantage-header h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.roi-advantage-header h5 i { color: #f59e0b; }
.roi-advantage-body { padding: 16px 20px; }
.roi-adv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.roi-adv-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.4;
}
.roi-adv-item i {
    color: #10b981;
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── Lead CTA Box ─────────────────────────────────────────────────── */
.roi-cta-box {
    background: linear-gradient(135deg, var(--primary, #0d3b6e) 0%, #1a5fa8 100%);
    border-radius: 18px;
    padding: 28px;
}
.roi-cta-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.roi-cta-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}
.roi-cta-text { flex: 1; min-width: 200px; }
.roi-cta-text h5 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.roi-cta-text p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.82);
    margin: 0;
}
.roi-cta-btn {
    padding: 12px 22px;
    background: #f59e0b;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.roi-cta-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* ── How It Works Section ─────────────────────────────────────────── */
.roi-how-section {
    padding: 60px 0;
    background: #fff;
}
.roi-section-badge {
    display: inline-block;
    background: rgba(13,59,110,0.08);
    color: var(--primary, #0d3b6e);
    border-radius: 99px;
    padding: 5px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.roi-section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #1e293b;
}
.roi-how-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.roi-how-card:hover {
    border-color: var(--primary, #0d3b6e);
    box-shadow: 0 8px 32px rgba(13,59,110,0.12);
    transform: translateY(-4px);
    background: #fff;
}
.roi-how-num {
    font-size: 72px;
    font-weight: 900;
    color: rgba(13,59,110,0.06);
    position: absolute;
    top: -10px;
    right: 16px;
    line-height: 1;
    pointer-events: none;
}
.roi-how-icon {
    font-size: 36px;
    color: var(--primary, #0d3b6e);
    margin-bottom: 14px;
    display: block;
}
.roi-how-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.roi-how-card p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* ── Lead Modal ───────────────────────────────────────────────────── */
.roi-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.roi-modal-header {
    background: linear-gradient(135deg, var(--primary, #0d3b6e) 0%, #1a5fa8 100%);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: none;
}
.roi-modal-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.modal-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 2px;
}
.roi-modal-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.roi-modal-body { padding: 24px; }
.roi-modal-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}
.roi-modal-input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
}
.roi-modal-input:focus {
    border-color: var(--primary, #0d3b6e);
    background: #fff;
}
.roi-modal-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 12px;
}
.roi-modal-submit {
    width: 100%;
    padding: 13px;
    margin-top: 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.roi-modal-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245,158,11,0.5);
}
.roi-modal-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.roi-modal-privacy {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin: 10px 0 0;
}

/* ── Modal Success ─────────────────────────────────────────────────── */
.roi-modal-success { text-align: center; padding: 20px 0; }
.roi-success-icon {
    font-size: 56px;
    color: #10b981;
    margin-bottom: 14px;
}
.roi-modal-success h5 {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}
.roi-modal-success p {
    color: #64748b;
    font-size: 14px;
    max-width: 300px;
    margin: 0 auto;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .roi-input-card { position: static; }
}

@media (max-width: 767.98px) {
    .roi-adv-grid { grid-template-columns: 1fr; }
    .roi-cta-inner { flex-direction: column; align-items: flex-start; }
    .roi-cta-btn { width: 100%; }
    .roi-section { padding: 40px 0 60px; }
    .roi-placeholder-card { padding: 40px 20px; }
    .roi-sample-strip { gap: 10px; }
    .roi-card-body { padding: 20px; }
    .roi-stat-chip { font-size: 11px; padding: 6px 12px; }
}

@media (max-width: 480px) {
    .roi-how-num { font-size: 50px; }
    .roi-metric-card { padding: 14px 10px; }
    .roi-mc-value { font-size: 0.95rem; }
    .roi-brow { font-size: 12.5px; }
}
