.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.5rem;
}
.section--light .form-field label { color: var(--text-on-light-muted); }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.95em 1.1em;
  background: rgba(243,237,228,0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  transition: border-color var(--dur-fast) ease;
}
.section--light .form-field input,
.section--light .form-field textarea,
.section--light .form-field select {
  background: rgba(26,23,20,0.03);
  border-color: var(--color-border-light);
  color: var(--text-on-light);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-accent);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* The closed <select> inherits the themed text color above, but browsers
   render the open option list with their own default (usually white)
   popup background - only `color`/`background-color` on <option> itself
   are respected there, so without this the light theme text becomes
   invisible against that default light popup. */
.form-field select option,
.form-field select optgroup {
  background: var(--charcoal-900);
  color: var(--text-on-dark);
}
.section--light .form-field select option,
.section--light .form-field select optgroup {
  background: var(--cream-100);
  color: var(--text-on-light);
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}
.form-status.is-success { display: block; background: rgba(184,151,104,0.12); border: 1px solid var(--color-accent); color: var(--color-accent); }
.form-status.is-error { display: block; background: rgba(200,60,60,0.1); border: 1px solid #c85050; color: #e08787; }

.form-submit { width: 100%; justify-content: center; }

.contact-form-panel {
  background: rgba(243,237,228,0.03);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  backdrop-filter: blur(6px);
}
.contact-form-panel h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.4rem; }
.contact-form-panel p.text-muted { margin-bottom: 1.4rem; font-size: 0.9rem; }
