/* Contact page only. Shared header/footer/button/chip/card styles live in
   shared/css/components.css. */

.contact-page {
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(64px, 10vw, 140px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  align-items: flex-start;
}

/* ---- Intro column ---- */

.contact-intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-intro__title {
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 850;
  text-wrap: balance;
}

.contact-intro__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-intro__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.contact-intro__email {
  font: 600 16px var(--font-mono);
  color: var(--brand);
}

.contact-intro__social {
  color: var(--muted);
}

/* ---- Form card ---- */

.contact-form {
  flex: 1 1 420px;
  min-width: 0;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__fields[hidden] {
  display: none;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact-field__label {
  display: flex;
}

.contact-field__error {
  color: var(--err);
  font-size: 14px;
  font-weight: 600;
}

.contact-field__error[hidden] {
  display: none;
}

.contact-input {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 500 16px var(--font-text);
  outline: 0;
}

.contact-input:focus {
  border-color: var(--brand);
}

.contact-input--mono {
  font-family: var(--font-mono);
}

.contact-input[aria-invalid='true'] {
  border-color: var(--err);
}

.contact-textarea {
  resize: vertical;
  line-height: 1.5;
}

/* ---- Topic chips ---- */

.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-topic {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 600 14px var(--font-text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.contact-topic.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

/* ---- Submit ---- */

.contact-submit {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--brand);
  color: var(--brand-ink);
  font: 800 17px var(--font-text);
  cursor: pointer;
}

.contact-submit:hover {
  filter: brightness(1.1);
}

/* ---- Sent confirmation ---- */

.contact-form__sent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 0;
}

.contact-form__sent[hidden] {
  display: none;
}

.contact-form__sent-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--save);
  color: var(--bg);
  display: grid;
  place-items: center;
  font: 700 18px var(--font-mono);
}

.contact-form__sent-title {
  font-size: 22px;
}

.contact-form__sent-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-form__again {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font: 600 15px var(--font-text);
  cursor: pointer;
}

/* ---- v2: the form card rises over the bottom edge of the dark hero band ---- */
.contact-page { padding-top: 0; }

.contact-form {
  position: relative;
  z-index: 2;
  margin-top: clamp(-56px, -5vw, -28px);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.6);
}
