/* ── Contact Gate Overlay ─────────────────────────────────────────────────── */

.contact-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #05050a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  font-family: 'Source Code Pro', monospace;
  overflow-y: auto;
}

/* display:flex above overrides the UA [hidden]{display:none} rule — restore it */
.contact-gate[hidden] {
  display: none;
}

.contact-gate--done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.contact-gate__inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-gate__logo {
  width: clamp(120px, 40vw, 180px);
  margin: 0 auto;
  display: block;
}

.contact-gate__title {
  text-align: center;
  font-size: clamp(1rem, 5vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0;
}

.contact-gate__sub {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-field__opt {
  font-weight: 400;
  opacity: 0.65;
  text-transform: none;
  letter-spacing: 0;
}

.contact-field input[type='email'],
.contact-field input[type='text'],
.contact-field input[type='tel'] {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 16px; /* must be ≥16px to prevent iOS auto-zoom on focus */
  color: #fff;
  outline: none;
  transition: border-color 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-field input:focus {
  border-color: rgba(76, 217, 100, 0.55);
}

.contact-field input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.contact-field--check {
  margin-top: 0.2rem;
}

.contact-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.contact-check input[type='checkbox'] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #4cd964;
  cursor: pointer;
}

.contact-check strong {
  color: #4cd964;
  font-weight: 700;
}

.contact-error {
  font-size: 0.72rem;
  color: #ff6b6b;
  margin: 0;
  letter-spacing: 0.03em;
}

.contact-gate__btn {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: #4cd964;
  color: #030a04;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.1s;
}

.contact-gate__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

.contact-gate__btn:not(:disabled):hover {
  opacity: 0.9;
}

.contact-gate__btn:not(:disabled):active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .contact-gate--done {
    transition: none;
  }
  .contact-gate__btn {
    transition: none;
  }
}
