.quote-page .quote-layout {
  --quote-gap: clamp(22px, 5vw, 78px);
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, .31fr) minmax(0, .69fr);
  gap: var(--quote-gap);
  padding-block: clamp(26px, 3vw, 48px);
}

.quote-page .quote-layout::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  grid-column: 2;
  grid-row: 1 / -1;
  left: calc(-1 * var(--quote-gap));
  width: var(--quote-gap);
  content: "";
  background: var(--red, #f01737);
  clip-path: polygon(calc(100% - 8px) 0, calc(100% - 4px) 0, 4px 100%, 0 100%);
}

.quote-page .quote-intro {
  padding: clamp(12px, 3vw, 42px) 0 0;
}

.quote-required-mark {
  color: #ff637b;
}

.quote-step {
  color: var(--link);
  font-size: .88rem;
  margin: 0 0 .65rem;
}

.quote-page .quote-intro h1 {
  margin-block: .35em;
  font-size: clamp(2.8rem, 5.7vw, 5rem);
}

.quote-page .quote-intro a,
.quote-program a {
  color: var(--ink, #f8fafc);
  font-weight: 600;
}

.quote-page .quote-form {
  padding: 0;
  color: var(--ink, #f8fafc);
  background: transparent;
  border: 0;
}

.quote-page .quote-form-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.quote-page .quote-required {
  margin-block: 0 .8rem;
  font-size: .875rem;
}

.quote-page .field-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.quote-page .field-grid label {
  grid-template-columns: minmax(9.2rem, .34fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.quote-page .field-grid label > span {
  font-weight: 600;
}

.quote-page .quote-form :is(input, select, textarea) {
  min-height: 44px;
  color: var(--ink, #f8fafc);
  background: #101a25;
  border: 1px solid #8292a4;
}

.quote-page .quote-form :is(input, textarea)::placeholder {
  color: #b7c3d0;
}

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

.quote-page .form-status[data-state="error"] {
  color: #ff98a9;
}

.quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  margin-block-start: 1.15rem;
}

.quote-actions p {
  margin: 0;
  color: var(--muted, #b7c3d0);
  font-size: .875rem;
}

.quote-actions button {
  min-width: 9rem;
}

.quote-program {
  grid-column: 2;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border, #495a6c);
  border-radius: 8px;
  background: #101a25;
}

.quote-program h2 {
  margin: 0;
  font: 600 1.25rem/1.25 var(--headline);
}

.quote-program p {
  margin: .45rem 0;
  color: var(--muted, #b7c3d0);
  font-size: .9rem;
}

@media (max-width: 780px) {
  .quote-page .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-page .quote-layout::before {
    content: none;
  }

  .quote-page .quote-intro {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--red, #f01737);
  }

  .quote-page .quote-intro h1 br {
    display: none;
  }

  .quote-program {
    grid-column: 1;
  }
}

@media (max-width: 540px) {
  .quote-page .field-grid label {
    grid-template-columns: 1fr;
    gap: .3rem;
  }

  .quote-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
