/* SubbieTRAC shared contact CTA — the last section before the footer on
   every page. Self-contained on purpose: it is used both on pages styled
   by styles.css and on index.html, which carries its own inline styles. */

.contact-cta {
  padding: 40px 0 84px;
  background: #fff;
}

.contact-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 64px;
  border-radius: 32px;
  background: #171717;
  color: #fff;
}

.contact-shell::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  top: -180px;
  border-radius: 50%;
  background: #f4c900;
  opacity: .16;
  pointer-events: none;
}

.contact-shell .contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}

.contact-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 15, 15, .95) 0%, rgba(15, 15, 15, .8) 55%, rgba(15, 15, 15, .55) 100%);
}

/* The scrim only earns its keep over a photo; keep the plain shell clean. */
.contact-shell:not(:has(.contact-photo))::before { display: none; }

.contact-copy,
.contact-form {
  position: relative;
  z-index: 2;
}

.contact-kicker {
  margin-bottom: 15px;
  color: #f4c900;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-copy h2 {
  max-width: 560px;
  font-size: clamp(34px, 4.4vw, 56px);
}

.contact-copy > p {
  max-width: 520px;
  margin-top: 16px;
  color: #c9c9c4;
  font-size: 17px;
}

.contact-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.contact-demo-actions .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: #d4d4d0;
  font-size: 13px;
  font-weight: 750;
}

.contact-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-points span::before {
  content: "✓";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4c900;
  color: #171300;
  font-size: 10px;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 460px;
  justify-self: end;
  width: 100%;
  padding: 26px;
  border-radius: 20px;
  background: #fffdf7;
  color: #171717;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.contact-form h3 { font-size: 24px; }

.contact-form-note {
  margin-top: -6px;
  color: #69665f;
  font-size: 13px;
}

.contact-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.contact-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dcd7cd;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 500;
  outline: none;
}

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

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #b99600;
  box-shadow: 0 0 0 4px rgba(244, 201, 0, .17);
}

/* Honeypot — invisible to people, tempting to bots. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile injects its own iframe; keep it inside the card. */
.cf-turnstile iframe { max-width: 100%; }

.contact-form .btn { width: 100%; }

.contact-form-foot {
  margin: -2px 0 0;
  color: #8a867d;
  font-size: 12px;
  text-align: center;
}

/* The same booking form is also used outside the dark CTA shell (the Book a
   demo page). There it sits on a light background, so it takes a border and a
   normal-weight shadow instead of the deep one meant to lift off dark ink. */
.contact-form:not(.contact-shell .contact-form) {
  max-width: none;
  justify-self: stretch;
  border: 1px solid var(--line, #dedbd2);
  box-shadow: var(--shadow-md, 0 22px 60px rgba(20, 20, 20, .13));
}

.contact-status {
  display: none;
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.contact-status.is-error {
  display: block;
  border: 1px solid #e3b7b1;
  background: #f8e4e1;
  color: #8f352c;
}

.contact-success {
  padding: 13px;
  border: 1px solid #b8d8c7;
  border-radius: 11px;
  background: #e0f1e8;
  color: #285a45;
  font-size: 14px;
}

.contact-success p {
  margin: 4px 0 0;
  font-weight: 500;
}

.contact-form.is-sent .contact-field-grid,
.contact-form.is-sent .contact-field,
.contact-form.is-sent .btn,
.contact-form.is-sent .contact-status,
.contact-form.is-sent .contact-form-note {
  display: none;
}

.contact-form.is-sent .contact-success[hidden] { display: block; }

@media (max-width: 1060px) {
  .contact-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 44px;
  }
  .contact-form {
    justify-self: stretch;
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .contact-cta { padding: 24px 0 64px; }
  .contact-shell {
    padding: 30px 22px;
    border-radius: 24px;
  }
  .contact-field-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-demo-actions .btn { width: 100%; }
}
