/* Community inquiry forms (Cherrywood, Creek Bank Meadows, Granwood Gate)
   styled like The Pines "Book a meeting" form (wh-pines-contact.css).
   Look only: markup, field ids and label text stay as they are because
   wh-hsforms.js maps HubSpot fields by them.

   The doubled #contact outranks the older rules in wh-community-form.css,
   wh-ds.css, wrighthaven-custom.css and the inline page styles, which all
   use one id plus !important. */

html body #contact#contact {
  background-color: #2E3227 !important;
  background-image: none !important;
  padding: clamp(3.5rem, 6.5vw, 5.25rem) 1.5rem !important;
}

/* --- heading block --------------------------------------------------- */

html body #contact#contact .elementor-heading-title {
  margin: 0 0 14px !important;
  color: #F3EEE6 !important;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif) !important;
  font-weight: 500 !important;
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  text-wrap: balance;
}
html body #contact#contact .elementor-widget-divider { margin: 0 0 18px !important; }
html body #contact#contact .elementor-divider { padding: 0 !important; text-align: center !important; }
html body #contact#contact .elementor-divider-separator {
  display: block !important;
  width: 48px !important;
  margin: 0 auto !important;
  border-top: 1px solid #C3C79D !important;
  background: none !important;
  opacity: 0.85;
}
html body #contact#contact .elementor-widget-text-editor {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 36px !important;
}
html body #contact#contact .elementor-widget-text-editor p:not(.wh-form-legal) {
  max-width: 48ch;
  margin: 0 auto !important;
  padding: 0 !important;
  color: rgba(243, 238, 230, 0.92) !important;
  font-family: var(--font-sans, Montserrat, sans-serif) !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  text-align: center !important;
  text-wrap: pretty;
}
/* The privacy line under the form. */
html body #contact#contact .elementor-widget-form ~ .elementor-widget-text-editor {
  margin: 28px 0 0 !important;
}
html body #contact#contact .elementor-widget-form ~ .elementor-widget-text-editor p {
  color: rgba(243, 238, 230, 0.75) !important;
  max-width: none;
  font-size: 0.85rem !important;
}

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

html body #contact#contact .elementor-field-group > .elementor-field-label {
  margin: 0 0 8px !important;
  color: rgba(243, 238, 230, 0.92) !important;
  font-family: var(--font-sans, Montserrat, sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.1em !important;
}
/* Required stars are drawn, never typed: label text is the HubSpot key. */
html body #contact#contact :is(.elementor-field-group-name, .elementor-field-group-field_69f8fa6, .elementor-field-group-field_09273e6) > .elementor-field-label::after {
  content: "*";
  margin-left: -0.3em;
}

/* --- fields ---------------------------------------------------------- */

html body #contact#contact .elementor-field-group :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="hidden"]), select, textarea) {
  padding: 11px 14px !important;
  background-color: #FBFAF7 !important;
  border: 1px solid rgba(243, 238, 230, 0.28) !important;
  border-radius: 0 !important;
  color: #1c1a16 !important;
  font-family: var(--font-sans, Montserrat, sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
/* Labels sit above every field, so a repeated placeholder is noise. */
html body #contact#contact .elementor-field-group :is(input, textarea)::placeholder {
  color: transparent !important;
}
html body #contact#contact .elementor-field-group select {
  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='%23494F25' 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;
}
html body #contact#contact .elementor-field-group textarea { min-height: 120px !important; }
html body #contact#contact .elementor-field-group :is(input, select, textarea):focus-visible {
  outline: 2px solid #C3C79D !important;
  outline-offset: 2px !important;
}
html body #contact#contact .wh-brokerage-note {
  color: rgba(243, 238, 230, 0.85) !important;
  font-family: var(--font-sans, Montserrat, sans-serif) !important;
  font-size: 0.9rem !important;
}

/* --- Send: cream button with the olive arrow square ------------------ */

html body #contact#contact .elementor-field-type-submit button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  min-height: 3.25rem !important;
  padding: 0.45rem 0.45rem 0.45rem 1.2rem !important;
  background: #FBF8F2 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 28px rgba(20, 18, 14, 0.32) !important;
  color: #23231e !important;
  -webkit-text-fill-color: #23231e;
  font-family: var(--font-sans, Montserrat, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
}
html body #contact#contact .elementor-field-type-submit button[type="submit"] :is(.elementor-button-content-wrapper, .elementor-button-text) {
  color: inherit !important;
  font: inherit !important;
}
html body #contact#contact .elementor-field-type-submit button[type="submit"]::after {
  content: "" !important;
  position: static !important;
  display: block !important;
  flex: none;
  width: 2.35rem !important;
  height: 2.35rem !important;
  opacity: 1 !important;
  transform: none !important;
  background: #494F25 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%23FBF8F2' stroke-width='1.4'/%3E%3C/svg%3E") center / 16px no-repeat !important;
}
html body #contact#contact .elementor-field-type-submit button[type="submit"]:hover:not(:disabled) {
  background: #fff !important;
}
html body #contact#contact .elementor-field-type-submit button[type="submit"]:focus-visible {
  outline: 2px solid #FBF8F2 !important;
  outline-offset: 3px !important;
}

/* --- phone ----------------------------------------------------------- */

@media (max-width: 767px) {
  html body #contact#contact { padding-inline: 1.25rem !important; }
  html body #contact#contact .elementor-column > .elementor-widget-wrap { padding-inline: 0 !important; }
}
