/* ============================================================
   KVN Promos ROI Calculator v3 — Frontend Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --rc-orange:       #E8520A;
  --rc-orange-light: #FF6B2B;
  --rc-orange-pale:  #FFF0EA;
  --rc-dark:         #1A1A2E;
  --rc-mid:          #4A4A6A;
  --rc-light:        #F8F7FF;
  --rc-white:        #ffffff;
  --rc-border:       #E2E0F0;
  --rc-success:      #22C55E;
  --rc-radius:       16px;
  --rc-shadow:       0 4px 6px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.08);
  --rc-font:         'Outfit', sans-serif;
  --rc-mono:         'DM Mono', monospace;
}

.roi-calc-wrapper {
  font-family: var(--rc-font);
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  animation: roiFadeIn 0.5s ease both;
}

/* ── Social Proof Toast (bottom-left floating) ─────────────── */
.roi-proof-toast {
  position: fixed;
  bottom: 80px;           /* sits above sticky CTA bar */
  left: 20px;
  z-index: 9998;
  max-width: 340px;
  width: calc(100vw - 40px);
  display: none;
}

.roi-proof-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--rc-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--rc-success);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}

.roi-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rc-success);
  flex-shrink: 0;
  animation: roiPulseGreen 1.5s ease-in-out infinite;
}

.roi-proof-text {
  font-family: var(--rc-font);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  flex: 1;
}

.roi-proof-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  cursor: pointer;
  padding: 0 0 0 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s;
}

.roi-proof-close:hover { color: rgba(255,255,255,0.7); }

@keyframes roiPulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

@media (max-width: 480px) {
  .roi-proof-toast { bottom: 70px; left: 12px; max-width: calc(100vw - 24px); }
}

/* ── Header ────────────────────────────────────────────────── */
.roi-header {
  text-align: center;
  margin-bottom: 32px;
}

.roi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rc-orange-pale);
  color: var(--rc-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  border: 1px solid rgba(232,82,10,0.2);
}

.roi-header h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  color: var(--rc-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.roi-header p {
  font-size: 15px;
  color: var(--rc-mid);
  margin: 0;
}

/* ── Steps ──────────────────────────────────────────────────── */
.roi-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.roi-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #C0BDD4;
  transition: color 0.3s;
  white-space: nowrap;
}

.roi-step.active { color: var(--rc-orange); }
.roi-step.done   { color: var(--rc-success); }

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #E8E7F3;
  color: #9896B0;
  transition: all 0.3s;
  flex-shrink: 0;
}

.roi-step.active .step-num { background: var(--rc-orange); color: #fff; }
.roi-step.done   .step-num { background: var(--rc-success); color: #fff; }

.step-connector {
  height: 1px;
  width: 28px;
  background: #E2E0F0;
}

/* ── Card ───────────────────────────────────────────────────── */
.roi-card {
  background: var(--rc-white);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--rc-shadow);
  border: 1px solid var(--rc-border);
}

@media (max-width: 520px) { .roi-card { padding: 24px 20px; } }

/* ── Fields ─────────────────────────────────────────────────── */
.roi-field { margin-bottom: 24px; }

.roi-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rc-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
}

.roi-field label svg { opacity: 0.6; flex-shrink: 0; }

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

.roi-input-wrap input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--rc-border);
  border-radius: 13px;
  font-family: var(--rc-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--rc-dark);
  background: #FAFAFA;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* Date input — fix mobile rendering */
.roi-input-wrap input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: 54px;
  color: var(--rc-dark);
  cursor: pointer;
}

.roi-input-wrap input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 24px;
}

.roi-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

.roi-input-wrap input:focus {
  border-color: var(--rc-orange);
  background: var(--rc-white);
  box-shadow: 0 0 0 4px rgba(232,82,10,0.08);
}

