/* ROI Calculator — PE/MSO CFO inbound widget styles */

.roi-calc-section {
  background: linear-gradient(180deg, #f8feff 0%, #fff 100%);
  border-top: 1px solid #e5f0f5;
  border-bottom: 1px solid #e5f0f5;
  padding: 5rem 1.5rem;
}
.roi-calc-inner { max-width: 1080px; margin: 0 auto; }

.roi-calc-header { text-align: center; margin-bottom: 3rem; }
.roi-calc-eyebrow {
  display: inline-block;
  background: rgba(42,107,123,0.1); color: #2A6B7B;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.9rem;
  border-radius: 100px; margin-bottom: 1rem;
}
.roi-calc-headline {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900; color: #0F2B33; line-height: 1.15; margin: 0 0 0.85rem;
}
.roi-calc-subheadline {
  font-size: 1.05rem; color: #4a5568; max-width: 600px; margin: 0 auto;
}

.roi-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) { .roi-calc-layout { grid-template-columns: 1fr; } }

/* ── INPUTS ── */
.roi-calc-inputs {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #d8d8d8;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(15,43,51,0.07);
}
.roi-calc-panel-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #2A6B7B; margin-bottom: 1.5rem;
}
.roi-input-group { margin-bottom: 1.5rem; }
.roi-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.45rem;
}
.roi-label { font-size: 0.87rem; font-weight: 600; color: #1A1A1A; }
.roi-val-display {
  font-size: 0.95rem; font-weight: 700; color: #0F2B33;
  font-family: var(--font-display); min-width: 70px; text-align: right;
}
.roi-slider {
  width: 100%; height: 6px; background: #D8D8D8;
  border-radius: 100px; appearance: none; cursor: pointer; outline: none;
  accent-color: #0F2B33;
}
.roi-slider::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #0F2B33; cursor: pointer; box-shadow: 0 2px 6px rgba(15,43,51,0.25);
}
.roi-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #0F2B33; cursor: pointer; border: none;
}
.roi-range-ends {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: #8A8A8A; margin-top: 0.3rem;
}

/* ── OUTPUTS ── */
.roi-calc-outputs { display: flex; flex-direction: column; gap: 1rem; }

.roi-out-leakage {
  background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 16px; padding: 1.5rem 1.75rem;
}
.roi-out-label-red {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #dc2626; margin-bottom: 0.4rem;
}
.roi-out-leakage-amt {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  color: #dc2626; line-height: 1;
}
.roi-out-leakage-sub { font-size: 0.8rem; color: #b91c1c; margin-top: 0.4rem; }

.roi-out-recovery {
  background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 16px; padding: 1.5rem 1.75rem;
}
.roi-out-recovery-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem;
}
.roi-out-recovery-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #166534;
}
.roi-methodology-btn {
  font-size: 0.72rem; color: #2A6B7B; background: none; border: none;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0;
  font-family: var(--font-body);
}
.roi-out-recovery-amt {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  color: #166534; line-height: 1;
}
.roi-out-recovery-sub {
  font-size: 0.8rem; color: #4a5568; margin-top: 0.4rem;
  display: flex; align-items: center; gap: 0.3rem;
}
/* Tooltip */
.roi-tooltip-anchor {
  position: relative; cursor: help; color: #6b7280;
}
.roi-tooltip-text {
  display: none; position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  width: 260px; background: #1f2937; color: #f9fafb; font-size: 0.72rem; line-height: 1.5;
  padding: 0.6rem 0.8rem; border-radius: 8px; z-index: 10;
  pointer-events: none; white-space: normal;
}
.roi-tooltip-anchor:hover .roi-tooltip-text,
.roi-tooltip-anchor:focus .roi-tooltip-text { display: block; }

.roi-out-kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.roi-kpi-tile {
  background: #0F2B33; border-radius: 14px; padding: 1.1rem 1.25rem; text-align: center;
}
.roi-kpi-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.35rem;
}
.roi-kpi-val {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: #fff;
}
.roi-kpi-green { color: #F0A836; }
.roi-kpi-sub {
  font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-top: 0.2rem;
}

.roi-cta-block { text-align: center; padding: 0.5rem 0; }
.roi-demo-btn {
  width: 100%; background: linear-gradient(135deg, #0F2B33 0%, #1A4A56 100%);
  color: #F0A836; font-size: 1rem; font-weight: 700; font-family: var(--font-body);
  border: none; border-radius: 14px; padding: 1rem 1.5rem; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(15,43,51,0.3);
}
.roi-demo-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,43,51,0.35); }
.roi-cta-sub { font-size: 0.78rem; color: #6b7280; margin-top: 0.6rem; }

/* ── MODALS ── */
.roi-modal {
  border: none; border-radius: 20px; padding: 0; max-width: 540px; width: 90%;
  box-shadow: 0 20px 60px rgba(15,43,51,0.25);
}
.roi-modal::backdrop { background: rgba(15,43,51,0.45); backdrop-filter: blur(4px); }
.roi-modal-inner { padding: 2rem 2.25rem 2.25rem; position: relative; }
.roi-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: #f3f4f6; border: none; border-radius: 50%; width: 2rem; height: 2rem;
  font-size: 0.8rem; cursor: pointer; color: #4a5568; line-height: 1;
}
.roi-modal-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #2A6B7B; margin-bottom: 0.4rem;
}
.roi-modal-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: #0F2B33; margin: 0 0 1rem;
}
.roi-modal-sub { font-size: 0.9rem; color: #4a5568; margin: 0 0 1.25rem; }

.roi-method-block { margin-bottom: 1.25rem; }
.roi-method-section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #2A6B7B; margin-bottom: 0.4rem;
}
.roi-method-block p { font-size: 0.88rem; color: #4a5568; margin: 0.3rem 0; }
.roi-method-cite {
  background: #f8f9fa; border-left: 3px solid #2A6B7B;
  padding: 0.75rem 1rem; border-radius: 0 8px 8px 0;
  font-size: 0.82rem; color: #4a5568; line-height: 1.55; margin-top: 0.6rem;
}
.roi-method-cite code { background: #e5e7eb; padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.78rem; }

.roi-modal-primary-btn {
  width: 100%; background: #0F2B33; color: #F0A836;
  font-size: 0.95rem; font-weight: 700; font-family: var(--font-body);
  border: none; border-radius: 10px; padding: 0.85rem 1.5rem; cursor: pointer; margin-top: 0.5rem;
}

/* ── DEMO FORM ── */
.roi-demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.85rem;
}
@media (max-width: 520px) { .roi-demo-grid { grid-template-columns: 1fr; } }
.roi-demo-field label {
  display: block; font-size: 0.8rem; font-weight: 600; color: #1A1A1A; margin-bottom: 0.3rem;
}
.roi-demo-field input {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1.5px solid #d8d8d8; border-radius: 8px;
  font-size: 0.9rem; font-family: var(--font-body); color: #1A1A1A;
  background: #fff; transition: border-color 0.2s;
}
.roi-demo-field input:focus { outline: none; border-color: #2A6B7B; }
.roi-demo-error {
  color: #dc2626; font-size: 0.85rem; margin-bottom: 0.6rem;
}
.roi-demo-submit-btn {
  width: 100%; background: #0F2B33; color: #F0A836;
  font-size: 1rem; font-weight: 700; font-family: var(--font-body);
  border: none; border-radius: 10px; padding: 0.9rem 1.5rem; cursor: pointer;
  transition: background 0.2s;
}
.roi-demo-submit-btn:hover { background: #1A4A56; }
.roi-demo-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
