/* Aptly marketing site: contact page only.
   Shared tokens, navigation, footer and buttons are in site.css.
   The page head, cards and FAQ list are in pages.css. */

/* ---------- Form and direct lines ---------- */

/* The cards sit over the bottom of the forest band. */
.contact { position: relative; margin-top: -96px; padding-bottom: 96px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }


.field { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.field-label .opt, .char-count { font-size: 0.8rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.char-count.near-limit { color: var(--red); }

.field input[type="text"], .field input[type="email"], .field textarea {
  display: block;
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #d3d0c6;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s, background-color 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a988d; }
.field input[type="text"]:focus, .field input[type="email"]:focus, .field textarea:focus {
  outline: 3px solid rgba(74, 124, 40, 0.3);
  outline-offset: 0;
  border-color: var(--green-mid);
  background: #ffffff;
}

/* Subject choices. Each radio fills its own label, so nothing sits outside the page. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips label { position: relative; display: block; cursor: pointer; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d3d0c6;
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.chips input:focus-visible + span { outline: 3px solid var(--green-mid); outline-offset: 2px; }

/* Honeypot for bots: off screen to the left, so it cannot widen the page. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-actions .btn:disabled { opacity: 0.6; cursor: default; }
.privacy-note { flex: 1 1 14rem; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }

/* Result of sending. Shown and hidden by class only. */
.status-msg { display: none; margin-top: 20px; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; line-height: 1.45; align-items: flex-start; gap: 10px; }
.status-msg svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.status-msg.success { display: flex; background: var(--leaf-tint); color: #23400f; }
.status-msg.error { display: flex; background: var(--red-tint); color: #5c1a1a; }
.status-msg a { color: inherit; }

/* Direct lines */
.who { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.who p { font-size: 0.95rem; color: var(--body); }
.who strong { display: block; color: var(--ink); font-weight: 600; }

.lines { margin-top: 24px; }
.lines a { display: block; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.lines a:last-child { border-bottom: 1px solid var(--line); }
.lines small { display: block; font-size: 0.82rem; color: var(--muted); }
.lines b { display: block; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.lines a:hover b { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; }

.place { margin-top: 18px; font-size: 0.86rem; color: var(--muted); }

/* ---------- After the FAQ ---------- */

.try { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field + .field { margin-top: 20px; }
  .form-actions .btn { width: 100%; }
}
