/* ============================================================
   Identity Alley — Contact Overlay (shared, sitewide)
   ============================================================
   Used on every page via the Contact link/button in the nav.
   Relies on the same tokens already defined in global.css
   (--bg, --text, --text-dim, --subtle, --border) so it inherits
   the page's look automatically.

   ACCENT COLOR NOTE: Music pages use --gold and Community pages
   use --accent for their section color — two different variable
   names. Rather than guess which one is in scope on every page,
   this file defines its own --overlay-accent (defaulted to the
   gold value, #b89a5a, since Music is the most-built section)
   that the overlay uses everywhere. If you want the overlay to
   match Community's sage or Cars' red instead of gold on those
   sections, add one small override — e.g. in community.css:
     .contact-overlay { --overlay-accent: var(--accent); }
   — and it'll pick up sage automatically there. Left as a
   follow-up rather than guessed at, given the time constraint
   this batch was built under.
   ============================================================ */

.contact-overlay {
  --overlay-accent: #b89a5a;
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.contact-overlay.active { opacity: 1; pointer-events: all; }

.contact-card {
  background: #181c24;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  padding: 44px 40px 36px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.contact-overlay.active .contact-card { transform: translateY(0); }

.contact-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.contact-close:hover { color: var(--text); }

.contact-step { display: none; }
.contact-step.active { display: block; }

.contact-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 8px;
}
.contact-sub {
  font-size: 13px;
  line-height: 1.7;
  color: var(--subtle);
  margin: 0 0 28px;
}

.contact-choices { display: grid; gap: 10px; }
.contact-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(240,237,230,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.contact-choice:hover {
  border-color: color-mix(in srgb, var(--overlay-accent) 50%, transparent);
  background: color-mix(in srgb, var(--overlay-accent) 6%, transparent);
}
.contact-choice .arrow {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.contact-choice:hover .arrow { border-color: var(--overlay-accent); }
.contact-choice .arrow svg { width: 10px; height: 10px; color: var(--overlay-accent); }

.contact-back {
  background: none; border: none;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-back:hover { color: var(--text); }
.contact-back svg { width: 12px; height: 12px; }

.field-group { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--overlay-accent);
  margin-bottom: 8px;
}
.field-input, .field-textarea {
  width: 100%;
  background: rgba(240,237,230,0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 12px;
}
.field-input:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--overlay-accent);
}
.field-textarea { resize: vertical; min-height: 80px; }

.contact-submit {
  width: 100%;
  margin-top: 20px;
  background: var(--overlay-accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.contact-submit:hover { opacity: 0.88; }
.contact-submit:disabled { opacity: 0.5; cursor: default; }

.contact-error {
  font-size: 12px;
  color: #d98b8b;
  margin: -8px 0 16px;
  display: none;
}
.contact-error.active { display: block; }

.contact-confirm { text-align: center; padding: 20px 0 6px; }
.contact-confirm svg { width: 42px; height: 42px; color: var(--overlay-accent); margin-bottom: 18px; }
.contact-confirm p { font-size: 13px; line-height: 1.7; color: var(--subtle); max-width: 340px; margin: 0 auto; }

/* Button-ified nav-contact: the overlay trigger is now a
   <button>, not an <a>, so it needs its own reset to keep
   matching the existing .nav-contact link styling exactly. */
button.nav-contact {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 480px) {
  .contact-card { padding: 36px 24px 28px; }
  .contact-title { font-size: 26px; }
}