.roi-input-wrap input::placeholder { color: #C0BDD4; font-weight: 400; }

.roi-suffix {
  position: absolute;
  right: 16px;
  color: var(--rc-mid);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.6;
}

.roi-currency-label {
  color: var(--rc-orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 1;
}

.roi-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9896B0;
  line-height: 1.5;
}

.roi-divider {
  height: 1px;
  background: var(--rc-border);
  margin: 28px 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.roi-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 24px;
  background: linear-gradient(135deg, var(--rc-orange) 0%, var(--rc-orange-light) 100%);
  color: #fff;
  border: none;
  border-radius: 13px;
  font-family: var(--rc-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(232,82,10,0.32);
}

.roi-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232,82,10,0.42);
}

.roi-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.roi-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: transparent;
  border: 1.5px solid var(--rc-border);
  border-radius: 12px;
  color: var(--rc-mid);
  font-family: var(--rc-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.roi-btn-outline:hover {
  border-color: var(--rc-orange);
  color: var(--rc-orange);
  background: var(--rc-orange-pale);
}

/* ── Results Hero ───────────────────────────────────────────── */
.roi-results-hero {
  text-align: center;
  padding: 28px 0 24px;
}

.roi-results-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rc-mid);
  opacity: 0.7;
  margin-bottom: 6px;
}

.roi-results-amount {
  font-size: clamp(42px, 7vw, 60px);
  font-weight: 800;
  color: var(--rc-orange);
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--rc-mono);
}

.roi-results-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--rc-mid);
  opacity: 0.65;
}

/* ── Revenue Recovery Meter ─────────────────────────────────── */
.roi-recovery-meter {
  background: var(--rc-light);
  border: 1px solid var(--rc-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.roi-recovery-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--rc-dark);
  margin-bottom: 10px;
}

.roi-recovery-pct {
  font-size: 12px;
  color: var(--rc-orange);
  font-weight: 700;
}

.roi-recovery-track {
  height: 10px;
  background: #E2E0F0;
  border-radius: 100px;
  overflow: hidden;
}

.roi-recovery-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rc-orange) 0%, var(--rc-orange-light) 100%);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.roi-recovery-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--rc-mid);
  line-height: 1.5;
}

/* Bleeding ticker removed */

/* ── Summary Table ──────────────────────────────────────────── */
.roi-summary-table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rc-border);
  margin-bottom: 20px;
  font-size: 14px;
}

.roi-col-headers {
  display: grid;
  grid-template-columns: 1fr 130px 115px;
  background: var(--rc-orange);
  padding: 11px 18px;
}

.roi-col-headers span {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roi-col-headers span:nth-child(2),
.roi-col-headers span:nth-child(3) { text-align: right; }

.roi-table-section-label {
  background: var(--rc-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 18px;
}

.roi-summary-row {
  display: grid;
  grid-template-columns: 1fr 130px 115px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rc-border);
  align-items: start;
  gap: 6px;
  transition: background 0.15s;
}

.roi-summary-row:hover { background: var(--rc-orange-pale); }
.roi-summary-row:last-child { border-bottom: none; }

.roi-summary-row span:nth-child(1) { color: var(--rc-dark); }
.roi-summary-row span:nth-child(2) {
  color: var(--rc-mid);
  font-family: var(--rc-mono);
  font-size: 13px;
  text-align: right;
}
.roi-summary-row span:nth-child(3) {
  font-family: var(--rc-mono);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.roi-missed-row { background: rgba(232,82,10,0.04); }

.roi-missed-highlight {
  background: rgba(232,82,10,0.10) !important;
  border-left: 3px solid var(--rc-orange);
}

.roi-missed-highlight span:nth-child(1) {
  font-weight: 700;
  color: var(--rc-dark);
}

.roi-missed-highlight span:nth-child(3) {
  font-size: 15px !important;
  font-weight: 800 !important;
}
.roi-orange     { color: var(--rc-orange); }
.roi-total-row  { background: #f0f0f8; }
.roi-total-num  { font-size: 16px !important; font-weight: 800 !important; }

.roi-missed-badge {
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  background: rgba(232,82,10,0.1);
  color: var(--rc-orange);
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: 4px;
}

/* ── Every Day You Wait ─────────────────────────────────────── */
.roi-wait-box {
  border: 2px solid var(--rc-orange);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  animation: roiFadeUp 0.6s 0.3s ease both;
}

.roi-wait-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--rc-orange-pale);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(232,82,10,0.2);
}

.roi-wait-header span:first-child { font-size: 24px; }

.roi-wait-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--rc-orange);
  margin: 0 0 3px;
}

