/* -------------------- Contact form -------------------- */
.contact {
  background: var(--surface-cream);
  padding: 5rem 0;
}
@media (max-width: 767px) { .contact { padding: 3.5rem 0; } }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  /* Don't stretch the form card to match the info column height — the card
     should hug its own (collapsed) content, then grow naturally as fields
     reveal. Sticky keeps it in view while reading the left column. */
  align-items: start;
}
@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
  .contact-form { position: sticky; top: 6rem; }
}
.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 2rem;
}
.contact-info p {
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--tint);
  color: var(--primary-darker);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-info-item-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-info-item-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}
.contact-info-item-value a { color: var(--text); }
.contact-info-item-value a:hover { color: var(--primary); }

.contact-form {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF6 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--hi-top), var(--shadow-lg);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 640px) { .contact-form { padding: 2rem; } }
@media (min-width: 768px) { .contact-form { padding: 2.5rem; } }
.contact-form-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-form-step {
  display: inline-block;
  background: var(--tint);
  color: var(--primary-darker);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-form-preview-note {
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.55;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid--cols-2 { grid-template-columns: 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
}
.required-mark { color: var(--primary); }
.form-control {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-control::placeholder { color: #9CA3AF; }
/* Focus state: soft teal halo (Stripe / Linear style). Replaces the
   prior animated SVG trace around the first field. */
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}
textarea.form-control { resize: vertical; min-height: 110px; }

/* Subtle "fill me out" pulse on the Name field. Loops the focus halo
   on/off every 4s so the eye lands on the first input. Stops the moment
   the user interacts (focus, hover, or any field has been typed in →
   form gets .is-expanded). Skipped under prefers-reduced-motion. */
#fullName {
  animation: namePulse 4s ease-in-out infinite;
}
#fullName:hover,
#fullName:focus,
.contact-form.is-expanded #fullName {
  animation: none;
}
@keyframes namePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  #fullName { animation: none; }
}

.contact-form-expanded { display: flex; flex-direction: column; gap: 1rem; }
.contact-form.is-collapsible .contact-form-expanded { display: none; }
.contact-form.is-collapsible.is-expanded .contact-form-expanded { display: flex; }

/* Collapsed-state hint — sits below Name/Email when the rest of the form is
   hidden, then quietly disappears once the user starts typing. Stops the
   card from looking empty without faking a long form. */
.contact-form-hint {
  display: none;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface-cream);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted-strong);
}
.contact-form.is-collapsible:not(.is-expanded) .contact-form-hint { display: flex; }
.contact-form-hint-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--tint);
  color: var(--primary-darker);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-form-hint-icon svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.contact-form-hint strong {
  display: block;
  color: var(--heading);
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}
.contact-form-hint span { font-size: 0.82rem; line-height: 1.45; }
/* Mobile: hide the "Phone, company & details" hint entirely — the form
   already feels short on mobile and the hint just adds visual noise. */
@media (max-width: 768px) {
  .contact-form.is-collapsible:not(.is-expanded) .contact-form-hint {
    display: none;
  }
}

.sms-consent-card {
  background: var(--surface-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.form-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}
.form-check-input {
  margin-top: 0.2rem;
  width: 18px; height: 18px;
  accent-color: var(--primary);
}
.form-check-label {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.sms-disclosure {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.contact-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  padding-top: 0.5rem;
}
@media (min-width: 480px) {
  .contact-form-actions { flex-direction: row; align-items: center; }
}
.form-status {
  color: var(--muted);
  font-size: 0.9rem;
}
.form-status.is-success { color: var(--primary-dark); font-weight: 600; }
.form-status.is-error { color: #B91C1C; font-weight: 600; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cloudflare Turnstile mount. Stays out of the layout until form.js renders
   the widget (the [hidden] attribute is removed only when a site key is set).
   The min-height reserves the widget's space so the submit button doesn't
   jump when the iframe paints. */
.turnstile-field { margin-bottom: 1rem; }
.turnstile-field:not([hidden]) { min-height: 65px; }

