/* === CALCULATOR PAGE === */
.calc-page { background: var(--cream); min-height: 100vh; }

.calc-hero {
  background: var(--navy);
  padding: 64px 32px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.calc-hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.calc-eyebrow {
  display: inline-block;
  background: var(--orange-dim);
  color: var(--orange);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px; margin-bottom: 20px;
  border: 1px solid rgba(255,107,26,0.25);
}
.calc-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; color: var(--white);
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 14px;
}
.calc-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* === MAIN CALC LAYOUT === */
.calc-section { padding: 60px 32px 80px; }
.calc-inner { max-width: 940px; margin: 0 auto; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* === INPUT PANEL === */
.calc-inputs {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 20px;
  padding: 40px 36px;
}
.calc-inputs h2 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.input-group { margin-bottom: 28px; }
.input-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.88rem; font-weight: 600; color: var(--text-dark);
  margin-bottom: 10px;
}
.input-label span { font-size: 0.82rem; font-weight: 400; color: var(--text-light); }
.input-row { display: flex; gap: 12px; align-items: center; }

input[type="range"] {
  flex: 1; -webkit-appearance: none; height: 4px;
  background: var(--cream-dark); border-radius: 2px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  background: var(--orange); border-radius: 50%; cursor: pointer;
  box-shadow: 0 1px 4px rgba(255,107,26,0.4); transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; background: var(--orange);
  border: none; border-radius: 50%; cursor: pointer;
}
.num-input {
  width: 84px; border: 1.5px solid var(--cream-dark); border-radius: 8px;
  padding: 7px 10px; font-family: var(--font-head); font-size: 0.95rem; font-weight: 600;
  color: var(--navy); text-align: right; background: var(--cream);
  transition: border-color 0.15s; -moz-appearance: textfield;
}
.num-input::-webkit-inner-spin-button,
.num-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.num-input:focus { outline: none; border-color: var(--orange); background: var(--white); }

/* === RESULTS PANEL === */
.calc-results { position: sticky; top: 72px; }
.results-card {
  background: var(--navy); border-radius: 20px; padding: 36px 32px; color: var(--white);
}
.results-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.result-row:last-of-type { border-bottom: none; }
.result-label { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.result-value { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.result-hero {
  text-align: center; padding: 28px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 4px;
}
.result-hero-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.result-hero-value {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 700;
  color: var(--orange); letter-spacing: -0.04em; line-height: 1;
}
.result-hero-sub { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 4px; }
.recovery-banner {
  background: rgba(255,107,26,0.12); border: 1px solid rgba(255,107,26,0.3);
  border-radius: 10px; padding: 16px 18px; margin: 20px 0;
  font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.5;
}
.recovery-banner strong { color: #fff; }
.recovery-amount {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: #4ade80; display: block; margin-top: 4px;
}
.results-cta {
  display: block; text-align: center;
  background: var(--orange); color: var(--white);
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  padding: 14px 20px; border-radius: 10px;
  text-decoration: none; transition: background 0.15s, transform 0.1s; margin-top: 20px;
}
.results-cta:hover { background: #e85c0f; transform: translateY(-1px); }

/* === EMAIL CAPTURE === */
.email-section {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: 16px; padding: 28px 32px; margin-top: 20px;
}
.email-section h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}
.email-section p { font-size: 0.84rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.email-form { display: flex; gap: 10px; }
.email-input {
  flex: 1; border: 1.5px solid var(--cream-dark); border-radius: 8px;
  padding: 10px 14px; font-size: 0.9rem; color: var(--navy); background: var(--cream);
  transition: border-color 0.15s;
}
.email-input:focus { outline: none; border-color: var(--orange); background: var(--white); }
.email-btn {
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-size: 0.88rem; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.email-btn:hover { background: #1e3655; }
.email-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.email-success { display: none; font-size: 0.85rem; color: #166534; font-weight: 600; margin-top: 8px; }
.email-error  { display: none; font-size: 0.85rem; color: #dc2626; margin-top: 8px; }

/* === EMBED SNIPPET === */
.embed-section { background: var(--white); border-top: 1px solid var(--cream-dark); padding: 72px 32px; }
.embed-inner { max-width: 680px; margin: 0 auto; }
.embed-inner h2 {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.02em; margin-bottom: 8px;
}
.embed-inner p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 20px; }
.embed-code {
  background: #0F1C2E; border-radius: 10px; padding: 20px 24px;
  font-family: 'Courier New', monospace; font-size: 0.82rem; color: #a5f3fc;
  white-space: pre; overflow-x: auto; position: relative; line-height: 1.6;
}
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 6px;
  padding: 4px 10px; font-size: 0.75rem; cursor: pointer; transition: background 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }
.embed-preview { margin-top: 12px; font-size: 0.8rem; color: var(--text-light); }
.embed-preview a { color: var(--orange); text-decoration: none; }
.embed-preview a:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .calc-hero { padding: 48px 24px 56px; }
  .calc-section { padding: 40px 20px 60px; }
  .calc-inputs { padding: 28px 20px; }
  .results-card { padding: 28px 20px; }
  .email-section { padding: 24px 20px; }
  .email-form { flex-direction: column; }
  .embed-section { padding: 48px 20px; }
}
