/* HERO: fixed 550px, image covers full width/height, heading overlays */
.cx-hero {
  position: relative;
  overflow: hidden;
  height: 550px;
}

/* Image stays in normal flow; it defines the hero canvas */
.cx-hero .cx-hero-img,
.cx-hero .cx-hero-img .elementor-widget-container,
.cx-hero .cx-hero-img figure {
  width: 100%;
  height: 550px;
  margin: 0;
}

.cx-hero .cx-hero-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Heading overlays the whole hero area */
.cx-hero .cx-hero-title {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

/* Give the heading container some padding; optional background for readability */
.cx-hero .cx-hero-title .elementor-widget-container {
  width: 100%;
  padding: 0 24px;
  /* Optional: uncomment next line if you need contrast behind text */
  /* background: rgba(0, 0, 0, 0.30); */
}

/* Constrain the hero title box to 1000px and center it */
.cx-hero-title .elementor-widget-container {
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;            /* allows shrinking on smaller screens */
}


/* =========================================================
   WPForms Layout Shift Prevention
   ========================================================= */

.wpforms-container form {
  min-height: 400px;
}

.wpforms-container input[type="date"],
.wpforms-container input[type="datetime"],
.wpforms-container input[type="datetime-local"],
.wpforms-container input[type="email"],
.wpforms-container input[type="month"],
.wpforms-container input[type="number"],
.wpforms-container input[type="password"],
.wpforms-container input[type="range"],
.wpforms-container input[type="search"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="text"],
.wpforms-container input[type="time"],
.wpforms-container input[type="url"],
.wpforms-container input[type="week"],
.wpforms-container select,
.wpforms-container textarea {
  background: #fff;
  border: 0 solid transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--ast-global-color-2);
  min-height: 45px;
  transition: border-color 0.2s ease;
}

.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  outline: none;
  border-bottom-color: var(--ast-global-color-0);
}

.wpforms-container textarea {
  resize: none;
  height: 136px !important;
  min-height: 136px !important;
  max-height: 136px !important;
}

.wpforms-container button[type="submit"] {
  min-width: 150px;
  min-height: 50px;
  padding: 15px 34px;
  font-size: 15px;
  display: inline-block;
  box-sizing: border-box;
}

.wpforms-container .wpforms-field-label {
  min-height: 20px;
  display: block;
  margin-bottom: 5px;
}

.wpforms-container .wpforms-field-container {
  min-height: 80px;
}

/* =========================================================
   Elementor Form Layout Stability
   ========================================================= */

.elementor-form {
  min-height: 400px;
}

.elementor-form-fields-wrapper {
  min-height: 350px;
}

.elementor-field-group {
  min-height: 70px;
}

/* =========================================================
   Contact page (page-id-16)
   ========================================================= */

.page-id-16 .elementor-field-group {
  margin-bottom: 10px !important;
  min-height: 70px !important;
}

.page-id-16 .elementor-field-group
.elementor-field:not(.elementor-button) {
  min-height: 40px !important;
  padding: 10px 15px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  will-change: auto !important;
  transition: none !important;
  animation: none !important;
}

.page-id-16 .elementor-field-type-recaptcha .elementor-field,
.page-id-16 .elementor-field-type-recaptcha,
.page-id-16 .g-recaptcha,
.page-id-16 .elementor-g-recaptcha,
.page-id-16 .elementor-field-group-field_recaptcha, #form-field-field_f269691
{
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: auto !important;
}

#form-field-field_f269691 {
	padding-left: 5px !important;
}

/* =========================================================
   Astra custom button
   ========================================================= */

.ast-custom-button {
  white-space: nowrap;
  word-break: keep-all;
}

/* Remove bottom spacing from the last content block in Elementor Text Editor */
.elementor-element .elementor-widget-container > ul:last-child,
.elementor-element .elementor-widget-container > ol:last-child,
.elementor-element .elementor-widget-container > p:last-child {
  margin-bottom: 0 !important;
}


