/* Contact page — styles page-contact.hbs
 * ---------------------------------------------------------------------
 * Loaded after figtree-cream.css; colours come from the palette tokens.
 * Proportions and type sizes are the static site's, not re-judged.
 */

.ft-contact-section { padding: 4.5rem 0 6rem; }

.ft-contact-section h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: 0.4rem 0 1.25rem;
}

.ft-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

/* ---- Left column ---- */

.ft-contact-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.ft-contact-info > p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.ft-cinfo-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ft-cinfo-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.ft-cinfo-text strong {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.ft-cinfo-text span { font-size: 0.875rem; color: var(--text-muted); }
.ft-cinfo-text a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.ft-cinfo-text a:hover { color: var(--green); }

.ft-contact-quote {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--green-dark);
}

.ft-contact-quote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: 'Courier Prime', monospace;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---- The form ---- */

.ft-contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.ft-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ft-form-group { margin-bottom: 1.25rem; }

.ft-form-group label {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.ft-form-group input,
.ft-form-group select,
.ft-form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s;
}

.ft-form-group textarea { resize: vertical; min-height: 7rem; }

.ft-form-group input:focus,
.ft-form-group select:focus,
.ft-form-group textarea:focus { border-color: var(--green); }

.ft-form-group input.is-invalid,
.ft-form-group textarea.is-invalid { border-color: #b3401f; }

/* The message is text, not a red border alone -- a colour change on its own
   says nothing to anyone who cannot see it, or cannot tell the two greens
   and the red apart. */
.ft-field-err {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #b3401f;
}

.ft-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.ft-turnstile { min-height: 65px; }

.ft-btn.is-busy { opacity: 0.65; cursor: progress; }

.ft-form-msg {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid var(--border);
}

.ft-form-msg.is-error {
  color: #b3401f;
  border-color: rgba(179, 64, 31, 0.4);
  background: rgba(179, 64, 31, 0.06);
}

/* ---- Success ---- */

.ft-form-done { text-align: center; padding: 1.5rem 0; }
.ft-form-done-mark { font-size: 2.6rem; line-height: 1; margin-bottom: 1rem; }
.ft-form-done h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.ft-form-done p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 auto;
}
.ft-form-done a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }

.ft-contact-extra { margin-top: 4rem; }

/* ---- Breakpoints ---- */

@media (max-width: 960px) {
  .ft-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ft-contact-form { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
  .ft-contact-section { padding: 3rem 0 4rem; }
  .ft-form-row { grid-template-columns: 1fr; gap: 0; }
  .ft-form-footer { align-items: stretch; }
  .ft-form-footer .ft-btn { width: 100%; text-align: center; }
}
