.home-quick-loan {
  padding: 22px 0;
  background: linear-gradient(180deg,#f7f8ff,#f2f5fa);
  border-bottom: 1px solid #e3e7f0;
}

.home-quick-loan-inner {
  width: min(1040px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(170px, .62fr) minmax(450px, 1.65fr) minmax(220px, .72fr);
  align-items: center;
  gap: 20px;
}

.home-quick-heading .kicker {
  display: block;
  margin-bottom: 7px;
  color: #078c71;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home-quick-heading h2 {
  margin: 0;
  color: #10142a;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.12;
}

.home-quick-choices {
  display: grid;
  gap: 10px;
}

.home-quick-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.home-quick-group legend {
  margin-bottom: 7px;
  color: #475069;
  font-size: 12px;
  font-weight: 800;
}

.home-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.home-quick-buttons button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #f7f8fc;
  color: #1b2a6b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.home-quick-buttons .home-quick-custom-toggle {
  border-style: dashed;
  background: rgba(255,255,255,.58);
  color: #087e68;
}

.home-quick-custom {
  margin-top: 8px;
}

.home-quick-custom > label,
.home-quick-custom > small {
  display: block;
  color: #687188;
  font-size: 10px;
  font-weight: 700;
}

.home-quick-custom > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 3px;
}

.home-quick-custom input {
  width: 112px;
  min-height: 36px;
  padding: 6px 9px;
  color: #1b2a6b;
  background: #fff;
  border: 1px solid #cbd3e2;
  border-radius: 9px;
  font-weight: 800;
}

.home-quick-custom input[aria-invalid="true"] {
  border-color: #c43e4f;
  background: #fff6f7;
  outline: 2px solid rgba(196,62,79,.13);
}

.home-quick-custom > div > span {
  color: #687188;
  font-size: 11px;
  font-weight: 800;
}

.home-quick-custom > div > button {
  min-height: 36px;
  padding: 6px 10px;
  color: #fff;
  background: #1b2a6b;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.home-quick-buttons button:hover,
.home-quick-buttons button:focus-visible {
  border-color: #6877bd;
  outline: 2px solid transparent;
  transform: translateY(-1px);
}

.home-quick-buttons button[aria-pressed="true"] {
  border-color: #1b2a6b;
  background: #1b2a6b;
  color: #fff;
}

.home-quick-group.is-locked {
  opacity: .48;
}

.home-quick-group.is-locked button {
  cursor: not-allowed;
  transform: none;
}

.home-quick-terms button {
  min-width: 43px;
  padding-inline: 10px;
}

.home-quick-terms > span {
  color: #7c8499;
  font-size: 12px;
  font-weight: 700;
}

.home-quick-result {
  height: 122px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid #d5e5df;
  border-radius: 17px;
  background: linear-gradient(135deg, #f6fffb, #f5f7ff);
}

.home-quick-empty,
.home-quick-no-data {
  margin: 0;
  color: #657087;
  font-size: 13px;
  line-height: 1.5;
}

.home-quick-answer {
  width: 100%;
}

.home-quick-answer > span {
  display: block;
  color: #475069;
  font-size: 12px;
  font-weight: 800;
}

.home-quick-answer > strong {
  display: block;
  margin: 3px 0 5px;
  color: #1b2a6b;
  font-size: 21px;
  line-height: 1.1;
}

.home-quick-answer small {
  display: block;
  color: #687188;
  font-size: 9.5px;
  line-height: 1.32;
}

.home-quick-answer small + small {
  margin-top: 3px;
}

.home-quick-answer a {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  color: #087e68;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.home-quick-answer a::after {
  content: "\2192";
  margin-left: 6px;
}

@media (max-width: 960px) {
  .home-quick-loan-inner {
    width: min(760px, calc(100% - 32px));
    grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  }

  .home-quick-result {
    grid-column: 1 / -1;
    height: 112px;
  }
}

@media (max-width: 640px) {
  .home-quick-loan {
    padding: 19px 0;
  }

  .home-quick-loan-inner {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-quick-heading h2 {
    font-size: 23px;
  }

  .home-quick-buttons button {
    flex: 1 1 calc(33.333% - 7px);
  }

  .home-quick-terms button {
    flex-basis: calc(20% - 7px);
    min-width: 0;
    padding-inline: 6px;
  }

  .home-quick-terms > span {
    flex-basis: 100%;
  }

  .home-quick-result {
    grid-column: auto;
    height: 126px;
  }

  .home-quick-custom > div {
    flex-wrap: wrap;
  }

  .home-quick-custom > div > button {
    flex: 0 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-quick-buttons button {
    transition: none;
  }
}
