/* The contact modal.
   Its own file and its own prefix, because it is loaded on all 33 pages —
   the landing page, the seventeen product pages and the six road pages —
   and those carry three different design systems between them. Nothing
   here may depend on which one is underneath. */

body.ct-open { overflow: hidden; }

.ct-scrim {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(7, 24, 44, .62);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: ct-in .16s ease-out;
}
@keyframes ct-in { from { opacity: 0; } to { opacity: 1; } }

.ct-box {
  width: min(640px, 100%); max-height: min(88vh, 780px); overflow-y: auto;
  background: #fff; color: #0d1b2a; border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(7, 24, 44, .5);
}
@media (prefers-reduced-motion: no-preference) {
  .ct-box { animation: ct-rise .2s cubic-bezier(.22, .8, .24, 1); }
  @keyframes ct-rise { from { transform: translateY(10px); } to { transform: none; } }
}

.ct-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 0;
}
.ct-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.ct-head p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: #5b6f85; }
.ct-x {
  flex: none; border: 0; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: #5b6f85; padding: 0 2px;
}
.ct-x:hover { color: #0d1b2a; }

.ct-form { padding: 18px 24px 24px; display: grid; gap: 14px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ct-field { display: grid; gap: 5px; min-width: 0; }
.ct-field > span { font-size: 12px; font-weight: 700; color: #0d1b2a; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #dfe7f2; border-radius: 8px;
  font: inherit; font-size: 14px; color: #0d1b2a; background: #fff;
}
.ct-field textarea { resize: vertical; min-height: 68px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus {
  outline: 2px solid #1273e6; outline-offset: 1px; border-color: #1273e6;
}

.ct-note { margin: 0; font-size: 11.5px; line-height: 1.55; color: #7a8ca3; }
.ct-status { margin: 0; font-size: 13px; color: #5b6f85; min-height: 1.2em; }
.ct-status.bad { color: #b42318; font-weight: 600; }

.ct-actions { display: flex; justify-content: flex-end; gap: 10px; }
.ct-btn {
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.ct-primary { background: #1273e6; color: #fff; }
.ct-primary:hover { background: #0b58b8; }
.ct-primary:disabled { opacity: .55; cursor: progress; }
.ct-ghost { background: #fff; color: #3c5064; border-color: #dfe7f2; }
.ct-ghost:hover { border-color: #b9cde1; }

.ct-done { display: grid; gap: 10px; justify-items: start; }
.ct-done h3 { margin: 0; font-size: 19px; font-weight: 800; }
.ct-done p { margin: 0; font-size: 14px; line-height: 1.6; color: #3c5064; }
.ct-done .ct-btn { margin-top: 6px; }

@media (max-width: 560px) {
  .ct-scrim { padding: 0; place-items: end stretch; }
  .ct-box { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct-actions { flex-direction: column-reverse; }
  .ct-btn { width: 100%; }
}
