:focus-visible {
  outline: 3px solid var(--gold2);
  outline-offset: 4px;
}

#about,
#products,
#solutions,
#request-quote,
#careers,
#contact {
  scroll-margin-top: 96px;
}

.product-body {
  display: flex;
  min-height: 212px;
  flex-direction: column;
}

.product-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.product-quote span {
  transition: transform 0.2s ease;
}

.product-quote:hover {
  color: var(--gold);
}

.product-quote:hover span {
  transform: translateX(4px);
}

.quote-sec {
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(226, 189, 90, 0.16), transparent 32%),
    linear-gradient(145deg, #f7f9fd, #edf2fa);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.quote-copy {
  position: sticky;
  top: 118px;
}

.quote-copy .lead {
  margin-bottom: 28px;
}

.quote-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-points li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 25, 69, 0.1);
  border-radius: 16px;
}

.quote-points > li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 12px;
  color: var(--gold2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.quote-points strong {
  color: var(--navy);
  font-size: 16px;
}

.quote-points small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quote-privacy {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quote-form {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-heading strong,
.form-heading span {
  display: block;
}

.form-heading strong {
  color: var(--navy);
  font-size: 22px;
}

.form-heading > div > span {
  color: var(--muted);
  font-size: 13px;
}

.form-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: #edf7f0;
  border: 1px solid #cce7d4;
  border-radius: 999px;
  color: #23643a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.channel-group legend {
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #cbd4e3;
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  min-height: 122px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #9eacc2;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(16, 42, 134, 0.1);
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.channel-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.channel-group legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.channel-group label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #cbd4e3;
  border-radius: 13px;
  cursor: pointer;
}

.channel-group label:has(input:checked) {
  background: #f3f6fd;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16, 42, 134, 0.08);
}

.channel-group input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.channel-group strong,
.channel-group small {
  display: block;
}

.channel-group strong {
  color: var(--navy);
  font-size: 14px;
}

.channel-group small {
  color: var(--muted);
  font-size: 12px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.consent-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.consent-row a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-submit {
  width: 100%;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.quote-status {
  margin-top: 16px;
  padding: 13px 15px;
  background: #edf7f0;
  border: 1px solid #cce7d4;
  border-radius: 12px;
  color: #1d5832;
  font-size: 13px;
  font-weight: 750;
}

.quote-preview {
  margin-top: 18px;
  padding: 20px;
  background: #f8faff;
  border: 1px solid #cad5e8;
  border-radius: 16px;
}

.quote-preview:focus {
  outline: 3px solid rgba(193, 135, 24, 0.34);
  outline-offset: 3px;
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.preview-heading strong,
.preview-heading span {
  display: block;
}

.preview-heading strong {
  color: var(--navy);
  font-size: 17px;
}

.preview-heading > div > span {
  color: var(--muted);
  font-size: 12px;
}

.preview-ready {
  flex: 0 0 auto;
  color: #23643a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-message {
  overflow: auto;
  max-height: 260px;
  margin: 16px 0;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-actions .btn {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 13px;
}

.preview-copy {
  background: #fff;
  border-color: #aebbd0;
  color: var(--navy);
}

.foot-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold2);
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

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

  .quote-copy {
    position: static;
  }

  .quote-copy .lead {
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  #about,
  #products,
  #solutions,
  #request-quote,
  #careers,
  #contact {
    scroll-margin-top: 84px;
  }

  .product-body {
    min-height: auto;
  }

  .quote-form {
    padding: 22px 18px;
    border-radius: 19px;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .channel-group {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .channel-group legend {
    grid-column: auto;
  }

  .quote-points li {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .preview-heading {
    flex-direction: column;
  }

  .preview-actions {
    flex-direction: column;
  }

  .preview-actions .btn {
    width: 100%;
  }

  .foot-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-quote span,
  .field input,
  .field select,
  .field textarea,
  .social-link {
    transition: none;
  }
}
