/* v30 (was v29): native multi-step intake form (replaces the Jotform embed on contact.html).
   Matches the site: Lexend, #111 text, gold accent #d6b56e, 12px cards. */
.slg-intake { scroll-margin-top: 120px; padding: 14px 14px 10px; font-family: "Lexend", Arial, sans-serif; color: #222; }
.slg-intake-head { margin-bottom: 14px; }
.slg-intake h2.slg-intake-title { margin: 0 0 4px; font-size: 24px; }
.slg-intake-sub { margin: 0; color: #555; font-size: 15px; }
.slg-intake-noscript { font-size: 16px; }
.slg-intake-form[hidden], .slg-step[hidden], .slg-thanks[hidden], .slg-error[hidden], .slg-btn[hidden], .slg-after-topic[hidden], .slg-cond[hidden], .slg-pill[hidden], .slg-extras[hidden], .slg-intake-head[hidden] { display: none !important; }

/* progress */
.slg-progress { margin: 6px 0 4px; }
.slg-progress-steps { list-style: none; display: flex; justify-content: space-between; margin: 0 0 8px; padding: 0; }
.slg-progress-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; font-size: 12px; color: #888; letter-spacing: .02em; }
.slg-progress-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ccc; display: flex; align-items: center; justify-content: center; font-weight: 600; background: #fff; color: #888; font-size: 13px; }
.slg-progress-steps li.is-active { color: #111; font-weight: 600; }
.slg-progress-steps li.is-active .slg-progress-dot { border-color: #d6b56e; background: #111; color: #d6b56e; }
.slg-progress-steps li.is-done .slg-progress-dot { border-color: #d6b56e; background: #d6b56e; color: #111; }
.slg-progress-bar { height: 4px; background: #eee; border-radius: 4px; overflow: hidden; }
.slg-progress-fill { display: block; height: 100%; width: 25%; background: #d6b56e; transition: width .25s ease; }
.slg-step-count { margin: 10px 0 2px; font-size: 13px; color: #666; }

/* steps */
.slg-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.slg-step-title { font-family: "Libre Baskerville", Georgia, serif; font-size: 20px; line-height: 1.35; color: #111; margin: 4px 0 14px; padding: 0; width: 100%; }
.slg-step-title:focus { outline: none; }
.slg-step-title:focus-visible { outline: 3px solid #d6b56e; outline-offset: 3px; }

.slg-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slg-choice, .slg-pill { position: relative; display: block; cursor: pointer; margin: 0; }
.slg-choice input, .slg-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slg-choice span { display: flex; align-items: center; min-height: 56px; padding: 12px 14px 12px 44px; border: 1.5px solid #d9d9d9; border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.3; color: #222; transition: border-color .15s, background .15s; position: relative; }
.slg-choice span::before { content: ""; position: absolute; left: 14px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #bbb; background: #fff; }
.slg-choice:hover span { border-color: #d6b56e; }
.slg-choice input:checked + span { border-color: #d6b56e; background: #fbf6ea; font-weight: 600; }
.slg-choice input:checked + span::before { border-color: #111; background: radial-gradient(#111 0 4px, #fff 5px); }
.slg-choice input:focus-visible + span, .slg-pill input:focus-visible + span { outline: 3px solid #d6b56e; outline-offset: 2px; }

.slg-field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.slg-field > label, .slg-pref > legend { display: block; font-size: 15px; font-weight: 600; color: #111; margin: 0 0 6px; padding: 0; }
.slg-req { color: #a3782a; }
.slg-optional { font-weight: 400; color: #777; font-size: 13px; }
.slg-hint { margin: -2px 0 6px; color: #666; font-size: 13px; line-height: 1.45; }
.slg-intake input[type="text"], .slg-intake input[type="email"], .slg-intake input[type="tel"], .slg-intake input[type="date"], .slg-intake textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 13px; font-size: 16px; /* 16px stops iOS zoom */
  font-family: inherit; color: #111; background: #fff; border: 1.5px solid #cfcfcf; border-radius: 8px; transition: border-color .15s, box-shadow .15s; margin: 0;
}
.slg-intake textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.slg-intake input:focus, .slg-intake textarea:focus { outline: none; border-color: #d6b56e; box-shadow: 0 0 0 3px rgba(214, 181, 110, .35); }
.slg-intake [aria-invalid="true"] { border-color: #b3261e !important; }
.slg-intake .is-valid { border-color: #6f9e6f; }
.slg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.slg-count { margin: 4px 0 0; text-align: right; font-size: 12px; color: #888; }
.slg-error { margin: 6px 0 0; color: #b3261e; font-size: 14px; line-height: 1.4; }
.slg-error::before { content: "! "; font-weight: 700; }
.slg-submit-error { padding: 10px 12px; background: #fdecea; border-radius: 8px; }

.slg-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.slg-pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 48px; padding: 8px 18px; border: 1.5px solid #d9d9d9; border-radius: 999px; font-size: 15px; background: #fff; }
.slg-pill:hover span { border-color: #d6b56e; }
.slg-pill input:checked + span { border-color: #d6b56e; background: #111; color: #fff; font-weight: 600; }

/* review */
.slg-review { margin: 0 0 12px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.slg-review-row { display: grid; grid-template-columns: 34% 1fr; gap: 10px; padding: 9px 14px; border-top: 1px solid #eee; align-items: start; font-size: 14px; }
.slg-review-row:first-child { border-top: 0; }
.slg-review dt { font-weight: 600; color: #555; margin: 0; }
.slg-review dd { margin: 0; color: #111; white-space: pre-wrap; word-break: break-word; }
.slg-review-edit { background: none; border: 0; padding: 4px 6px; margin: -4px -6px; color: #111; font: inherit; font-size: 14px; text-decoration: underline; text-decoration-color: #d6b56e; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.slg-review-edit:focus-visible { outline: 3px solid #d6b56e; outline-offset: 2px; }
.slg-privacy-note { font-size: 13px; color: #666; margin: 0 0 6px; }
.slg-privacy-note a { color: #111; border-bottom: 1px solid #d6b56e; text-decoration: none; }

/* honeypot */
.slg-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* nav */
.slg-nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 6px; }
.slg-btn { min-height: 50px; min-width: 120px; border-radius: 6px; font-family: "Lexend", Arial, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding: 12px 26px; }
.slg-btn.btn-custom { border: 0; background: #111; color: #fff; margin-left: auto; }
.slg-btn.btn-custom:hover { background: #2a2a2a; }
.slg-btn-back { background: #fff; color: #111; border: 1.5px solid #cfcfcf; }
.slg-btn-back:hover { border-color: #111; }
.slg-btn:focus-visible { outline: 3px solid #d6b56e; outline-offset: 2px; }
.slg-btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* thanks */
.slg-thanks { padding: 8px 4px 10px; }
.slg-thanks:focus { outline: none; }
.slg-thanks-icon { width: 52px; height: 52px; border-radius: 50%; background: #111; color: #d6b56e; font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.slg-thanks h2.slg-thanks-title { font-size: 22px; margin: 0 0 10px; line-height: 1.35; }
.slg-thanks p { margin: 0 0 8px; font-size: 15px; }
.slg-thanks-steps { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.slg-thanks-steps li { margin-bottom: 8px; }
.slg-thanks a { color: #111; border-bottom: 1px solid #d6b56e; text-decoration: none; font-weight: 600; }

@media (max-width: 575px) {
  .slg-intake { padding: 10px 8px 6px; }
  .slg-choices { grid-template-columns: 1fr; }
  .slg-row { grid-template-columns: 1fr; }
  .slg-progress-label { display: none; }
  .slg-review-row { grid-template-columns: 1fr; gap: 2px; }
  .slg-nav { margin-top: 14px; }
  .slg-btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .slg-progress-fill, .slg-choice span { transition: none; } }

/* option B: the framed form inside the contact card */
.slg-intake-frame { display: block; width: 100%; height: 620px; border: 0; background: #fff; scroll-margin-top: 120px; }

/* v30 additions */
.slg-after-topic { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee; }
.slg-hint-after { margin: 6px 0 0; }
.slg-cond { margin-bottom: 16px; }
.slg-dod { margin: 12px 0 0; max-width: 260px; }
.slg-dod > label { font-weight: 500; font-size: 14px; }
.slg-field .slg-checkbox, .slg-checkbox { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid #e2c98f; border-radius: 10px; background: #fbf6ea; cursor: pointer; font-size: 15px; font-weight: 600; color: #111; margin: 0; }
.slg-field .slg-checkbox input, .slg-checkbox input { position: static; opacity: 1; padding: 0; border: 0; min-height: 0; box-shadow: none; width: 22px; height: 22px; accent-color: #111; flex: 0 0 auto; margin: 0; }
.slg-checkbox input:focus-visible { outline: 3px solid #d6b56e; outline-offset: 2px; }
.slg-heard { padding: 12px 14px 14px; border-left: 4px solid #d6b56e; background: #faf8f3; border-radius: 0 10px 10px 0; }
.slg-heard > label { font-size: 16px; }
.slg-summary { margin: 18px 0 10px; }
.slg-summary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.slg-summary-title { font-family: "Lexend", Arial, sans-serif; font-size: 15px; font-weight: 600; margin: 0; color: #555; text-transform: none; letter-spacing: 0; }
.slg-summary-head .slg-review-edit { margin-left: auto; text-align: right; }
.slg-thanks-urgent { background: #fbf6ea; border-left: 4px solid #d6b56e; padding: 10px 12px; border-radius: 0 8px 8px 0; }
.slg-thanks-hours { color: #555; }
.slg-thanks-phone { white-space: nowrap; }
/* v31: optional extra questions (form data-extra="1") */
.slg-extras { border: 1px solid #ececec; border-radius: 10px; padding: 6px 14px 4px; background: #fcfcfb; }
.slg-extras-title { margin: 6px 0 2px; font-weight: 600; font-size: 14px; color: #111; }
.slg-extras .slg-yn { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 0; padding: 8px 0; border: 0; border-top: 1px solid #efefef; min-width: 0; }
.slg-extras .slg-yn:first-of-type { border-top: 0; }
.slg-extras .slg-yn legend { float: left; padding: 0; margin: 0; font-size: 14px; font-weight: 500; color: #222; max-width: 100%; }
.slg-pills-sm { gap: 8px; }
.slg-pills-sm .slg-pill span { min-width: 64px; min-height: 44px; padding: 6px 14px; font-size: 14px; }
.slg-extras .slg-pills-sm { margin-left: auto; }
