/* Contact page — paired with /style.css base. CSP-friendly external file. */

.contact-main {
  padding: 56px 0 96px;
  min-height: 70vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* === Aside: contact details === */
.contact-aside .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.contact-aside h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.contact-aside .lede {
  color: var(--fg-mid);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 36px;
}

.contact-channels {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-channels li { display: flex; flex-direction: column; gap: 4px; }
.channel-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}
.contact-channels a {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.contact-channels a:hover { color: var(--brand); }
.channel-meta { font-size: 13px; color: var(--fg-mute); }
.channel-meta a { font-size: 13px; font-weight: 400; color: var(--fg-mute); text-decoration: underline; text-underline-offset: 2px; }

.contact-address {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fg-mute);
}
.contact-address strong { color: var(--fg); font-weight: 600; }

/* === Form === */
.contact-formwrap {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .contact-formwrap { padding: 24px; border-radius: 16px; }
}

.form-header { margin-bottom: 24px; }
.form-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.form-header p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 14px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.field .optional { color: var(--fg-mute); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-mute); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field.invalid input,
.field.invalid textarea { border-color: #e84a5f; }
.field.invalid input:focus,
.field.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(232,74,95,.18); }

.field-error {
  font-size: 13px;
  color: #c4324f;
  display: none;
}
.field.invalid .field-error { display: block; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.form-submit {
  width: 100%;
  justify-content: center;
  position: relative;
  margin-top: 6px;
}
.form-submit-spinner { display: none; align-items: center; }
.form-submit-spinner svg { animation: cf-spin 0.8s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

.form-submit.is-loading .form-submit-label { opacity: 0.6; }
.form-submit.is-loading .form-submit-spinner { display: inline-flex; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-fineprint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--fg-mute);
  text-align: center;
  line-height: 1.5;
}
.form-fineprint a { color: var(--fg-mid); text-decoration: underline; text-underline-offset: 2px; }

/* === Success / error states === */
.form-success,
.form-error {
  text-align: center;
  padding: 24px 8px 8px;
}
.form-success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, #1ec76a 15%, var(--bg-elev));
  color: #1ea24f;
  margin-bottom: 16px;
}
.form-success h2,
.form-error h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.form-success p,
.form-error p {
  color: var(--fg-mid);
  font-size: 15px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.form-error h2 { color: #c4324f; }
