.quote-form-card {
  min-width: 0;
  padding: 80px 54px 34px;
  background: #fff;
  color: #2f3251;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  font: 400 14px/1.5 Inter, sans-serif;
}

#quote .quote-form-card [hidden] { display: none !important; }
#quote .quote-form-card a { color: #0068ff; text-decoration: underline; }
#quote .quote-form-card :focus-visible { outline: 2px solid #295a9f; outline-offset: 3px; }

.quote-form-title {
  margin: 0 0 15px;
  color: inherit;
  font: 400 42px/1.2 Inter, sans-serif;
  text-wrap: wrap;
}

.quote-form-intro {
  margin: 0 0 19px;
  padding-bottom: 20px;
  border-bottom: 1px solid #a5a5a5;
  text-wrap: wrap;
}

.quote-form,
.quote-form-referral { display: grid; gap: 10px; }

.quote-form-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.quote-form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 27px;
}

.quote-form-phone { margin-bottom: 12px; }

.quote-form-short-label {
  padding: 2px 0 0 2px;
  color: #383a54;
  font-size: 12px;
  font-weight: 300;
  line-height: 22px;
}

.quote-form-field input,
.quote-form-field select,
.quote-form-field textarea {
  width: 100%;
  min-height: 37px;
  padding: 8px 10px 7px;
  border: 1px solid #c5cedb;
  border-radius: 4px;
  background: #fff;
  color: #2f3251;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  font: 300 13px/1.5 Inter, sans-serif;
}

.quote-form-field textarea { min-height: 108px; resize: vertical; }
.quote-form-field ::placeholder { color: #9ea8ba; opacity: 1; }
.quote-form-select { position: relative; }
.quote-form-select select { display: block; min-height: 41px; appearance: none; padding-right: 28px; }
.quote-form-select select:has(option[value=""]:checked) { color: #9ea8ba; }
.quote-form-select::after {
  position: absolute;
  top: calc(50% - 2px);
  right: 15px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #999;
  pointer-events: none;
  content: '';
}

.quote-form-referral-note { min-height: 42px; margin: 3px 0 0; color: #000; }

.quote-form-button {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #091b47;
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  font: 500 15px/1.35 Inter, sans-serif;
  cursor: pointer;
}

.quote-form-button:hover { background: #122b62; }
.quote-form-button:disabled { opacity: .7; cursor: wait; }
.quote-form-icon { width: 17px; height: 17px; flex: none; fill: currentColor; }

.quote-form-consent {
  margin: 31px 40px 0;
  color: #151515;
  font: 400 11px/14px Inter, sans-serif;
  text-wrap: wrap;
}

.quote-form-status, .quote-form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #f2f5fb;
}

.quote-form-error { margin: 0; background: #fff1ee; color: #821e19; }
.quote-form-confirmation h3 { margin: 0 0 10px; color: #091b47; font-size: 24px; }
.quote-form-confirmation p { margin: 10px 0 0; }

@media (max-width: 1150px) {
  .quote-form-card { padding-inline: clamp(23px, 4.1vw, 54px); }
}

@media (max-width: 550px) {
  .quote-form-card { padding-top: 40px; }
  .quote-form-title { font-size: 36px; }
  .quote-form-address { gap: 12px; }
  .quote-form-consent { margin-inline: 0; }
  .quote-form-field input, .quote-form-field select, .quote-form-field textarea { font-size: 16px; }
}
