/* ================= Contact modal ================= */
.cf {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.cf[hidden] { display: none; }

.cf__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 9, 0.62);
  backdrop-filter: blur(10px);
}

.cf__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(94vh, 940px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--panel);
  color: var(--on-dark-3);
  border-radius: var(--r-panel);
  padding: clamp(var(--s-3), 3.2vw, var(--s-5));
}

.cf__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  color: var(--on-dark-3);
  transition: color .25s var(--ease-out);
}
.cf__close:hover { color: var(--accent); }

.cf__head { margin-bottom: clamp(var(--s-3), 2.6vw, var(--s-4)); }
.cf__eyebrow { color: var(--accent); display: block; }
.cf__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: var(--anton-lh);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--on-dark-1);
  margin: 6px 0 10px;
}
.cf__sub {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
  color: var(--on-dark-3);
  max-width: 52ch;
}
.cf__sub a { color: var(--on-dark-1); text-decoration: underline; text-underline-offset: 3px; }
.cf__sub a:hover { color: var(--accent); }

/* ---- fields ----
   Two columns so the whole form clears the fold: the send button is
   reachable without scrolling on a laptop screen. */
.cf__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2) clamp(var(--s-3), 3vw, var(--s-4));
}
@media (max-width: 680px) { .cf__cols { grid-template-columns: 1fr; } }

.cf__col { display: flex; flex-direction: column; gap: 14px; }
.cf__field { display: block; }
.cf__field--grow { flex: 1; display: flex; flex-direction: column; }
.cf__field--grow .cf__textarea { flex: 1; }

.cf__label { display: block; color: var(--on-dark-2); margin-bottom: 6px; }
.cf__opt { color: var(--on-dark-dim); }

.cf__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-1);
  background: rgba(235, 233, 228, 0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-chip);
  padding: 10px 13px;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.cf__input::placeholder { color: var(--on-dark-dim); }
.cf__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(235, 233, 228, 0.07);
}
.cf__textarea { resize: vertical; min-height: 96px; }

select.cf__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 18px center, right 13px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
select.cf__input option { background: var(--panel); color: var(--on-dark-1); }

/* ---- radio chips ---- */
.cf__fieldset { border: 0; padding: 0; margin: 0; }
.cf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf__chip { position: relative; display: inline-block; }
.cf__chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  margin: 0;
  cursor: pointer;
}
.cf__chip span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  border: 1px solid var(--rule-dark);
  border-radius: 99px;
  padding: 7px 12px;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.cf__chip:hover span { color: var(--on-dark-1); border-color: var(--on-dark-dim); }
.cf__chip input:checked + span {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.cf__chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- foot ---- */
.cf__error { color: var(--accent); margin-bottom: var(--s-2); }
.cf__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule-dark);
}
.cf__note { color: var(--on-dark-dim); }
.cf__send { cursor: pointer; }

.cf__done { text-align: left; }
.cf__again { margin-top: var(--s-4); }

@media (prefers-reduced-motion: reduce) {
  .cf__panel, .cf__input, .cf__chip span { transition: none; }
}

/* short laptop screens: shed the explanatory line and tighten further */
@media (max-height: 800px) {
  .cf__sub { display: none; }
  .cf__title { font-size: clamp(1.5rem, 3.2vw, 2rem); }
  .cf__col { gap: 11px; }
  .cf__textarea { min-height: 78px; }
  .cf__panel { padding: var(--s-3); }
}
@media (max-height: 640px) {
  .cf__head { margin-bottom: var(--s-2); }
  .cf__title { font-size: 1.4rem; }
}
