/* LR Buyback Estimator — The Lemon Reps Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;600&display=swap');

:root {
  --lr-gold:       #f5c400;
  --lr-gold-dark:  #d4a900;
  --lr-navy:       #1a2035;
  --lr-navy-mid:   #232b42;
  --lr-navy-light: #2e3a55;
  --lr-white:      #ffffff;
  --lr-off-white:  #f7f8fa;
  --lr-light-gray: #e8eaef;
  --lr-mid-gray:   #8a93a8;
  --lr-text:       #1a2035;
  --lr-text-mid:   #3d4a65;
  --lr-text-muted: #6b7a94;
  --lr-border:     #dde1ea;
  --lr-success:    #1a6e3a;
  --lr-red:        #c0281e;
}

#lr-buyback-tool,
#lr-buyback-tool * { box-sizing: border-box; }

#lr-buyback-tool {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--lr-white);
  max-width: 720px;
  margin: 0 auto 48px;
  border: 1px solid var(--lr-border);
  box-shadow: 0 8px 40px rgba(26,32,53,0.13);
  color: var(--lr-text);
}

/* ── HEADER ─────────────────────────────────── */
#lr-buyback-tool .lr-tool-header {
  background: var(--lr-navy);
  padding: 32px 36px 26px;
  border-bottom: 4px solid var(--lr-gold);
  position: relative;
}
#lr-buyback-tool .lr-tool-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lr-gold);
  margin-bottom: 8px;
}
#lr-buyback-tool .lr-tool-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--lr-white);
  margin: 0 0 10px;
  line-height: 1.2;
}
#lr-buyback-tool .lr-tool-header h2 em {
  color: var(--lr-gold);
  font-style: normal;
}
#lr-buyback-tool .lr-tool-header p {
  font-size: 0.92rem;
  color: var(--lr-mid-gray);
  margin: 0;
  line-height: 1.6;
}

/* ── PROGRESS BAR ───────────────────────────── */
#lr-buyback-tool .lr-tool-progress {
  height: 5px;
  background: var(--lr-navy-light);
}
#lr-buyback-tool .lr-tool-progress-fill {
  height: 5px;
  background: var(--lr-gold);
  transition: width 0.45s ease;
}

/* ── STEPS ──────────────────────────────────── */
#lr-buyback-tool .lr-tool-step {
  padding: 30px 36px;
  border-bottom: 1px solid var(--lr-light-gray);
  background: var(--lr-white);
}
#lr-buyback-tool .lr-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--lr-gold);
  color: var(--lr-navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 14px;
}
#lr-buyback-tool .lr-tool-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lr-navy);
  margin: 0 0 20px;
  line-height: 1.35;
}

/* ── FORM FIELDS ────────────────────────────── */
#lr-buyback-tool .lr-field {
  margin-bottom: 16px;
}
#lr-buyback-tool .lr-field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lr-text-mid);
  margin-bottom: 6px;
}
#lr-buyback-tool .lr-field input,
#lr-buyback-tool .lr-field select {
  width: 100%;
  border: 2px solid var(--lr-border);
  border-radius: 0;
  padding: 12px 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--lr-text);
  background: var(--lr-white);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
#lr-buyback-tool .lr-field select {
  background-image: url("data:image/svg+xml,%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='%231a2035' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
#lr-buyback-tool .lr-field input:focus,
#lr-buyback-tool .lr-field select:focus {
  border-color: var(--lr-gold);
}

/* ── NEXT BUTTON ────────────────────────────── */
#lr-buyback-tool .lr-btn-next {
  background: var(--lr-navy);
  color: var(--lr-white);
  border: none;
  border-radius: 0;
  padding: 13px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}
#lr-buyback-tool .lr-btn-next:hover { background: var(--lr-navy-light); }

