/*========================================================
  Contact page form (Phase 4E)
  Scoped entirely under #contact-page-form and
  #contact-form-status so it cannot affect any other
  page or the shared legacy contact-form.css rules.
========================================================*/

/* Two-column layout (Phase 4G): form on the left, direct
   contact details on the right, stacking on narrow screens.
   Self-contained flexbox, not dependent on the legacy grid.css
   column system, so mobile behaviour is guaranteed rather than
   inherited from code not fully audited here. */
#contact-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
}

#contact-columns .contact-form-column {
  flex: 1 1 320px;
  min-width: 280px;
}

#contact-columns .contact-info-column {
  flex: 1 1 220px;
  min-width: 220px;
  padding-top: 4px;
}

#contact-columns .contact-info-column h3 {
  margin: 0 0 10px;
}

@media only screen and (max-width: 700px) {
  #contact-columns {
    flex-direction: column;
    gap: 10px;
  }
}

#contact-form-status {
  max-width: 560px;
  margin: 15px 0;
  padding: 12px 16px;
  border-radius: 3px;
  font: 600 15px/1.4 'Open Sans', sans-serif;
}

#contact-page-form {
  max-width: 560px;
  margin: 15px 0 10px;
}

#contact-page-form .field {
  margin-bottom: 20px;
}

#contact-page-form label {
  display: block;
  font: 600 15px/1.4 'Open Sans', sans-serif;
  color: #333333;
  margin-bottom: 6px;
}

#contact-page-form input[type="text"],
#contact-page-form input[type="email"],
#contact-page-form textarea {
  box-sizing: border-box;
  width: 100%;
  font: 400 16px/1.4 'Open Sans', sans-serif;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background: #ffffff;
  color: #333333;
}

#contact-page-form textarea {
  min-height: 150px;
  resize: vertical;
}

#contact-page-form input[type="text"]:focus,
#contact-page-form input[type="email"]:focus,
#contact-page-form textarea:focus {
  outline: none;
  border-color: #b31328;
  box-shadow: 0 0 0 2px rgba(179, 19, 40, 0.25);
}

#contact-page-form .contact-field-extra {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#contact-page-form .contact-page-submit {
  display: inline-block;
  font: 600 16px/1 'Open Sans', sans-serif;
  padding: 12px 28px;
  background: #b31328;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

#contact-page-form .contact-page-submit:hover {
  background: #8f0f20;
}

#contact-page-form .contact-page-submit:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  background: #8f0f20;
}

@media only screen and (max-width: 600px) {
  #contact-page-form,
  #contact-form-status {
    max-width: 100%;
  }
  /* 16px prevents iOS Safari zooming in on focus */
  #contact-page-form input[type="text"],
  #contact-page-form input[type="email"],
  #contact-page-form textarea {
    font-size: 16px;
  }
}
