/* ============================================================
   CONTACT.CSS   v5
   FIX: statusPulse animation now in header.css (shared)
   FIX: form-grid gap + margin alignment
   FIX: select custom arrow with correct background-color
   ============================================================ */
/* Contact page-hero: enough bottom padding so form section starts clearly */
.page-hero { padding:calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl); text-align:center; position:relative; overflow:hidden; }
.page-hero-bg { position:absolute; inset:0; background:radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201,169,110,0.065) 0%, transparent 70%); pointer-events:none; }
.page-hero-content { position:relative; z-index:2; }
.page-hero p { max-width:460px; margin:0 auto; }

.contact-layout { display:grid; grid-template-columns:1.15fr 1fr; gap:var(--space-lg); max-width:1100px; margin:0 auto; }

/* ── Form ── */
.contact-form-wrap { padding:2.6rem; }
.form-title    { font-family:var(--font-serif); font-size:1.5rem; font-weight:400; margin-bottom:0.35rem; color:var(--text); }
.form-subtitle { font-size:0.82rem; color:var(--text-dim); margin-bottom:2rem; }

.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
@media (max-width: 480px) {
  /* CSS-4 FIX: collapse 2-col name grid to single column on very small screens */
  .form-grid { grid-template-columns: 1fr; }
}
/* FIX: groups inside grid never add their own bottom margin */
.form-grid > .form-group { margin-bottom:0; }
.form-group { display:flex; flex-direction:column; gap:0.4rem; margin-bottom:1rem; }
.form-group.full { grid-column:1/-1; }

.form-label { font-size:0.63rem; letter-spacing:0.22em; text-transform:uppercase; color:var(--gold); font-family:var(--font-sans); font-weight:400; }

.form-input,
.form-select,
.form-textarea {
  background:rgba(255,255,255,0.04); border:1px solid rgba(201,169,110,0.2);
  color:var(--text); padding:0.75rem 1rem;
  font-family:var(--font-sans); font-size:0.85rem; font-weight:300;
  border-radius:var(--radius-sm); width:100%; line-height:1.5;
  transition:border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input::placeholder, .form-textarea::placeholder { color:var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline:none; border-color:var(--gold); background:rgba(255,255,255,0.055); box-shadow:0 0 0 3px rgba(201,169,110,0.08); }
.form-input.input-error, .form-textarea.input-error, .form-select.input-error { border-color:var(--error); background:var(--error-bg); }
.form-input.is-locked {
  color: var(--text-dim);
  background: rgba(255,255,255,0.025);
  border-color: rgba(201,169,110,0.14);
  cursor: not-allowed;
}
.form-input.is-locked:focus {
  border-color: rgba(201,169,110,0.2);
  box-shadow: none;
}

/* FIX: select arrow — use background-color not rgba shorthand */
.form-select {
  /* M-2/M-3 FIX: deduplicated — was patched twice */
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-color: rgba(255,255,255,0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}
.form-select option { background:var(--dark-3); color:var(--text); }
.form-textarea { resize:vertical; min-height:130px; }

.form-honeypot { position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; tabindex:-1; }
.form-submit   { width:100%; padding:0.95rem !important; font-size:0.76rem !important; margin-top:0.5rem; touch-action:manipulation; /* M-6: removes 300ms tap delay */ }
.form-note     { font-size:0.7rem; color:var(--text-muted); text-align:center; margin-top:0.8rem; }
.form-note a   { color:var(--gold); }

/* ── Sidebar ── */
.contact-sidebar { display:flex; flex-direction:column; gap:1.2rem; }
.contact-info-card { padding:2rem; }
.contact-info-card h3 { font-family:var(--font-serif); font-size:1.2rem; font-weight:400; margin-bottom:1.4rem; color:var(--text); }
.contact-item { display:flex; align-items:flex-start; gap:1rem; margin-bottom:1.3rem; padding-bottom:1.3rem; border-bottom:1px solid var(--glass-border); }
.contact-item:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.contact-icon { flex-shrink:0; width:38px; height:38px; background:var(--gold-dim); border:1px solid var(--glass-border); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; color:var(--gold); font-size:0.88rem; }
.contact-item-label { font-size:0.6rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); display:block; margin-bottom:0.22rem; }
.contact-item-value { font-size:0.85rem; color:var(--text); }
.contact-item-value a { color:var(--text); }
.contact-item-value a:hover { color:var(--gold); }

.availability-card { padding:1.8rem; text-align:center; }
/* Note: statusPulse @keyframes lives in header.css and is globally available */
.avail-dot { width:10px; height:10px; background:var(--success); border-radius:50%; margin:0 auto 0.8rem; box-shadow:0 0 12px rgba(62,207,142,0.5); animation:statusPulse 2.2s infinite; }
.availability-card h4 { font-family:var(--font-serif); font-size:1.1rem; font-weight:400; margin-bottom:0.5rem; color:var(--text); }
.availability-card p  { font-size:0.8rem; color:var(--text-dim); margin-bottom:1.2rem; line-height:1.65; }

.social-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.65rem; padding:1.8rem; }
.social-grid h3 { font-family:var(--font-serif); font-size:1.1rem; font-weight:400; margin-bottom:1.2rem; grid-column:1/-1; color:var(--text); }

/* ── Responsive ── */
@media (max-width:960px) {
  .contact-layout { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid > .form-group { margin-bottom:0; }
  .contact-form-wrap { padding:2rem 1.6rem; }
}

/* ── Additional responsive for sidebar cards ── */
@media (max-width: 560px) {
  .availability-card { padding: 1.4rem; }
  .contact-info-card { padding: 1.4rem; }
  .social-grid { padding: 1.4rem; grid-template-columns: 1fr; }
}
