.contact-section { padding-top: 3.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-intro {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 480px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

legend {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.form-field label span {
  font-weight: 400;
  opacity: 0.65;
  font-size: 0.85rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.form-field textarea { resize: vertical; }

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 0;
}

/* Empty by default — no box/border until a status message is set via JS */
.form-status:empty {
  margin-top: 0;
}

/* Compound selectors (.form-status.form-status--X) are used here on purpose —
   style.css has a global `.section--forest p { color: white; }` rule that is
   MORE specific than a single `.form-status--success` class alone (class+element
   beats a lone class), so a single-class selector was silently losing that fight
   and forcing the text white regardless of color set here. The two-class
   selector wins the specificity battle and makes the color actually apply. */

.form-status.form-status--info {
  color: #ffd7cd;
}

.form-status.form-status--success {
  display: block;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--kelly);
  font-weight: 700;
  border: 2px solid var(--kelly);
}

.form-status.form-status--error {
  display: block;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rust-dark);
  font-weight: 700;
  border: 2px solid var(--rust);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { height: 260px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
