.quote-section .quote-grid > *,
.quote-form .field {
  min-width: 0;
}

.quote-section .form-intro > p {
  max-width: 43ch;
  font-size: 1rem;
  line-height: 1.65;
}

.quote-form {
  container-type: inline-size;
  align-self: start;
}

.quote-form[hidden],
.quote-form .form-step[hidden] {
  display: none !important;
}

.quote-form .step-label {
  margin: 0;
  font-size: .8125rem;
}

.quote-form h3 {
  margin: .4rem 0 1.1rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.25;
  scroll-margin-block: 6rem 2rem;
}

.quote-form .choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .625rem;
}

.quote-form .choice {
  min-block-size: 48px;
  padding: .7rem .85rem;
  font-size: .9375rem;
  line-height: 1.35;
  scroll-margin-block: 6rem 3rem;
}

.quote-form .choice[aria-pressed="true"] {
  background: #edf3ff;
  border-color: var(--blue);
  color: #16479f;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.quote-form .field-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem .875rem;
}

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

.quote-form .field {
  display: grid;
  align-content: start;
  gap: .375rem;
}

.quote-form label {
  color: #38475b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.quote-form label small {
  color: #5d6b7b;
  font-size: .875rem;
  font-weight: 400;
}

.quote-form .field :is(input, textarea) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  border-color: #9eacbf;
  font-size: 1rem;
  line-height: 1.5;
  scroll-margin-block: 6rem 3rem;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #687586;
  opacity: 1;
}

.quote-form .field [aria-invalid="true"] {
  border-color: #a13621;
}

.quote-form .form-error,
.quote-form .copy-status {
  margin: .75rem 0 0;
  min-height: 0;
  font-size: .9375rem;
  line-height: 1.5;
}

.quote-form .form-error { color: #9c3423; }
.quote-form :is(.form-error, .copy-status):empty { margin: 0; }
.quote-form .message-help { margin: 0 0 1rem; font-size: 1rem; }
.quote-form .summary { margin: 0 0 .75rem; }

.quote-form .form-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  margin-top: 1.3rem;
}

.quote-form .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 46px;
  max-width: 100%;
  padding: .65rem 1.1rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  scroll-margin-block: 6rem 2rem;
}

.quote-form .form-actions > :last-child { margin-left: auto; }
.quote-form .icon { flex: none; width: 1em; height: 1em; }

@container (max-width: 28rem) {
  .quote-form .field-grid { grid-template-columns: minmax(0, 1fr); }
}

@container (max-width: 22rem) {
  .quote-form .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-form .choice { text-align: left; }
}

@container (max-width: 19rem) {
  .quote-form .form-actions { align-items: stretch; flex-direction: column; }
  .quote-form .form-actions > :last-child { margin-left: 0; }
}
