/* ───────────────────────────────────────────────
   Commission Savings Calculator (/calculator)
   Sibling of the pricing slider — uses the same
   dark-gold vocabulary as .pricing-calculator.
   ─────────────────────────────────────────────── */

/* Transparency hero (above the fold) */
.calc-hero {
  background: var(--bg-deep);
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.calc-hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 680px; height: 680px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.calc-hero-inner {
  max-width: 980px;
  position: relative;
}
.calc-hero .section-label { color: var(--gold); }
.calc-hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  color: #ffffff;
  margin-top: 16px;
  margin-bottom: 20px;
  line-height: 1.1;
}
.calc-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  max-width: 640px;
}

/* Calculator card */
.calc-page {
  background: var(--bg-deep);
  padding: 0 60px 120px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.calc-page-inner {
  max-width: 980px;
}
.calc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: 4px;
  padding: 56px;
}

/* Input rows */
.calc-inputs {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: end;
}
.calc-input-row { display: flex; flex-direction: column; gap: 8px; }
.calc-input-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.calc-input-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.32);
}

/* Numeric asking-price field */
.calc-price-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-price-prefix {
  position: absolute;
  left: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
  pointer-events: none;
}
.calc-price-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 2px;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  padding: 14px 18px 14px 36px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -moz-appearance: textfield;
}
.calc-price-input::-webkit-outer-spin-button,
.calc-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-price-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

/* Market selector */
.calc-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 2px;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  padding-right: 44px;
}
.calc-select:focus {
  border-color: var(--gold);
  background-color: rgba(255,255,255,0.09);
}
.calc-select option {
  background: var(--bg-deep);
  color: #ffffff;
}

/* Locked Sovereignty rate */
.calc-locked-rate {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.28);
  border-radius: 2px;
  padding: 14px 18px;
  text-align: center;
}

/* Divider */
.calc-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 48px 0;
}

/* Readout cluster */
.calc-readouts { text-align: center; }
.calc-readouts-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.calc-savings-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.calc-savings-sub {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  margin-bottom: 48px;
}

.calc-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 32px;
}
.calc-readout-item { text-align: center; }
.calc-readout-val {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
}
.calc-readout-label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.calc-formula {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* CTA under card */
.calc-cta { text-align: center; }
.calc-cta .btn-gold { display: inline-block; }

/* Lead-magnet card */
.calc-lead-magnet {
  margin-top: 40px;
  padding: 32px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 4px;
  text-align: center;
}
.calc-lead-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.calc-lead-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 520px;
}
.calc-lead-form { }
.calc-lead-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
}
.calc-email-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 2px;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}
.calc-email-input::placeholder { color: rgba(255,255,255,0.32); }
.calc-email-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}
.calc-email-input.has-error { border-color: #c0392b; }

.calc-lead-submit {
  padding: 13px 24px;
  background: var(--gold);
  color: var(--fg);
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  position: relative;
}
.calc-lead-submit:hover:not(:disabled) { background: var(--gold-dark); }
.calc-lead-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.calc-lead-submit-loading { display: none; }
.calc-lead-submit.loading .calc-lead-submit-text { display: none; }
.calc-lead-submit.loading .calc-lead-submit-loading { display: inline; }

.calc-lead-error {
  display: block;
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: #e67e73;
}
.calc-lead-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.calc-lead-thanks-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,169,110,0.18);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}
.calc-lead-thanks-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 860px) {
  .calc-hero {
    padding: 96px 28px 56px;
    min-height: 0;
  }
  .calc-page { padding: 0 28px 80px; }
  .calc-card { padding: 32px 24px; }
  .calc-inputs {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .calc-readout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .calc-savings-big { font-size: clamp(40px, 12vw, 64px); }
  .calc-locked-rate { font-size: 30px; }
  .calc-lead-row {
    flex-direction: column;
    gap: 12px;
  }
  .calc-lead-submit { width: 100%; }
}
