/* AKBAN 5.60 — compact debt-bankruptcy cost calculator module */
.home-cost-quiz-wrap {
  width: min(1240px, calc(100% - 48px));
  min-width: 0;
  margin: clamp(18px, 2.8vw, 32px) auto clamp(26px, 3.5vw, 42px);
  display: block !important;
}
.home-cost-quiz-wrap > .home-cost-quiz {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.home-cost-quiz .home-quiz-grid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.home-cost-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  width: 100%;
  min-width: 0;
  padding: clamp(19px, 2.7vw, 30px);
  border: 1px solid #d5e7dc;
  border-radius: 19px;
  background: linear-gradient(112deg, #f1faf4 0%, #f8fbfc 68%, #edf7f1 100%);
  box-shadow: 0 12px 30px rgba(11, 64, 42, .075);
}
.home-cost-copy { min-width: 0; }
.home-cost-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: #07864a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.4;
}
.home-cost-eyebrow > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #10b966;
  box-shadow: 0 0 0 4px rgba(16, 185, 102, .11);
}
.home-cost-copy h2 {
  max-width: 720px;
  margin: 0 0 9px !important;
  color: #153449 !important;
  -webkit-text-fill-color: #153449 !important;
  font-size: clamp(22px, 2.2vw, 29px) !important;
  font-weight: 850 !important;
  line-height: 1.19 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}
.home-cost-copy p {
  max-width: 760px;
  margin: 0 0 8px !important;
  color: #4e6878 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.home-cost-copy > small {
  display: block;
  max-width: 760px;
  color: #70818b !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}
.home-cost-action {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 17px;
  border: 1px solid #e0ebe5;
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 7px 18px rgba(12, 57, 39, .045);
}
.home-cost-time {
  display: grid;
  grid-template-columns: 29px minmax(0,1fr);
  align-items: center;
  column-gap: 9px;
  color: #15394b;
}
.home-cost-time > span {
  display: grid;
  grid-row: 1 / span 2;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #e6f8ed;
  color: #07944d;
  font-size: 15px;
  font-weight: 900;
}
.home-cost-time strong { color: #17384c; font-size: 14px; font-weight: 850; line-height: 1.25; }
.home-cost-time small { color: #728793; font-size: 11px; line-height: 1.3; }
.home-cost-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 49px;
  padding: 11px 15px !important;
  border: 1px solid #0a9c4e !important;
  border-radius: 11px !important;
  background: linear-gradient(110deg, #11bd62, #07994a) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  box-shadow: 0 7px 17px rgba(7, 153, 74, .18);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.home-cost-open:hover { transform: translateY(-1px); filter: brightness(1.035); box-shadow: 0 10px 21px rgba(7, 153, 74, .22); }
.home-cost-open:focus-visible { outline: 3px solid rgba(9, 155, 78, .35); outline-offset: 3px; }
.home-cost-action > small {
  display: block;
  color: #72818b !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  text-align: center;
}
/* The form remains the existing home lead form: same endpoint, Lead2Call and success modal. */
.quiz-modal-step[data-quiz-step="0"] .quiz-modal-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
.quiz-modal-step[data-quiz-step="0"] .quiz-modal-options label { min-height: 52px; }
@media (max-width: 760px) {
  .home-cost-quiz-wrap { width: calc(100% - 30px) !important; margin: 14px auto 25px !important; }
  .home-cost-banner { grid-template-columns: minmax(0,1fr); gap: 15px; padding: 18px; border-radius: 16px; }
  .home-cost-copy h2 { font-size: clamp(21px, 5.5vw, 25px) !important; line-height: 1.2 !important; }
  .home-cost-copy p { font-size: 13px !important; line-height: 1.5 !important; }
  .home-cost-copy > small { font-size: 10px !important; }
  .home-cost-action { grid-template-columns: minmax(0,1fr) minmax(170px, .9fr); align-items: center; gap: 9px 12px; padding: 13px; }
  .home-cost-time { grid-column: 1; grid-row: 1; }
  .home-cost-open { grid-column: 2; grid-row: 1; min-height: 46px; font-size: 12px !important; }
  .home-cost-action > small { grid-column: 1 / -1; text-align: left; }
  .quiz-modal-step[data-quiz-step="0"] .quiz-modal-options { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 390px) {
  .home-cost-banner { padding: 15px; }
  .home-cost-eyebrow { font-size: 9px; letter-spacing: .09em; }
  .home-cost-action { grid-template-columns: minmax(0,1fr); }
  .home-cost-time,.home-cost-open,.home-cost-action > small { grid-column: 1; }
  .home-cost-open { grid-row: 2; }
  .home-cost-action > small { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { .home-cost-open { transition: none; } }
