/* Contact page. */
.phead { position: relative; overflow: hidden; background: var(--ink); color: var(--fg); padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); }
.phead::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(55% 90% at 85% 0%, rgba(109,74,255,.35), transparent 70%), radial-gradient(45% 80% at 5% 100%, rgba(255,122,26,.22), transparent 70%); }
.phead .wrap { position: relative; z-index: 1; display: grid; gap: 20px; }
.phead h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); max-width: 16em; color: #fff; }
.phead .lede { color: #b6bed0; }

.contact { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }

.form-card { padding: clamp(22px, 4vw, 40px); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.how-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); font-size: .94rem; margin: 16px 0 26px; }
.how-note svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); margin-top: 2px; }
.how-note strong { color: var(--fg); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: .94rem; color: var(--fg); }
.field .opt { font-weight: 400; color: var(--fg-3); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(16,19,26,.4); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.28); }
.field [aria-invalid="true"] { border-color: #c0392b; background: #fff8f7; }
.field__err { color: #b3261e; font-size: .88rem; font-weight: 500; min-height: 0; }
.field__err:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form__summary { color: #b3261e; font-weight: 600; font-size: .95rem; }
.form__summary:empty { display: none; }
.form-status { margin-top: 20px; padding: 18px; border-radius: var(--r-md); background: #eef9f6; border: 1px solid rgba(25,195,166,.5); color: #0e5a4c; display: grid; gap: 10px; }
.form-status[hidden] { display: none; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; overflow-wrap: anywhere; }
.form-status pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: .82rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; color: var(--fg-2); max-height: 220px; overflow: auto; }

.side { display: grid; gap: 18px; }
.side .card { padding: 24px; display: grid; gap: 10px; }
.side h3 { font-size: 1.1rem; }
.side p { color: var(--fg-2); font-size: .96rem; }
.side a.mail { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.side__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Select: replace the browser arrow (it hugs the right edge) with a chevron that has proper spacing. */
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 46px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2310131a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}
.field select:focus-visible { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23c2530a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E"); }
