/* ============================================
   DRAINS FIX — Instant Quote calculator styles
   All rules are prefixed .df-quote to stay isolated
   from the rest of the site. Uses tokens from
   css/style.css :root only — no hardcoded hex.
   ============================================ */

.df-quote {
  max-width: 760px;
  margin: 0 auto;
}

.df-quote__card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-soft, 0 2px 8px rgba(10,22,40,0.04));
  padding: 32px 28px 36px;
}

/* --- Progress --- */
.df-quote__stepnum {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.df-quote__progress {
  height: 6px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}
.df-quote__progress-fill {
  height: 100%;
  background: var(--gradient-brand, var(--blue));
  border-radius: 999px;
  transition: width 0.3s var(--transition-smooth, ease);
}

.df-quote__title {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  margin-bottom: 22px;
  color: var(--navy);
}

/* --- Tile grids (service / urgency / building) --- */
.df-quote__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.df-quote__grid--urgency,
.df-quote__grid--building {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.df-quote__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--white);
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.df-quote__tile:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft, 0 4px 12px rgba(10,22,40,0.06));
}
.df-quote__tile:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.df-quote__tile svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  flex-shrink: 0;
}
.df-quote__tile span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.3;
}

/* --- Radio tiles (urgency / building) --- */
.df-quote__field-block {
  margin-bottom: 26px;
}
.df-quote__field-label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.df-quote__radio-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 12px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.df-quote__radio-tile input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.df-quote__radio-tile:hover {
  border-color: var(--blue);
}
.df-quote__radio-tile.is-selected {
  border-color: var(--blue);
  background: rgba(30, 91, 191, 0.07);
  color: var(--blue);
}
.df-quote__radio-tile input:focus-visible ~ span,
.df-quote__radio-tile:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.df-quote__textarea {
  margin-top: 2px;
}

/* --- Actions row --- */
.df-quote__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.df-quote__actions--result {
  justify-content: flex-start;
}

/* --- Result step --- */
.df-quote__result {
  text-align: center;
  padding: 4px 0 28px;
}
.df-quote__service-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.df-quote__result-range {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--blue);
}
.df-quote__result-range--call {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
}
.df-quote__result-tax {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--gray);
}
.df-quote__result-surcharge {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
}
.df-quote__included {
  max-width: 480px;
  margin: 18px auto 0;
  font-size: 0.9375rem;
  color: var(--navy);
}
.df-quote__disclaimer {
  max-width: 560px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid #E5E7EB;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--gray);
}

/* --- Lead capture form --- */
.df-quote__lead {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid #E5E7EB;
}
.df-quote__lead .df-quote__title {
  text-align: center;
}
.df-quote__form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.df-quote__submit,
.df-quote__call {
  width: 100%;
  justify-content: center;
}

/* --- Success panel --- */
.df-quote__success {
  text-align: center;
  padding: 36px 12px;
}
.df-quote__success svg {
  width: 60px;
  height: 60px;
  color: #10B981;
  margin: 0 auto 22px;
}
.df-quote__success h3 {
  margin-bottom: 16px;
  color: var(--navy);
}
.df-quote__success p {
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .df-quote__card {
    padding: 24px 18px 28px;
    border-radius: 12px;
  }
  .df-quote__grid {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 10px;
  }
  .df-quote__tile {
    padding: 16px 8px;
  }
  .df-quote__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .df-quote__actions .btn,
  .df-quote__actions--result .btn {
    width: 100%;
    justify-content: center;
  }
}