.roi-wait-header p {
  font-size: 12px;
  color: var(--rc-mid);
  margin: 0;
}

.roi-wait-grid { background: var(--rc-white); }

.roi-wait-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rc-border);
  transition: background 0.15s;
}

.roi-wait-row:last-child { border-bottom: none; }
.roi-wait-row:hover { background: var(--rc-light); }

.roi-wait-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--rc-mid);
}

.roi-wait-amount {
  font-family: var(--rc-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--rc-dark);
}

.roi-wait-row--highlight .roi-wait-amount {
  color: var(--rc-orange);
  font-size: 18px;
}

.roi-wait-row--biggest {
  background: var(--rc-orange-pale);
}

.roi-wait-row--biggest .roi-wait-period {
  font-size: 15px;
  color: var(--rc-dark);
  font-weight: 700;
}

.roi-wait-row--biggest .roi-wait-amount {
  color: var(--rc-orange);
  font-size: 22px;
  font-weight: 700;
}

/* ── Lead Capture Box ───────────────────────────────────────── */
.roi-lead-box {
  margin-top: 28px;
  padding: 0;
  background: var(--rc-white);
  border-radius: 18px;
  border: 2px solid var(--rc-border);
  overflow: hidden;
  animation: roiFadeUp 0.5s ease both;
  box-shadow: 0 4px 20px rgba(232,82,10,0.08);
}

.roi-lead-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--rc-orange) 0%, var(--rc-orange-light) 100%);
  padding: 18px 24px;
  flex-wrap: nowrap;
}

.roi-lead-icon {
  font-size: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  line-height: 1;
}

.roi-lead-header-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

.roi-lead-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.roi-lead-header-sep {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  flex-shrink: 0;
}

.roi-lead-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .roi-lead-header { flex-wrap: wrap; padding: 16px 18px; }
  .roi-lead-header-text { flex-wrap: wrap; }
  .roi-lead-header h3 { font-size: 14px; }
  .roi-lead-header p { white-space: normal; }
}

#roi-lead-form { padding: 26px 28px 24px; }

@media (max-width: 520px) {
  .roi-lead-header { padding: 18px 20px; }
  #roi-lead-form   { padding: 20px 18px; }
}

.roi-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 480px) { .roi-lead-grid { grid-template-columns: 1fr; } }

.roi-lead-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--rc-light);
  border: 2px solid var(--rc-border);
  border-radius: 11px;
  color: var(--rc-dark);
  font-family: var(--rc-font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.roi-lead-input::placeholder { color: #C0BDD4; }
.roi-lead-input:focus {
  border-color: var(--rc-orange);
  background: var(--rc-white);
  box-shadow: 0 0 0 4px rgba(232,82,10,0.08);
}

.roi-lead-input.full { grid-column: 1 / -1; }

/* Consent removed */

/* ── Success ────────────────────────────────────────────────── */
.roi-success-icon {
  font-size: 52px;
  margin-bottom: 12px;
  text-align: center;
}

#roi-success {
  padding: 32px 28px;
  text-align: center;
}

#roi-success h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--rc-success);
  margin: 0 0 10px;
}

#roi-success p {
  font-size: 14px;
  color: var(--rc-mid);
  line-height: 1.7;
  margin: 0;
}

/* ── Sticky CTA Bar ─────────────────────────────────────────── */
.roi-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--rc-dark);
  border-top: 2px solid var(--rc-orange);
  padding: 12px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.roi-sticky-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.roi-sticky-amount {
  display: flex;
  flex-direction: column;
}

.roi-sticky-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roi-sticky-num {
  font-family: var(--rc-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--rc-orange);
  line-height: 1.2;
}

.roi-sticky-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--rc-orange), var(--rc-orange-light));
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--rc-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232,82,10,0.35);
}

.roi-sticky-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,82,10,0.5);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .roi-sticky-label { display: none; }
  .roi-sticky-num   { font-size: 16px; }
  .roi-sticky-btn   { font-size: 12px; padding: 10px 16px; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes roiFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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