/* ── RESULT PANEL ───────────────────────────── */
#lr-buyback-tool .lr-tool-result {
  background: var(--lr-off-white);
  border-bottom: 1px solid var(--lr-light-gray);
}
#lr-buyback-tool .lr-result-header {
  background: var(--lr-navy);
  padding: 24px 36px;
  border-bottom: 4px solid var(--lr-gold);
}
#lr-buyback-tool .lr-result-badge {
  display: inline-block;
  background: var(--lr-gold);
  color: var(--lr-navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 12px;
}
#lr-buyback-tool .lr-result-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--lr-white);
  margin: 0 0 8px;
}
#lr-buyback-tool .lr-result-sub {
  font-size: 0.82rem;
  color: var(--lr-mid-gray);
  margin: 0;
  line-height: 1.5;
}
#lr-buyback-tool .lr-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px 36px 0;
}
#lr-buyback-tool .lr-result-card {
  background: var(--lr-white);
  border: 1px solid var(--lr-border);
  border-top: 4px solid var(--lr-navy);
  padding: 16px 18px;
}
#lr-buyback-tool .lr-result-card.lr-highlight {
  border-top-color: var(--lr-gold);
  background: var(--lr-navy);
}
#lr-buyback-tool .lr-result-card .lr-card-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lr-mid-gray);
  margin-bottom: 6px;
}
#lr-buyback-tool .lr-result-card.lr-highlight .lr-card-label { color: var(--lr-gold); }
#lr-buyback-tool .lr-result-card .lr-card-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lr-navy);
  line-height: 1.2;
}
#lr-buyback-tool .lr-result-card.lr-highlight .lr-card-value { color: var(--lr-white); }
#lr-buyback-tool .lr-result-card .lr-card-note {
  font-size: 0.78rem;
  color: var(--lr-text-muted);
  margin-top: 4px;
}
#lr-buyback-tool .lr-result-card.lr-highlight .lr-card-note { color: var(--lr-mid-gray); }

#lr-buyback-tool .lr-result-note {
  margin: 14px 36px 0;
  background: #fff8e0;
  border-left: 4px solid var(--lr-gold);
  padding: 12px 16px;
  font-size: 0.83rem;
  color: var(--lr-text-mid);
  line-height: 1.55;
}

/* ── GATE PROMPT ────────────────────────────── */
#lr-buyback-tool .lr-gate-prompt {
  background: var(--lr-navy);
  margin: 20px 36px 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--lr-gold);
}
#lr-buyback-tool .lr-gate-prompt p {
  font-size: 0.9rem;
  color: var(--lr-mid-gray);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* ── CTA BUTTON ─────────────────────────────── */
#lr-buyback-tool .lr-btn-cta {
  display: inline-block;
  background: var(--lr-gold);
  color: var(--lr-navy);
  border: none;
  border-radius: 0;
  padding: 14px 34px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
#lr-buyback-tool .lr-btn-cta:hover {
  background: var(--lr-gold-dark);
  transform: translateY(-1px);
}

/* ── LEAD GATE ──────────────────────────────── */
#lr-buyback-tool .lr-tool-gate { background: var(--lr-navy); }
#lr-buyback-tool .lr-gate-inner {
  padding: 32px 36px;
}
#lr-buyback-tool .lr-gate-inner h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lr-white);
  margin: 0 0 8px;
}
#lr-buyback-tool .lr-gate-inner > p {
  font-size: 0.9rem;
  color: var(--lr-mid-gray);
  margin: 0 0 22px;
  line-height: 1.55;
}
#lr-buyback-tool .lr-gate-inner .lr-field input {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  color: var(--lr-white);
}
#lr-buyback-tool .lr-gate-inner .lr-field input::placeholder { color: rgba(255,255,255,0.4); }
#lr-buyback-tool .lr-gate-inner .lr-field input:focus { border-color: var(--lr-gold); }
#lr-buyback-tool .lr-gate-inner .lr-field label { color: rgba(255,255,255,0.6); }
#lr-buyback-tool .lr-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── GATE SUCCESS ───────────────────────────── */
#lr-buyback-tool .lr-gate-success {
  text-align: center;
  padding: 48px 36px;
}
#lr-buyback-tool .lr-success-icon {
  width: 56px;
  height: 56px;
  background: var(--lr-gold);
  color: var(--lr-navy);
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
#lr-buyback-tool .lr-gate-success h3 {
  color: var(--lr-white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
#lr-buyback-tool .lr-gate-success p {
  color: var(--lr-mid-gray);
  font-size: 0.92rem;
  margin-bottom: 10px;
  line-height: 1.6;
}
#lr-buyback-tool .lr-success-tagline { color: var(--lr-gold) !important; font-style: italic; }

/* ── UTILITY ────────────────────────────────── */
.lr-hidden { display: none !important; }

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 600px) {
  #lr-buyback-tool .lr-tool-header,
  #lr-buyback-tool .lr-tool-step,
  #lr-buyback-tool .lr-result-header,
  #lr-buyback-tool .lr-gate-inner { padding-left: 20px; padding-right: 20px; }
  #lr-buyback-tool .lr-result-grid { grid-template-columns: 1fr; padding: 20px; }
  #lr-buyback-tool .lr-gate-prompt,
  #lr-buyback-tool .lr-result-note { margin-left: 20px; margin-right: 20px; }
  #lr-buyback-tool .lr-tool-header h2 { font-size: 1.3rem; }
}
