/* Contact page (WEB-12.1, 12.2, copy contact.md): book a call, the Start a project form, what happens next. */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-md); align-items: start; }

.contact-option { display: grid; gap: 1rem; padding-top: 1.5rem; border-top: var(--rule-strong); }
.contact-option h2 { font: 600 var(--text-h3)/1.15 var(--display); }
.contact-option > p { color: var(--muted); }

.contact-form { display: grid; gap: 1.25rem; }
.contact-form textarea.field-input { min-height: 9rem; resize: vertical; }
.field-hint { font-weight: 400; color: var(--muted); }
.form-note { font-size: var(--text-sm); color: var(--muted); }

/* What happens next: 4 steps */
.next-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.next-list li { display: grid; gap: .5rem; align-content: start; padding-top: 1.25rem; border-top: var(--rule-strong); }
.next-list h3 { font: 600 var(--text-h3)/1.15 var(--display); }
.next-list p { font-size: .9375rem; color: var(--muted); }

/* 2026-11-02 (Krishna: improve the Contact page): the two options become cards with round corners like Services.
   Book a call is pale champagne and stays in view while the form scrolls; the form is a white card. Titles get the
   site's italic second half. The steps below are white cards on the sand. The hairline versions above stay as the base. */
.contact-option.contact-call, .contact-option.contact-write { padding: clamp(1.5rem, 3vw, 2.5rem); border-top: 0; border-radius: var(--radius-card); }
.contact-call { background: var(--glow); }
.contact-write { background: var(--surface); }
.contact-option h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: var(--tracking-title); text-wrap: balance; }
.contact-option h2 em { font-style: italic; font-weight: 500; color: var(--spark-deep); }
.contact-call > p { color: var(--ink); }
.contact-call .form-note { color: var(--muted-deep); }
.contact-who { padding-top: 1rem; border-top: 1px solid var(--spark); font-weight: 600; }
.contact-write .field-input { background-color: var(--bg); }   /* soft stone fields on the white card; the border keeps --muted so each field stays easy to see (3:1) */
.contact-write .field-input:focus-visible { border-color: var(--primary); }
@media (min-width: 55.01rem) { .contact-call { position: sticky; top: 6rem; } }
.next-list li { padding: 1.5rem; border-top: 0; border-radius: var(--radius-card); background: var(--surface); }

@media (max-width: 55rem) {
  .contact-grid { grid-template-columns: 1fr; }
  .next-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 35rem) {
  .next-list { grid-template-columns: 1fr; }
}

/* 2026-11-06 (Krishna: the Zoho aliases are live): the email line under the next steps */
.contact-email { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.contact-email a { color: var(--primary); text-underline-offset: .3em; overflow-wrap: anywhere; }

/* ---------- Form status line (2026-11-07, Web3Forms): shown after Send message ---------- */
/* moved to components.css on 2026-11-09 (the Home newsletter form uses it too):
.form-status:empty { display: none; }
.form-status { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.form-status.is-error { color: var(--wax); } */

/* ---------- Enquiry form in three groups (2026-11-07, Krishna: add the add-ons, key info, professional) ----------
   Numbered groups with a champagne rule, two fields side by side on wide cards, and tap choices as round pills
   (service, starting point) and small cards (add-ons). The real radio or checkbox stays in each label for keyboards
   and screen readers; it is only made invisible over the label. */
.contact-form { gap: clamp(1.75rem, 3vw, 2.25rem); }
.form-group { display: grid; gap: 1.25rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-legend { display: flex; align-items: baseline; gap: .75rem; width: 100%; padding: 0 0 .75rem; border-bottom: 1px solid var(--spark); font: italic 500 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--display); }
.form-step { font: normal 600 var(--text-sm)/1 var(--body); color: var(--spark-deep); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field > legend { padding: 0; margin-bottom: .5rem; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; display: inline-flex; align-items: center; min-height: var(--tap); padding: .625rem 1.125rem; border: 1px solid var(--muted); border-radius: var(--radius-control); background: var(--bg); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary); color: var(--surface); }
.choice:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }

.choices-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .625rem; }
.choice-card { display: grid; align-content: start; gap: .25rem; padding: 1rem 1.125rem; border-radius: 1.125rem; }
.choice-name { padding-right: 1.75rem; font-weight: 600; }
.choice-hint { font-size: var(--text-sm); font-weight: 400; color: var(--muted-deep); }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--glow); color: var(--ink); }
.choice-card::after { content: ""; position: absolute; top: 1rem; right: 1rem; width: 1.125rem; height: 1.125rem; border: 1px solid var(--muted); border-radius: 50%; }
.choice-card:has(input:checked)::after { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, transparent 50%); }

.form-send { display: grid; gap: .75rem; justify-items: start; }

@media (max-width: 70rem) { .choices-cards { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .form-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .choice { transition: none; } }

/* 2026-11-07 (Krishna: a clean dropdown): the empty "Choose one" shows in the muted grey until a choice is made */
.contact-form select:invalid { color: var(--muted); }
.contact-form select option { color: var(--ink); }
.contact-form select:has(option[value=""]:checked) { color: var(--muted); }   /* same grey for the optional "How did you find us?" */

/* 2026-11-07 (Krishna: the form looks too long): tighter groups and a shorter message box; add-ons are pills now,
   so the card styles above (.choices-cards, .choice-card) are unused but kept. */
.contact-form { gap: 1.5rem; }
.form-group { gap: 1rem; }
.form-pair { gap: 1rem; }
.contact-form textarea.field-input { min-height: 6.5rem; }
.choice { min-height: 2.75rem; padding: .5rem 1rem; }
@media (max-width: 40rem) {
  .contact-form .field-input { padding-block: .625rem; }
}
