/* WrightHaven — community-page inquiry forms restyled to match the
   Contact Us smart form (wh-contact-form.css). Scoped to #contact so
   only the landing-page inquiry section is affected; Elementor markup
   and wh-hsforms.js submission stay as-is. */

/* --- section shell --------------------------------------------------- */

section#contact.elementor-section,
section#contact.contact,
#contact.elementor-section {
  background-color: #141414 !important;
  background-image: none !important;
  padding: 84px 24px !important;
}

#contact > .elementor-container {
  max-width: 820px;
  margin: 0 auto;
}

#contact .elementor-widget-wrap {
  /* Elementor column padding can fight the centered form column */
}

/* Heading + gold divider (mirrors .wh-cform-heading / .wh-cform-divider) */
#contact .elementor-heading-title {
  color: #ffffff !important;
  font-family: "Lato", sans-serif !important;
  font-weight: 300 !important;
  font-size: 44px !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin: 0 0 18px !important;
}

#contact .elementor-widget-divider {
  --divider-color: #9a8c57;
  margin: 0 0 18px !important;
}

#contact .elementor-widget-divider .elementor-divider-separator {
  border-block-start-color: #9a8c57 !important;
  border-top-color: #9a8c57 !important;
  background-color: #9a8c57 !important;
  width: 64px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-block-start-width: 2px !important;
}

/* Optional intro / text widgets under the heading */
#contact .elementor-widget-text-editor,
#contact .elementor-widget-text-editor p {
  color: #cfcac0 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

#contact .elementor-widget-text-editor {
  margin: 0 0 28px !important;
}

/* Hide multi-step chrome if a form still has it (Granwood flattens via JS) */
#contact .e-form__indicators,
#contact .e-form__buttons__wrapper__button-previous,
#contact .e-form__buttons__wrapper__button-next {
  display: none !important;
}

/* --- form layout ----------------------------------------------------- */

#contact .elementor-form {
  max-width: 820px;
  margin: 0 auto;
}

#contact .elementor-form-fields-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: flex-start;
}

/* Elementor col widths → two-column grid like Contact Us */
#contact .elementor-field-group {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

#contact .elementor-field-group.elementor-col-50,
#contact .elementor-field-group.elementor-col-33,
#contact .elementor-field-group.elementor-col-66 {
  width: calc(50% - 8px) !important;
  max-width: none !important;
  flex: 0 0 calc(50% - 8px) !important;
}

#contact .elementor-field-group.elementor-col-100,
#contact .elementor-field-type-textarea,
#contact .elementor-field-type-acceptance,
#contact .elementor-field-type-html,
#contact .elementor-field-type-submit {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
}

/* --- labels ---------------------------------------------------------- */

/* Labels were screen-reader-only; show them like Contact Us */
#contact .elementor-field-label,
#contact .elementor-field-label.elementor-screen-only {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;

  display: block !important;
  color: #b9b2a1 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
}

/* --- inputs / selects / textarea ------------------------------------- */

#contact .elementor-field-textual,
#contact .elementor-field-group input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
#contact .elementor-field-group select,
#contact .elementor-field-group textarea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  background-color: #1e1e1e !important;
  border: 1px solid #3a382f !important;
  border-radius: 3px !important;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  padding: 12px 14px !important;
  min-height: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}

#contact .elementor-field-group select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a8c57' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  padding-right: 38px !important;
  cursor: pointer;
}

#contact .elementor-field-group select option {
  color: #141414;
  background-color: #ffffff;
}

#contact .elementor-field-group textarea {
  min-height: 120px !important;
  resize: vertical;
}

#contact .elementor-field-group input:focus,
#contact .elementor-field-group select:focus,
#contact .elementor-field-group textarea:focus {
  outline: none !important;
  border-color: #9a8c57 !important;
  box-shadow: none !important;
}

/* Hide Elementor's own caret icon — we draw ours on the select */
#contact .select-caret-down-wrapper {
  display: none !important;
}

#contact .elementor-select-wrapper {
  position: relative;
}

/* Placeholder-looking first options (value == label text) read muted */
#contact .elementor-field-group select:invalid,
#contact .elementor-field-group select option[value=""],
#contact .elementor-field-group select option[value="Home Type*"],
#contact .elementor-field-group select option[value="Community*"],
#contact .elementor-field-group select option[value="Brokerage*"],
#contact .elementor-field-group select option[value="Price Range*"] {
  color: #8f8a7c;
}

/* --- acceptance / consent -------------------------------------------- */

#contact .elementor-field-type-acceptance {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px !important;
}

#contact .elementor-field-type-acceptance .elementor-field-option {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

#contact .elementor-field-type-acceptance input[type="checkbox"] {
  margin: 4px 0 0 !important;
  flex: none;
  width: auto !important;
  accent-color: #9a8c57;
}

#contact .elementor-field-type-acceptance label,
#contact .elementor-field-type-acceptance .elementor-field-option label {
  color: #cfcac0 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  position: static !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

/* --- submit ---------------------------------------------------------- */

#contact .elementor-field-type-submit {
  text-align: center !important;
  margin-top: 10px !important;
}

#contact .elementor-field-type-submit .elementor-button,
#contact .elementor-field-type-submit button[type="submit"] {
  display: inline-block !important;
  width: 100% !important;
  max-width: 320px !important;
  background-color: #9a8c57 !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 3px !important;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 16px 24px !important;
  margin: 0 auto !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
  line-height: 1.2 !important;
  fill: #ffffff !important;
}

#contact .elementor-field-type-submit .elementor-button:hover,
#contact .elementor-field-type-submit button[type="submit"]:hover {
  background-color: #857849 !important;
  color: #ffffff !important;
}

#contact .elementor-field-type-submit .elementor-button:disabled,
#contact .elementor-field-type-submit button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

#contact .elementor-button-content-wrapper,
#contact .elementor-button-text {
  color: #ffffff !important;
  justify-content: center;
}

/* Success / error messages injected by wh-hsforms.js */
#contact .elementor-form [role="alert"],
#contact .elementor-message {
  color: #ffffff !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  text-align: center !important;
  padding: 24px 8px !important;
}

/* --- small screens --------------------------------------------------- */

@media (max-width: 767px) {
  section#contact.elementor-section,
  section#contact.contact,
  #contact.elementor-section {
    padding: 56px 18px !important;
  }

  #contact .elementor-heading-title {
    font-size: 32px !important;
  }

  #contact .elementor-field-group.elementor-col-50,
  #contact .elementor-field-group.elementor-col-33,
  #contact .elementor-field-group.elementor-col-66 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}
