/* ============================================================
   StrategyLab — Get a Quote page
   Built on theme.css tokens. Class names below are read directly
   by quote.js — keep them stable even if styles change.
   ============================================================ */

.quote-main {
  padding-top: calc(var(--nav-h) + 3.25rem);
  padding-bottom: 4rem;
  min-height: 80vh;
}

/* ---- Intro ---- */
.quote-intro {
  padding-bottom: 2.5rem;
  text-align: center;
}
.quote-intro .eyebrow { justify-content: center; }

.quote-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  margin: 0.9rem 0 0;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--ink);
}

.quote-intro-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 1.1rem auto 0;
}

.quote-currency-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 560px;
  margin: 1rem auto 0;
  line-height: 1.5;
}

.quote-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.75rem auto 0;
}
.quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--paper-raised);
  border: 1px solid var(--mist);
  box-shadow: var(--shadow-xs);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.quote-badge svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---- Estimator form ---- */
.quote-form-section .container {
  max-width: 760px;
  margin: 0 auto;
}

.quote-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote-estimator {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-card { padding: 1.4rem; }
.quote-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-pale);
}

.quote-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.budget-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.budget-slider {
  flex: 1;
  min-width: 160px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--mist-2);
  border-radius: 4px;
  outline: none;
}
.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(52, 36, 176, 0.35);
  transition: transform 0.15s ease;
}
.budget-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.budget-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 16px rgba(52, 36, 176, 0.35);
}

.budget-input {
  width: 140px;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  border: 1.5px solid var(--mist-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  text-align: right;
  transition: border-color 0.2s;
}
.budget-input:focus { outline: none; border-color: var(--accent); }

.budget-display {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.quote-card select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--mist-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.quote-card select:focus { outline: none; border-color: var(--accent); }

.option-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.option-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  background: var(--paper);
  border: 1.5px solid var(--mist-2);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.option-chip:hover { border-color: var(--accent); }
.option-chip input { margin-right: 0.55rem; accent-color: var(--accent); }
.option-chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-weight: 600;
}

.checkbox-group { display: flex; flex-direction: column; gap: 0.65rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-label input { accent-color: var(--accent); width: 1.1em; height: 1.1em; }

.quote-actions { text-align: center; margin-top: 0.5rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }

/* ---- Loading ---- */
.quote-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-loading[hidden] { display: none !important; }

.loading-content { text-align: center; }
.loading-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--mist-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: quote-spin 0.9s linear infinite;
}
@keyframes quote-spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 1rem; color: var(--ink-soft); transition: opacity 0.3s ease; }

/* ---- Results ---- */
.quote-results[hidden] { display: none !important; }

.results-card { padding: 2rem; margin-bottom: 1.5rem; }
.results-package { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }

.results-list { margin: 0 0 1rem; }
.results-list:last-of-type { margin-bottom: 0; }
.results-list dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.results-list dd {
  margin: 0 0 0.75rem;
  padding-left: 0;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.5;
}
.results-list dd:last-child { margin-bottom: 0; }
.results-list--excluded dt { color: var(--ink-faint); }
.results-list--addons dt { color: var(--accent-deep); }

.results-timeline, .results-next {
  margin-top: 1.25rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.results-next { font-weight: 600; color: var(--ink); }

.quote-subtitle {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.quote-third-party { margin-bottom: 1.5rem; }
.third-party-note { margin-top: 0.85rem; font-size: 0.88rem; color: var(--ink-faint); }
.quote-transparency { margin-bottom: 2rem; }

.transparency-list { list-style: none; margin: 0; padding: 0; }
.transparency-list li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.transparency-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.quote-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* ---- Lead capture ---- */
.quote-lead-capture[hidden] { display: none !important; }
.quote-lead-desc { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.25rem; }
.quote-lead-capture label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}
.quote-lead-capture input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  background: var(--paper);
  border: 1.5px solid var(--mist-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-lead-capture input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-pale);
}
.quote-lead-capture .form-status { margin-top: 0.85rem; font-size: 0.88rem; font-weight: 600; }
.form-status-success { color: var(--accent-deep); }
.form-status-error { color: var(--coral); }

@media (max-width: 768px) {
  .quote-main { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .quote-title { font-size: clamp(1.75rem, 5vw, 2.25rem); }
  .quote-intro-desc { font-size: 1rem; }
  .quote-card { padding: 1.2rem; }
  .quote-section-title { font-size: 1.3rem; }
  .results-card { padding: 1.5rem 1.25rem; }
  .quote-ctas .btn { min-height: 44px; }
}

@media (max-width: 600px) {
  .quote-main { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 2.5rem; }
  .budget-row { flex-direction: column; align-items: stretch; }
  .budget-slider { min-width: 100%; }
  .budget-input { width: 100%; }
  .option-grid { flex-direction: column; }
  .option-chip { justify-content: flex-start; min-height: 44px; padding: 0.65rem 1rem; }
  .quote-ctas { flex-direction: column; margin-bottom: 2rem; }
  .quote-ctas .btn { width: 100%; }
}

@media (max-width: 480px) {
  .quote-title { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .quote-card { padding: 1rem; }
  .quote-section-title { font-size: 1.18rem; }
  .results-card { padding: 1.25rem 1rem; }
  .btn-lg { padding: 0.9rem 1.5rem; min-height: 48px; }
  .checkbox-label { font-size: 0.9rem; min-height: 44px; align-items: center; }
}
