/* Shared styles for the two service pages (/coaching, /advisory).
   Layout and form are identical; only the copy and options differ. */

.page-head {
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(44px, 8vh, 88px)) 0 clamp(32px, 5vh, 56px);
}
.page-head .back {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}
.page-head .back::before { content: '‹'; font-size: 17px; line-height: 1; }
.page-head .back:hover { color: var(--deep-earth); text-decoration: none; }
.page-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 18ch;
  text-wrap: balance;
}
.page-head .lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 58ch;
  margin-top: 20px;
  text-wrap: pretty;
}

/* ---------- SERVICE LIST ---------- */
.services { padding-bottom: clamp(48px, 7vh, 80px); }
.services h2, .form-section h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.section-lede {
  font-size: 17px;
  color: var(--ink-secondary);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 36px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.25;
}
.service p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.service .who {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-ink);
}

/* ---------- FORM ---------- */
.form-section {
  background: var(--bg-alt);
  padding: clamp(56px, 8vh, 92px) 0;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  max-width: 720px;
}
.field { margin-bottom: 22px; }
/* Direct children only — .option labels inside the checkbox grid are laid
   out as flex rows and must not inherit this block/bold treatment. */
.field > label, .field legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-earth);
  margin-bottom: 8px;
  padding: 0;
}
.req { color: var(--terracotta-ink); }
.field-error {
  display: none;
  margin-top: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #8A4632;
}
.field--invalid .field-error { display: block; }
.field--invalid input[type="text"],
.field--invalid input[type="email"],
.field--invalid textarea { border-color: #B26A4E; }
.field--invalid .option { border-color: rgba(178, 106, 78, 0.55); }
.field .hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-body);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--dusty-blue);
  box-shadow: 0 0 0 3px rgba(169, 198, 211, 0.35);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field fieldset { border: none; }

/* Checkbox grid — the multi-select that drives which auto-reply goes out. */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  padding: 13px 16px;
  cursor: pointer;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.35;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.option:hover { border-color: var(--dusty-blue); }
.option input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.option span { flex: 1; }
.option input:checked {
  background: var(--deep-earth);
  border-color: var(--deep-earth);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23F7F3EC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.option input:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 2px; }
.option:has(input:checked) { border-color: var(--deep-earth); background: rgba(169, 198, 211, 0.14); }

/* Bot trap: real people never see or fill this. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.form-actions .btn { border: none; cursor: pointer; font-family: var(--sans); }
.form-actions .btn[disabled] { opacity: 0.6; cursor: default; }
.form-note { font-size: 13px; color: var(--ink-secondary); }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  line-height: 1.5;
}
.form-status.show { display: block; }
.form-status.ok  { background: rgba(166, 175, 150, 0.24); color: var(--deep-earth); }
.form-status.err { background: rgba(201, 133, 107, 0.18); color: #8A4632; }

@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; justify-content: center; }
}
