.quote-page {
  background: #f6f8fb;
}

.quote-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 6vw, 88px) 0 clamp(48px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 22%, rgba(44, 132, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #061327 0%, #0a2448 72%, #0b3266 100%);
}

.quote-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent 5%, #000 55%, transparent 100%);
}

.quote-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: end;
  gap: 52px;
}

.quote-hero .eyebrow {
  color: #76b1ff;
}

.quote-hero h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(2.85rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.quote-hero p {
  max-width: 760px;
  margin: 0;
  color: #c8d5e7;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.quote-hero__signals {
  display: grid;
  gap: 12px;
}

.quote-hero__signals span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #e9f1fc;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.quote-hero__signals svg,
.quote-upload svg,
.quote-human-note svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-hero__signals svg {
  color: #6daeff;
}

.quote-section {
  padding: clamp(50px, 6vw, 84px) 0 clamp(72px, 7vw, 110px);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.68fr);
  align-items: start;
  gap: 30px;
}

.quote-form-card,
.quote-summary-card,
.quote-next-card {
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(7, 22, 43, 0.07);
}

.quote-form-card {
  padding: clamp(28px, 3.5vw, 48px);
}

.quote-card-heading {
  max-width: 720px;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e6eaf0;
}

.quote-card-kicker {
  display: block;
  margin-bottom: 8px;
  color: #1769e0;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quote-card-heading h2,
.quote-summary-card h2,
.quote-next-card h2 {
  margin: 0;
  color: #07162b;
  letter-spacing: -0.035em;
}

.quote-card-heading h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
}

.quote-card-heading p {
  margin: 12px 0 0;
  color: #5f6e82;
  line-height: 1.65;
}

#order-form {
  display: grid;
  gap: 22px;
}

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

#order-form label:not(.quote-upload) {
  display: grid;
  gap: 9px;
  color: #15243a;
  font-size: 0.9rem;
  font-weight: 800;
}

#order-form .quote-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

#order-form .quote-field-label b {
  margin-right: auto;
  color: #1769e0;
  font-weight: 850;
}

#order-form .quote-field-label small {
  color: #718096;
  font-size: 0.76rem;
  font-weight: 500;
}

#order-form label > small {
  color: #718096;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.55;
}

#order-form label > small:not(:first-child) {
  margin-top: -2px;
}

#order-form input,
#order-form textarea,
#order-form select {
  width: 100%;
  border-color: #cfd8e4;
  color: #122138;
  background: #f8fafc;
}

#order-form input::placeholder,
#order-form textarea::placeholder {
  color: #78869a;
  opacity: 1;
}

#order-form textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.6;
}

.quote-upload {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  gap: 14px;
  border: 1px dashed #aebfd4;
  border-radius: 12px;
  color: #17263b;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.quote-upload:hover,
.quote-upload:focus-within {
  border-color: #1769e0;
  background: #f1f7ff;
}

.quote-upload__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: #1769e0;
  background: #e8f2ff;
}

.quote-upload strong,
.quote-upload small {
  display: block;
}

.quote-upload strong {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.quote-upload small {
  color: #69778a;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.quote-upload__action {
  padding: 9px 12px;
  border: 1px solid #cad5e2;
  border-radius: 8px;
  color: #17263b;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.quote-upload input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quote-attachment-status {
  margin-top: -14px;
  color: #6c7b8e;
  font-size: 0.78rem;
}

.quote-submit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-top: 4px;
  gap: 18px;
}

.quote-submit-row .button {
  min-width: 205px;
  min-height: 54px;
  border: 1px solid #07162b;
  background: #07162b;
}

.quote-submit-row .button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.quote-submit-row p {
  margin: 0;
  color: #758296;
  font-size: 0.76rem;
  line-height: 1.5;
}

.quote-submit-row a,
.quote-contact-link {
  color: #1769e0;
}

.quote-status {
  padding: 14px 16px;
  border: 1px solid #bfd1e6;
  border-radius: 10px;
  color: #173a67;
  background: #edf5ff;
  font-size: 0.9rem;
  line-height: 1.55;
}

.quote-status[data-tone="error"] {
  border-color: #efb7b3;
  color: #8d211b;
  background: #fff2f1;
}

.quote-status[data-tone="success"] {
  border-color: #a9dcc0;
  color: #165d3b;
  background: #effaf4;
}

.quote-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 20px;
}

.quote-summary-card,
.quote-next-card {
  padding: 28px;
}

.quote-summary-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.quote-summary-card h2,
.quote-next-card h2 {
  font-size: 1.45rem;
}

.quote-readiness {
  color: #66768b;
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.quote-progress {
  height: 5px;
  margin: 18px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.quote-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1769e0;
  transition: width 180ms ease;
}

.quote-summary-list {
  margin: 14px 0 0;
}

.quote-summary-list > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 13px 0;
  gap: 14px;
  border-bottom: 1px solid #e8ecf1;
}

.quote-summary-list > div:last-child {
  border-bottom: 0;
}

.quote-summary-list dt {
  color: #778498;
  font-size: 0.78rem;
  font-weight: 700;
}

.quote-summary-list dd {
  margin: 0;
  color: #17263b;
  font-size: 0.84rem;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

.quote-next-card ol {
  display: grid;
  margin: 24px 0;
  padding: 0;
  gap: 18px;
  list-style: none;
}

.quote-next-card li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.quote-next-card li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #1769e0;
  background: #eaf3ff;
  font-size: 0.76rem;
  font-weight: 850;
}

.quote-next-card li strong {
  color: #17263b;
  font-size: 0.88rem;
}

.quote-next-card li p {
  margin: 4px 0 0;
  color: #6b798d;
  font-size: 0.8rem;
  line-height: 1.5;
}

.quote-human-note {
  display: flex;
  padding: 15px;
  gap: 12px;
  border-radius: 10px;
  color: #184471;
  background: #edf5ff;
}

.quote-human-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.quote-contact-link {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 800;
}

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

  .quote-hero__signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .quote-hero {
    padding: 48px 0;
  }

  .quote-hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }

  .quote-hero__signals,
  .quote-field-grid,
  .quote-sidebar,
  .quote-submit-row {
    grid-template-columns: 1fr;
  }

  .quote-hero__signals {
    gap: 8px;
  }

  .quote-form-card,
  .quote-summary-card,
  .quote-next-card {
    border-radius: 13px;
  }

  .quote-upload {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .quote-upload__action {
    grid-column: 1 / -1;
    text-align: center;
  }

  .quote-submit-row .button {
    width: 100%;
  }
}
