/* =====================================================================
   Support page — styles used ONLY on this page.
   Shared styles (colours, buttons, nav, footer) are in /assets/css/site.css.
   Comments starting with "/* ---" mark each section of the page, top to bottom.

   Page sections:
     1. Hero      — "Talk to a person." heading + intro (.hero)
     2. Contact   — the support form (.form), the "Delivered" success card
                    (.done), the error line (.sp-error), the "Email us
                    instead" fallback panel (.sp-fallback), and the help
                    cards in the right-hand column (.side / .help)
   ===================================================================== */
.h-hero{font-size:clamp(56px,8.2vw,124px);line-height:.9;letter-spacing:-.055em;font-weight:300;margin:0}
.h-3{font-size:20px;line-height:1.25;letter-spacing:-.015em;font-weight:500;margin:0}
.lead{font-size:clamp(18px,1.5vw,21px);line-height:1.5;color:var(--text2);margin:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px}

/* --- PAGE --- */
.hero{padding:96px 0 72px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:64px;align-items:end;margin-top:40px}
.grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px;align-items:start}
.form{padding:44px;display:flex;flex-direction:column;gap:24px}
.field{display:flex;flex-direction:column;gap:8px}
.field label,.legend{font-size:14px;font-weight:500;color:var(--text)}
.input,.textarea{width:100%;min-height:52px;padding:14px 16px;border-radius:12px;border:1px solid var(--line2);background:var(--field);color:var(--text);font:inherit;font-size:15px;transition:border-color .1s ease,box-shadow .1s ease}
.textarea{min-height:160px;resize:vertical;line-height:1.55}
.input::placeholder,.textarea::placeholder{color:var(--text3)}
.input:focus,.textarea:focus{outline:none;border-color:var(--vborder);box-shadow:0 0 0 3px var(--vbg)}
.row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.topics{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0}
.topic{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:9999px;border:1px solid var(--line2);font-size:14px;color:var(--text2);cursor:pointer;transition:background-color .1s ease,border-color .1s ease,color .1s ease}
.topic:hover{color:var(--text);border-color:var(--vborder)}
.topic:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.topic-on,.topic-on:hover{background:var(--vbg);border-color:var(--vborder);color:var(--text)}
.hint{font-size:13px;color:var(--text3);margin:0}
.done{padding:56px 44px;display:flex;flex-direction:column;gap:20px;align-items:flex-start;border-color:var(--posborder)}
.done-i{width:64px;height:64px;border-radius:9999px;background:var(--posbg);border:1px solid var(--posborder);color:var(--pos);display:flex;align-items:center;justify-content:center}
.side{display:flex;flex-direction:column;gap:12px}
.help{padding:24px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:16px;text-decoration:none;transition:border-color .2s ease}
a.help:hover{border-color:var(--vborder)}
.help-i{width:40px;height:40px;border-radius:9999px;background:var(--vbg);color:var(--accent);display:flex;align-items:center;justify-content:center}
.mail{font-size:22px;font-weight:400;letter-spacing:-.02em;color:var(--accent);text-decoration:none;margin-top:4px;display:inline-block}
.mail:hover{text-decoration:underline;text-underline-offset:4px}
.foot{border-top:1px solid var(--line);padding:72px 0 48px;margin-top:160px}

/* --- CONTACT FORM: sending states (added for the real email form) --- */
/* Anything with the "hidden" attribute stays hidden, even if it is a flex/grid box (e.g. the success card). */
main [hidden]{display:none !important}
/* Success card heading receives keyboard focus after sending; no outline box needed on a heading. */
#sp-done-h:focus{outline:none}
/* Error line under the Send button, e.g. "Please check your email address." */
.sp-error{margin:0;font-size:14px;line-height:1.5;color:var(--amb)}
/* "We couldn't send your message automatically" panel with the "Email us instead" button */
.sp-fallback{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;border-radius:12px;background:var(--ambbg);border:1px solid var(--ambborder)}
.sp-fallback .mail{margin-top:0;word-break:break-all}
.sp-fallback .btn{margin-top:4px}

/* Tablets and small laptops */
@media (max-width:1080px){
 .hero-grid,.grid{grid-template-columns:minmax(0,1fr);gap:24px}
}

/* Phones */
@media (max-width:720px){
 .hero{padding:48px 0 40px}
 .form,.done{padding:24px}
 .row2{grid-template-columns:minmax(0,1fr)}
}
