/* ==========================================================================
   Contact — page-specific styles
   ========================================================================== */

/* three ways to begin */
.ways { display: grid; gap: 1.1rem; }
@media (min-width: 960px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.way {
  position: relative; display: grid; align-content: start; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); scroll-margin-top: 7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.way:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.way__letter { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--green-900); color: var(--lime-400); font-weight: 700; }
.way h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); font-weight: 600; line-height: 1.2; }
.way__facts { display: grid; gap: 1.1rem; }
.way__facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-600); margin-bottom: 0.25rem; }
.way__facts dd { color: var(--ink-soft); }
.way .btn { align-self: end; justify-self: start; margin-top: 0.25rem; }
.way--feature { background: var(--green-900); color: var(--on-dark); border-color: transparent; }
.way--feature .way__letter { background: var(--lime-400); color: var(--green-900); }
.way--feature .way__facts dt { color: var(--lime-400); }
.way--feature .way__facts dd { color: var(--on-dark-muted); }
@media (min-width: 960px) { .way--feature { translate: 0 -0.75rem; } .way--feature:hover { translate: 0 -1.25rem; transform: none; } }

/* inquiry layout */
.inquiry { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 980px) { .inquiry { grid-template-columns: 0.8fr 1.2fr; } .inquiry__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.inquiry__aside { display: grid; gap: 1.4rem; justify-items: start; }
.contact-list { display: grid; gap: 1rem; margin-top: 0.75rem; width: 100%; }
.contact-list__item { display: flex; align-items: center; gap: 1rem; }
.contact-list__item > div { display: grid; line-height: 1.4; }
.contact-list__item strong { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.contact-list__item a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime-500); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.contact-list__item a:hover { text-decoration-color: currentColor; }

/* form */
.form-card { padding: clamp(1.4rem, 3.5vw, 2.75rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 1.6rem; }
.form__grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.5rem; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-size: 0.875rem; font-weight: 700; letter-spacing: -0.005em; padding: 0; }
.req { color: var(--green-600); margin-left: 0.15rem; }

.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--cream-50); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.55; }
.field ::placeholder { color: rgb(0 34 25 / 0.42); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(0 34 25 / 0.42); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px rgb(192 225 71 / 0.45);
}
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select .icon { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }

/* validation: only after the user has interacted (:user-invalid), never on page load */
.error-msg { display: none; align-items: flex-start; gap: 0.45rem; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: #a6261c; }
.error-msg .icon { width: 1rem; height: 1rem; margin-top: 0.05rem; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; background: #fdf3f1; }
.field input:user-invalid ~ .error-msg { display: flex; }
.field input:user-valid:not(:placeholder-shown):not([type="checkbox"]) { border-color: var(--green-500); }
.field--consent:has(input:user-invalid) .error-msg { display: flex; }

/* checkboxes */
.focus legend { margin-bottom: 0.15rem; }
.focus__grid { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .focus__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; line-height: 1.45; }
.focus .check { padding: 0.8rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream-50); align-items: center; transition: border-color 0.2s, background-color 0.2s; }
.focus .check:hover { border-color: var(--line-strong); }
.focus .check:has(input:checked) { border-color: var(--green-900); background: var(--lime-100); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 1.3rem; height: 1.3rem; margin: 0.1rem 0 0; border-radius: 6px;
  border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.focus .check input { margin: 0; }
.check input::after { content: ""; width: 0.8rem; height: 0.8rem; background: var(--lime-400); -webkit-mask: var(--mask-check) center / contain no-repeat; mask: var(--mask-check) center / contain no-repeat; scale: 0; transition: scale 0.2s var(--ease); }
.check input:checked { background: var(--green-900); border-color: var(--green-900); }
.check input:checked::after { scale: 1; }
.check input:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.check input:user-invalid { border-color: #c0392b; }
.field--consent { gap: 0.6rem; }
.field--consent .check { font-size: 0.9375rem; color: var(--ink-soft); }

.form__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form__status { min-height: 1.4em; font-size: 0.9375rem; font-weight: 600; }
.form__status[data-state="error"] { color: #a6261c; }
.form__status a { text-decoration: underline; text-underline-offset: 0.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { display: grid; gap: 1rem; justify-items: start; padding-block: 1rem; }
.form-done[hidden] { display: none; }
.form-done p { color: var(--muted); max-width: 44ch; }
.form-done:focus { outline: none; }
.form[hidden] { display: none; }

/* Cloudflare Turnstile: reserve the widget's height so the form doesn't jump when it loads */
.field--turnstile { min-height: 65px; }
.turnstile { max-width: 100%; min-height: 65px; }
