/* ════════════════════════════════════════════════════════════════════
   LMA CONTACT PAGE — V15.1
   ════════════════════════════════════════════════════════════════════
   Built on assets/css/lma-editorial.css (.lma-ed tokens/components) —
   the same foundation News/About use. No branding tokens redefined
   here; only --ed-error/--ed-success were added (additively) to that
   shared file for this feature. Scoped entirely under .lma-contact.
   ════════════════════════════════════════════════════════════════════ */

.lma-contact { overflow-x: clip; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.lma-contact-hero {
  position: relative;
  padding: 170px 0 110px;
  background: var(--ed-bg);
  overflow: hidden;
}
.lma-contact-hero.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--lma-contact-hero-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.36;
}
.lma-contact-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.10), transparent 55%),
              linear-gradient(180deg, rgba(6,6,8,0.15) 0%, var(--ed-bg) 95%);
}
.lma-contact-hero-inner { position: relative; z-index: 1; }

/* ── Form + info grid ─────────────────────────────────────────────── */
.lma-contact-main-section { padding-top: 30px; }
.lma-contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.lma-contact-grid--form-only { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
@media (max-width: 900px) { .lma-contact-grid { grid-template-columns: 1fr; gap: 50px; } }

/* ── Floating-label form ──────────────────────────────────────────── */
.lma-contact-form { display: flex; flex-direction: column; gap: 26px; }
.lma-contact-field { position: relative; }

.lma-contact-input,
.lma-contact-textarea,
.lma-contact-select {
  width: 100%;
  padding: 26px 20px 10px;
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-r-sm);
  color: var(--ed-text);
  font-family: var(--ed-font-body);
  /* V15.1 — iOS Safari auto-zooms any form control focused with a
     computed font-size under 16px (same root cause fixed on the Entry
     Form in V14.3.6). 16px here is a hard floor, not a target to tune
     down later. */
  font-size: 16px;
  outline: none;
  transition: border-color var(--ed-t), background var(--ed-t);
  appearance: none;
  -webkit-appearance: none;
}
.lma-contact-input   { height: 62px; }
.lma-contact-textarea { min-height: 150px; resize: vertical; padding-top: 26px; }
.lma-contact-select  { height: 62px; cursor: pointer; }
.lma-contact-select option { background: var(--ed-bg-elevated); color: var(--ed-text); }

.lma-contact-input:focus,
.lma-contact-textarea:focus,
.lma-contact-select:focus {
  border-color: var(--ed-gold-border);
  background: var(--ed-bg-elevated-2);
}

/* Floating labels — text/email/textarea use the placeholder-shown
   trick (all these inputs use placeholder=" " deliberately, so the
   label overlaps the empty field and lifts on focus/fill). */
.lma-contact-field label {
  position: absolute;
  left: 20px;
  top: 32px;
  font-size: 16px;
  color: var(--ed-faint);
  pointer-events: none;
  transition: var(--ed-t);
  transform-origin: left top;
}
.lma-contact-input:focus + label,
.lma-contact-input:not(:placeholder-shown) + label,
.lma-contact-textarea:focus + label,
.lma-contact-textarea:not(:placeholder-shown) + label {
  top: 11px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ed-gold);
}
/* Select can't use :placeholder-shown (no such concept for <select>),
   so its label stays permanently in the "floated" position — this
   still reads as consistent with the other fields, just always-on. */
.lma-contact-field--select label {
  top: 11px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ed-faint);
}
.lma-contact-select:focus ~ label { color: var(--ed-gold); }

/* ── Validation states ────────────────────────────────────────────── */
.lma-contact-field.has-error .lma-contact-input,
.lma-contact-field.has-error .lma-contact-textarea,
.lma-contact-field.has-error .lma-contact-select {
  border-color: var(--ed-error);
  background: var(--ed-error-dim);
}
.lma-contact-error {
  display: none;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ed-error);
  padding-left: 2px;
}
.lma-contact-field.has-error .lma-contact-error { display: block; }

/* ── Submit button + status ───────────────────────────────────────── */
.lma-contact-submit { margin-top: 6px; align-self: flex-start; position: relative; }
.lma-contact-submit[disabled] { opacity: 0.7; cursor: default; }
.lma-contact-submit.is-loading .lma-contact-submit-label::after {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  margin-left: 10px;
  border: 2px solid rgba(10,7,0,0.35);
  border-top-color: #0A0700;
  border-radius: 50%;
  vertical-align: -2px;
  animation: lma-contact-spin 700ms linear infinite;
}
@keyframes lma-contact-spin { to { transform: rotate(360deg); } }

.lma-contact-form-status {
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: var(--ed-r-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}
.lma-contact-form-status.is-success { display: block; background: var(--ed-success-dim); border: 1px solid rgba(76,175,125,0.3); color: var(--ed-success); }
.lma-contact-form-status.is-error   { display: block; background: var(--ed-error-dim); border: 1px solid rgba(226,87,75,0.3); color: var(--ed-error); }

@media (prefers-reduced-motion: reduce) {
  .lma-contact-submit.is-loading .lma-contact-submit-label::after { animation: none; }
}

/* ── Info panel ───────────────────────────────────────────────────── */
.lma-contact-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 34px;
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-r);
  height: fit-content;
  overflow: hidden;
}
.lma-contact-info::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.10), transparent 70%);
  pointer-events: none;
}
.lma-contact-info-item { position: relative; display: flex; flex-direction: column; gap: 6px; }
.lma-contact-info-item .lma-ed-icon-badge { margin-bottom: 6px; }
.lma-contact-info-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-faint);
}
.lma-contact-info-value {
  font-family: var(--ed-font-display);
  font-size: 1.02rem;
  color: var(--ed-text);
  transition: var(--ed-t);
}
.lma-contact-info-value:hover { color: var(--ed-gold-light); }

/* ── CTA ──────────────────────────────────────────────────────────── */
.lma-contact-cta {
  position: relative;
  padding: 120px 0 130px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.10), transparent 60%), var(--ed-bg);
  border-top: 1px solid var(--ed-border);
  overflow: hidden;
}
.lma-contact-cta.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--lma-contact-cta-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.lma-contact-cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ed-bg) 0%, rgba(6,6,8,0.5) 40%, var(--ed-bg) 100%); }
.lma-contact-cta-inner { position: relative; z-index: 1; }
.lma-contact-cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }

@media (max-width: 768px) {
  .lma-contact-hero { padding: 120px 0 70px; }
  .lma-contact-cta  { padding: 80px 0 90px; }
  .lma-contact-info { padding: 30px 24px; }
}
