/* The contact page (/contact): its own look over /site/pages.css (the bar and the shared bits). */
body.contact-body { margin: 0; min-height: 100vh; background: #04070a radial-gradient(ellipse 120% 620px at 50% -120px, #15303a, #04070a 70%) no-repeat; color: #f8f0dc; }
.gu-page.contact-body #page { max-width: 1080px; margin: 0 auto; padding: calc(60px + 56px) 24px 64px; box-sizing: border-box; font-family: var(--gu-sans); }
.gu-page .contact a { color: #f5dfaa; }
.gu-page .contact a:hover { color: #fff; }
.gu-page .contact a:focus-visible, .gu-page .contact button:focus-visible, .gu-page .contact select:focus-visible { outline: 2px solid #dbbc76; outline-offset: 2px; }

.gu-page .contact-hero { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 0 32px; }
.gu-page .contact-hero h1 { margin: 0; font: 400 52px/1.05 var(--gu-serif); letter-spacing: -.01em; color: #f8f0dc; }
.gu-page .contact-lead { margin: 0; font-size: 18px; line-height: 1.55; color: #d9cfbd; }

.gu-page .contact-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gu-page .contact-card { box-sizing: border-box; border: 1px solid #d7e3e73d; border-radius: 20px; background: linear-gradient(145deg, #14242ed9, #081117e6); box-shadow: 0 24px 60px #00000080, inset 0 1px #ffffff11; }
.gu-page .contact-panel { padding: 30px 32px; }
.gu-page .contact-card h2 { margin: 0; font: 400 26px/1.2 var(--gu-serif); color: #f8f0dc; }

/* the form */
.gu-page .contact-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.gu-page .contact-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gu-page .contact-field[hidden] { display: none; }
.gu-page .contact-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gu-page .contact-field label, .gu-page .contact-field legend { font-size: 14px; color: #d9cfbd; }
.gu-page .contact-field legend { padding: 0; margin-bottom: 10px; }
.gu-page .contact-form input:not([type=radio]), .gu-page .contact-form select, .gu-page .contact-form textarea {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #d7e3e75c; background: #060d12; color: #f8f0dc; font: 16px var(--gu-sans); }
.gu-page .contact-form select { max-width: 320px; appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: #060d12 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d9cfbd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 12px; }
.gu-page .contact-form textarea { height: auto; min-height: 176px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.gu-page .contact-form ::placeholder { color: #7f9396; }
.gu-page .contact-form input:focus, .gu-page .contact-form select:focus, .gu-page .contact-form textarea:focus { outline: 2px solid #dbbc76; outline-offset: 2px; border-color: #dbbc76; }
.gu-page .contact-form select option { background: #0b1820; }
.gu-page .contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gu-page .contact-hint { font-size: 13px; color: #a9babd; line-height: 1.45; }
.gu-page .contact-count { font-size: 13px; color: #a9babd; font-variant-numeric: tabular-nums; }
.gu-page .contact-count.over { color: #e7a08f; font-weight: 600; }

/* what it's about: toggle buttons (radio buttons underneath) */
.gu-page .contact-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gu-page .contact-chip { position: relative; display: inline-flex; }
.gu-page .contact-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gu-page .contact-chip label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; box-sizing: border-box; border-radius: 999px; border: 1px solid #d7e3e75c; background: #0a161ecc; color: #d9cfbd; font: 500 15px var(--gu-sans); white-space: nowrap; cursor: pointer; pointer-events: none; transition: background .15s, color .15s, border-color .15s; }
.gu-page .contact-chip input:hover + label { border-color: #dbbc76a6; color: #f8f0dc; }
.gu-page .contact-chip input:checked + label { background: #dbbc76; border-color: #dbbc76; color: #081117; }
.gu-page .contact-chip input:focus-visible + label { outline: 2px solid #dbbc76; outline-offset: 2px; }

/* mistakes */
.gu-page .contact-err { margin: 2px 0 0; color: #f0b39f; font-size: 14px; font-weight: 600; line-height: 1.4; }
.gu-page .contact-err:empty { display: none; }
.gu-page .contact-field.bad input:not([type=radio]), .gu-page .contact-field.bad select, .gu-page .contact-field.bad textarea { border-color: #e7a08fbf; box-shadow: 0 0 0 1px #e7a08f59; }
.gu-page .contact-topic.bad .contact-chip label { border-color: #e7a08f99; }
.gu-page .contact-summary { margin: 0; padding: 10px 14px; border-radius: 12px; background: #e7a08f14; border: 1px solid #e7a08f66; color: #f3cfc5; font-size: 14px; line-height: 1.45; }
.gu-page .contact-summary:empty { display: none; }
.gu-page .contact-summary:focus { outline: 2px solid #e7a08f99; outline-offset: 2px; }

/* sending */
.gu-page .contact-send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gu-page .contact-send-btn { appearance: none; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; background: #dbbc76; color: #081117; font: 600 16px var(--gu-sans); cursor: pointer; }
.gu-page .contact-send-btn:hover { background: #e8cc8c; }
.gu-page .contact-send-btn:disabled { opacity: .6; cursor: progress; }
.gu-page .contact-or-email { font-size: 14px; color: #a9babd; }
/* the honeypot: out of sight and out of reach (not display:none, which some programs skip) */
.gu-page .contact-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.gu-page .gu-turnstile:empty { display: none; }
.gu-page .gu-turnstile iframe { max-width: 100%; }

/* before you write */
.gu-page .contact-aside { display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; }
.gu-page .contact-aside h2 { font-size: 24px; }
.gu-page .contact-tip { display: flex; flex-direction: column; gap: 4px; }
.gu-page .contact-tip + .contact-tip, .gu-page .contact-privacy-wide { padding-top: 16px; border-top: 1px solid #d7e3e71f; }
.gu-page .contact-tip h3 { margin: 0; font: 600 16px var(--gu-sans); color: #f5dfaa; }
.gu-page .contact-tip p { margin: 0; font-size: 15px; line-height: 1.6; color: #c7d4d4; }
.gu-page .contact-tip q { color: #f8f0dc; }
.gu-page .contact-privacy { margin: 0; font-size: 14px; line-height: 1.5; color: #a9babd; }
.gu-page .contact-privacy-narrow { display: none; }

/* sent */
.gu-page .contact-thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0; }
.gu-page .contact-thanks h2 { font-size: 30px; outline: none; }
.gu-page .contact-thanks p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: #d9cfbd; }
.gu-page .contact-thanks p strong { color: #f8f0dc; overflow-wrap: anywhere; }
.gu-page .contact-thanks p.contact-fine { font-size: 14px; color: #a9babd; }
.gu-page .contact-tick { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #a9d8b81f; border: 1px solid #a9d8b866; color: #a9d8b8; }
.gu-page .contact-tick .gu-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gu-page .contact-thanks-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.gu-page .contact .contact-btn-outline { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #dbbc76; color: #f5dfaa; font-weight: 600; text-decoration: none; }
.gu-page .contact .contact-btn-outline:hover { background: #dbbc7624; color: #f5dfaa; }
.gu-page .contact-link { appearance: none; min-height: 44px; padding: 0 4px; border: 0; background: none; color: #f5dfaa; font: 600 16px var(--gu-sans); text-decoration: underline; text-decoration-color: #dbbc7680; text-underline-offset: 3px; cursor: pointer; }
.gu-page .contact-link:hover { color: #fff; }

@media (max-width: 900px) {
  .gu-page .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* on a phone: before you write first, then the form, then the privacy line */
  .gu-page .contact-aside { order: -1; }
  .gu-page .contact-privacy-wide { display: none; }
  .gu-page .contact-privacy-narrow { display: block; text-align: center; }
}
@media (max-width: 600px) {
  .gu-page.contact-body #page { padding: calc(60px + 28px) 16px 40px; }
  .gu-page .contact-hero { margin-bottom: 16px; gap: 8px; }
  .gu-page .contact-hero h1 { font-size: 36px; line-height: 1.1; }
  .gu-page .contact-lead { font-size: 16px; line-height: 1.5; }
  .gu-page .contact-panel { padding: 20px 16px; border-radius: 18px; }
  .gu-page .contact-aside { padding: 18px 16px; gap: 14px; border-radius: 18px; }
  .gu-page .contact-aside h2 { font-size: 21px; }
  .gu-page .contact-card h2 { font-size: 24px; }
  .gu-page .contact-tip h3 { font-size: 15px; }
  .gu-page .contact-tip p { font-size: 14px; line-height: 1.55; }
  .gu-page .contact-tip + .contact-tip { padding-top: 12px; }
  .gu-page .contact-form { gap: 18px; }
  .gu-page .contact-row { grid-template-columns: 1fr; gap: 18px; }
  .gu-page .contact-form select { max-width: none; }
  /* the topics: a strip that scrolls sideways */
  .gu-page .contact-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .gu-page .contact-chips::-webkit-scrollbar { display: none; }
  .gu-page .contact-chip { flex: 0 0 auto; }
  .gu-page .contact-send { flex-direction: column; align-items: stretch; gap: 14px; }
  .gu-page .contact-send-btn { min-height: 52px; }
  .gu-page .contact-or-email { text-align: center; }
  .gu-page .contact-privacy-narrow { margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) { .gu-page .contact-chip label { transition: none; } }
