/**
 * Discovery Savings Estimator — styles.
 *
 * Uses Discovery's established brand tokens (teal #17AEA9, teal-shade #0F8783,
 * yellow #F5C040, dark grey #212121). Designed to inherit the site's body font
 * so the estimator looks native to whatever page it's embedded on.
 *
 * Scoped under .dse-estimator so it never bleeds into the rest of the site.
 */

.dse-estimator {
  --dse-teal:        #17AEA9;
  --dse-teal-shade:  #0F8783;
  --dse-yellow:      #F5C040;
  --dse-cream:       #FEF6E0;
  --dse-grey:        #212121;
  --dse-grey-mid:    #5C5C5C;
  --dse-grey-light:  #F4F4F4;
  --dse-rule:        #DDDDDD;
  --dse-white:       #FFFFFF;
  --dse-error:       #C0392B;
  --dse-success:     #1B873F;
  --dse-radius:      8px;
  --dse-radius-lg:   14px;
  --dse-shadow:      0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);

  max-width: 920px;
  margin: 0 auto;
  color: var(--dse-grey);
  font-family: inherit;
  line-height: 1.55;
  font-size: 16px;
}

/* ──── Cards & sections ──────────────────────────────────────────────── */
.dse-step {
  background: var(--dse-white);
  border: 1px solid var(--dse-rule);
  border-radius: var(--dse-radius-lg);
  padding: 40px 48px;
  box-shadow: var(--dse-shadow);
}

.dse-header {
  margin-bottom: 32px;
  text-align: center;
}

.dse-brand-mark {
  display: block;
  width: 48px;
  height: auto;
  margin: 0 auto 14px;
}

.dse-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dse-grey);
  line-height: 1.2;
  text-align: center;
}

.dse-intro {
  margin: 0 auto;
  color: var(--dse-grey-mid);
  font-size: 16px;
  text-align: center;
  max-width: 560px;
}

/* ──── Form grid + fields ────────────────────────────────────────────── */
.dse-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dse-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dse-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dse-field-full {
  grid-column: 1 / -1;
}

.dse-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dse-grey);
  letter-spacing: 0.01em;
}

.dse-field input,
.dse-field select {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dse-grey);
  background: var(--dse-white);
  border: 1.5px solid var(--dse-rule);
  border-radius: var(--dse-radius);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  box-sizing: border-box;
}

.dse-field input:focus,
.dse-field select:focus {
  outline: none;
  border-color: var(--dse-teal);
  box-shadow: 0 0 0 3px rgba(23, 174, 169, 0.15);
}

.dse-field-error input,
.dse-field-error select {
  border-color: var(--dse-error);
  background: #FFF6F5;
}

.dse-hint {
  font-size: 12px;
  color: var(--dse-grey-mid);
}

/* ──── Honeypot — hidden from real users ─────────────────────────────── */
.dse-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ──── Consent ───────────────────────────────────────────────────────── */
.dse-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--dse-grey-mid);
  background: var(--dse-grey-light);
  border-radius: var(--dse-radius);
  padding: 12px 14px;
}

.dse-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.dse-consent label {
  font-weight: 500;
}

.dse-consent a {
  color: var(--dse-teal-shade);
  text-decoration: underline;
}

/* ──── Buttons ───────────────────────────────────────────────────────── */
.dse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.dse-actions-alt {
  margin-top: 18px;
}

.dse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
  min-height: 48px;
}

.dse-btn:active {
  transform: translateY(1px);
}

.dse-btn-primary {
  background: var(--dse-teal);
  color: var(--dse-white);
  border-color: var(--dse-teal);
}

.dse-btn-primary:hover {
  background: var(--dse-teal-shade);
  border-color: var(--dse-teal-shade);
  color: var(--dse-white);
}

.dse-btn-secondary {
  background: var(--dse-white);
  color: var(--dse-teal-shade);
  border-color: var(--dse-teal);
}

.dse-btn-secondary:hover {
  background: var(--dse-teal);
  color: var(--dse-white);
}

.dse-btn-busy {
  opacity: 0.7;
  cursor: wait;
}

/* ──── Errors ────────────────────────────────────────────────────────── */
.dse-errors {
  color: var(--dse-error);
  font-size: 14px;
}

.dse-errors:empty {
  display: none;
}

.dse-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* ──── Result cards ──────────────────────────────────────────────────── */
.dse-result-card {
  background: linear-gradient(135deg, var(--dse-cream) 0%, #FFF7DD 100%);
  border: 2px solid var(--dse-yellow);
  border-radius: var(--dse-radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.dse-result-card-soft {
  background: var(--dse-grey-light);
  border-color: var(--dse-rule);
}

.dse-result-card-success {
  background: linear-gradient(135deg, #E8F8EF 0%, #F0FBF4 100%);
  border-color: var(--dse-success);
}

.dse-result-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dse-teal-shade);
  margin-bottom: 10px;
}

.dse-result-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--dse-grey);
  line-height: 1.35;
  margin: 0 0 16px;
}

.dse-result-headline strong {
  color: var(--dse-teal-shade);
  font-weight: 800;
}

.dse-result-mgrtime {
  font-size: 16px;
  color: var(--dse-grey);
  line-height: 1.55;
  margin: 0;
}

.dse-result-mgrtime strong {
  color: var(--dse-teal-shade);
  font-weight: 700;
}

/* ──── Lead CTA card (sits below the result) ─────────────────────────── */
.dse-cta-card {
  background: var(--dse-white);
  border: 1px solid var(--dse-rule);
  border-radius: var(--dse-radius-lg);
  padding: 28px 32px;
  box-shadow: var(--dse-shadow);
}

.dse-cta-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dse-grey);
}

.dse-cta-sub {
  margin: 0 0 22px;
  color: var(--dse-grey-mid);
  font-size: 15px;
}

/* ──── Sub-threshold alternatives ────────────────────────────────────── */
.dse-alt-solutions {
  margin: 14px 0 0;
  padding-left: 20px;
}

.dse-alt-solutions li {
  margin-bottom: 8px;
  font-size: 15px;
}

.dse-alt-solutions strong {
  color: var(--dse-teal-shade);
}

/* ──── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .dse-step {
    padding: 26px 22px;
  }
  .dse-grid-2 {
    grid-template-columns: 1fr;
  }
  .dse-title {
    font-size: 24px;
  }
  .dse-result-card,
  .dse-cta-card {
    padding: 22px;
  }
  .dse-result-headline {
    font-size: 19px;
  }
  .dse-cta-title {
    font-size: 19px;
  }
}
