/* Mortgage Calculator Styles - Converted from SASS */
/* Colors: $green: #86d0b9, $blue: #00334a, $orange: #f05d3d, $white: #ffffff, $black: #000000 */

.mc-properties-block {
  margin-top: 0;
  overflow: visible;
}

.mc-properties-block .section-content-after {
  margin-bottom: 50px;
  text-align: center;
}

#amortization,
#interestRate {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('/wp-content/uploads/2025/10/dropdown-arrow.svg');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: auto;
}

#amortization:focus,
#interestRate:focus {
  border-color: #333;
  outline: none;
}

#amortization::-ms-expand,
#interestRate::-ms-expand {
  display: none;
}

.mc-block__wrapper {  
  padding: 2rem 1.25rem;
  background: #C6DCDA;
  overflow: visible;
}

/* Ensure Elementor containers don't clip arrows */
.elementor-element .mc-block__wrapper,
.elementor-widget-shortcode .mc-block__wrapper,
.elementor-container .mc-block__wrapper,
.elementor-element,
.elementor-widget-shortcode {
  overflow: visible !important;
}

@media (min-width: 768px) {
  .mc-block__wrapper {
    padding: 3.125rem 2.1875rem;
  }
}

@media (min-width: 1200px) {
  .mc-block__wrapper {
    padding: 4.375rem 6.25rem;    
  }
}

.mc-block__logo img {
  width: 9rem;
}

.mc-block .border-line-verticle {
  width: 5.25rem;
  height: 0.0625rem;
  background: #00334a;
  margin: 1rem auto;
}

@media (min-width: 1200px) {
  .mc-block .border-line-verticle {
    width: 0.0625rem;
    height: 5.25rem;
    margin: 0;
  }
}

.mc-block__header {
  max-width: 44.75rem;
  margin: 0 auto;
  gap: 50px;
  margin-bottom: 1.75rem;
  text-align: center;
}

@media (min-width: 1200px) {
  .mc-block__header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
  }
}

.mc-block__header > div {
  flex: 0 0 auto;
}

.mc-block__header h2 {
  color: #00334a;
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: -0.0975rem;
  text-transform: uppercase;
  margin-bottom: 0;
}

@media (min-width: 1200px) {
  .mc-block__header h2 {
    font-size: 2.75rem;
    letter-spacing: -0.165rem;
  }
}

.mc-block__text,
.mc-block .section-content-after {
  max-width: 50rem;
  margin: 0 auto 3rem;
}

@media (min-width: 1200px) {
  .mc-block__text,
  .mc-block .section-content-after {
    margin: 0 auto 5rem;
  }
}

.mc-block__text p,
.mc-block .section-content-after p {
  color: #00334a;
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  font-size: 0.875rem;
  letter-spacing: -0.00875rem;
}

@media (min-width: 1200px) {
  .mc-block__text p,
  .mc-block .section-content-after p {
    font-size: 1rem;
    letter-spacing: -0.01rem;
  }
}

.mc-block__form {
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .mc-block__form {
    padding: 0 1.875rem;
  }
}

@media (min-width: 1200px) {
  .mc-block__form {
    padding: 0;
  }
}

.mc-block__form form#emcForm,
#emcForm {
  padding: 0 1rem;
}

@media (min-width: 1200px) {
  .mc-block__form form#emcForm,
  #emcForm {
    padding: 0 20px;
  }
}

/* Form styles - support both wrapped (.mc-block__form) and direct (#emcForm) structures */
.mc-block__form .mc-form-wrap,
#emcForm .mc-form-wrap,
.mc-form-wrap {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

.mc-block__form .mc-form-wrap .mc-field-group,
#emcForm .mc-form-wrap .mc-field-group,
.mc-form-wrap .mc-field-group {
  flex: 0 0 auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap .mc-field-group,
  #emcForm .mc-form-wrap .mc-field-group,
  .mc-form-wrap .mc-field-group {
    margin-bottom: 2.125rem;
    width: 25%;
  }
}

.mc-block__form .mc-form-wrap .mc-field-group--100,
#emcForm .mc-form-wrap .mc-field-group--100,
.mc-form-wrap .mc-field-group--100 {
  width: 100%;
  text-align: center;
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap .mc-field-group--100,
  #emcForm .mc-form-wrap .mc-field-group--100,
  .mc-form-wrap .mc-field-group--100 {
    text-align: left;
  }
}

.mc-block__form .mc-form-wrap .mc-field-group label,
#emcForm .mc-form-wrap .mc-field-group label,
.mc-form-wrap .mc-field-group label {
  position: relative;
  color: #00334a;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3125rem;
  margin-bottom: 0.5875rem;
  display: block;
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap .mc-field-group label,
  #emcForm .mc-form-wrap .mc-field-group label,
  .mc-form-wrap .mc-field-group label {
    font-size: 1rem;
    margin-bottom: 0.6875rem;
  }
}

.mc-block__form .mc-form-wrap .mc-field-group label span.tool-tip,
#emcForm .mc-form-wrap .mc-field-group label span.tool-tip,
.mc-form-wrap .mc-field-group label span.tool-tip {
  position: absolute;
  top: -5px;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap .mc-field-group label span.tool-tip,
  #emcForm .mc-form-wrap .mc-field-group label span.tool-tip,
  .mc-form-wrap .mc-field-group label span.tool-tip {
    top: -10px;
  }
}

.mc-block__form .mc-form-wrap .mc-field-group label span.tool-tip img,
#emcForm .mc-form-wrap .mc-field-group label span.tool-tip img,
.mc-form-wrap .mc-field-group label span.tool-tip img {
  width: 14px;
}

.mc-block__form .mc-form-wrap .mc-field-group input,
.mc-block__form .mc-form-wrap .mc-field-group select,
#emcForm .mc-form-wrap .mc-field-group input,
#emcForm .mc-form-wrap .mc-field-group select,
.mc-form-wrap .mc-field-group input,
.mc-form-wrap .mc-field-group select {
  background: #ffffff;
  color: #00334a;
  border: 0;
  height: 2.5rem;
  width: 100% !important;
  padding: 1rem;
  box-sizing: border-box;
  font-size: 16px; /* Prevent iOS auto-zoom (must be >= 16px) */
  font-weight: 700;
}

@media (min-width: 768px) {
  .mc-block__form .mc-form-wrap .mc-field-group input,
  .mc-block__form .mc-form-wrap .mc-field-group select,
  #emcForm .mc-form-wrap .mc-field-group input,
  #emcForm .mc-form-wrap .mc-field-group select,
  .mc-form-wrap .mc-field-group input,
  .mc-form-wrap .mc-field-group select {
    font-size: 0.875rem; /* Can use smaller size on tablet+ */
  }
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap .mc-field-group input,
  .mc-block__form .mc-form-wrap .mc-field-group select,
  #emcForm .mc-form-wrap .mc-field-group input,
  #emcForm .mc-form-wrap .mc-field-group select,
  .mc-form-wrap .mc-field-group input,
  .mc-form-wrap .mc-field-group select {
    font-size: 1rem;
  }
}

.mc-block__form .mc-form-wrap .mc-field-group input::placeholder,
.mc-block__form .mc-form-wrap .mc-field-group select::placeholder,
#emcForm .mc-form-wrap .mc-field-group input::placeholder,
#emcForm .mc-form-wrap .mc-field-group select::placeholder,
.mc-form-wrap .mc-field-group input::placeholder,
.mc-form-wrap .mc-field-group select::placeholder {
  color: #00334a;
  font-size: 0.875rem;
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap .mc-field-group input::placeholder,
  .mc-block__form .mc-form-wrap .mc-field-group select::placeholder,
  #emcForm .mc-form-wrap .mc-field-group input::placeholder,
  #emcForm .mc-form-wrap .mc-field-group select::placeholder,
  .mc-form-wrap .mc-field-group input::placeholder,
  .mc-form-wrap .mc-field-group select::placeholder {
    font-size: 1rem;
  }
}

.mc-block__form .mc-form-wrap .mc-field-group select,
#emcForm .mc-form-wrap .mc-field-group select,
.mc-form-wrap .mc-field-group select {
  padding: 0 1rem;
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect,
.mc-form-wrap .mc-field-group .custom-multiselect {
  position: relative;
  width: 100%;
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .right-arrow,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect .right-arrow,
.mc-form-wrap .mc-field-group .custom-multiselect .right-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .select-box,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect .select-box,
.mc-form-wrap .mc-field-group .custom-multiselect .select-box {
  background: #ffffff;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 21px;
  height: 2.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-transform: capitalize;
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .select-box,
  #emcForm .mc-form-wrap .mc-field-group .custom-multiselect .select-box,
  .mc-form-wrap .mc-field-group .custom-multiselect .select-box {
    font-size: 1rem;
  }
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .options,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect .options,
.mc-form-wrap .mc-field-group .custom-multiselect .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .options label,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect .options label,
.mc-form-wrap .mc-field-group .custom-multiselect .options label {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid #f6f6f6;
  gap: 0.5rem;
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .options label span,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect .options label span,
.mc-form-wrap .mc-field-group .custom-multiselect .options label span {
  font-size: 1rem;
  font-weight: 700;
  line-height: 21px;
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .options label input,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect .options label input,
.mc-form-wrap .mc-field-group .custom-multiselect .options label input {
  width: auto !important;
  height: auto !important;
}

.mc-block__form .mc-form-wrap .mc-field-group .custom-multiselect .options label:hover,
#emcForm .mc-form-wrap .mc-field-group .custom-multiselect .options label:hover,
.mc-form-wrap .mc-field-group .custom-multiselect .options label:hover {
  background-color: #f0f0f0;
}

.mc-block__form .mc-form-wrap button.result-btn,
#emcForm .mc-form-wrap button.result-btn,
.mc-form-wrap button.result-btn {
  width: 13.75rem;
  height: 3rem;
  border: 0;
  background: #f05d3d;
  color: #ffffff;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02375rem;
  text-transform: uppercase;
  margin: 2rem auto 0;
}

@media (min-width: 1200px) {
  .mc-block__form .mc-form-wrap button.result-btn,
  #emcForm .mc-form-wrap button.result-btn,
  .mc-form-wrap button.result-btn {
    font-size: 1rem;
    margin: 0;
  }
}

.mc-block div#emcResult,
#emcResult {
  color: #00334a;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .mc-block div#emcResult,
  #emcResult {
    max-width: 90%;
  }
}

.mc-block div#emcResult strong,
#emcResult strong {
  font-weight: 700;
}

/* Results Container - replaces form */
#mc-results-container {
  display: none;
  width: 100%;
  margin-top: 0;
}

/* Force visibility when results are shown */
#mc-results-container.show-results {
  display: block !important;
  visibility: visible !important;
}

#mc-floorplans-wrapper.show-results {
  display: block !important;
  visibility: visible !important;
}

/* Ensure properties block is visible when results are shown */
#mc-floorplans-wrapper.show-results .mc-properties-block,
#mc-floorplans-wrapper.show-results .mc-block-footer {
  display: block !important;
  visibility: visible !important;
}

#mc-floorplans-wrapper {
  overflow: visible;
  width: 100%;
  margin-top: 0;
}

/* Ensure form and results container are in same flow */
#emcForm,
#mc-results-container {
  position: relative;
  width: 100%;
}

/* When form is hidden, ensure results container is visible */
.mc-block__form #emcForm[style*="display: none"] ~ #mc-results-container,
.mc-block__form #emcForm.hidden ~ #mc-results-container {
  display: block !important;
}

/* Ensure results container shows when form is hidden */
.mc-block__form:has(#emcForm[style*="display: none"]) #mc-results-container,
.mc-block__form:has(#emcForm.hidden) #mc-results-container {
  display: block !important;
}

/* Filter Wrapper */

.mc-filter-wrapper .section-content-after {
  margin-bottom: 50px;
  text-align: center;
}

.mc-filter-wrapper .section-content-after p {
  color: #00334a;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.00875rem;
  line-height: 1.15;
  text-align: center;
}

@media (min-width: 1200px) {
  .mc-filter-wrapper .section-content-after p {
    font-size: 1rem;
    letter-spacing: -0.01rem;
  }
}

.mc-block .mc-filter .swiper-pagination {
  bottom: 0 !important;
}

.mc-filter-wrapper {
  position: relative;
  width: 100%;
  overflow: visible; /* Allow dropdown to extend beyond wrapper */
}

.mc-block .mc-filter-buttons,
.mc-filter-buttons {
  display: none; /* Hidden by default (mobile) */
  justify-content: space-between;
  border-bottom: 0.0625rem solid #00334a;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

/* Show filter buttons on desktop (xl breakpoint) */
@media (min-width: 1200px) {
  .mc-block .mc-filter-buttons,
  .mc-filter-buttons,
  .mc-filter-buttons.d-none.d-xl-flex {
    display: flex !important;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .mc-block .mc-filter-buttons,
  .mc-filter-buttons {
    gap: 2rem;
  }
}

@media (min-width: 1600px) {
  .mc-block .mc-filter-buttons,
  .mc-filter-buttons {
    gap: 2.5rem;
  }
}

/* Hide mobile dropdown on desktop */
@media (min-width: 1200px) {
  .mc-mobile-dropdown,
  .mc-mobile-dropdown.d-xl-none {
    display: none !important;
  }
}

.mc-block .mc-filter-buttons button {
  background: transparent;
  border: 0;
  outline: none;
  text-align: left;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.mc-block .mc-filter-buttons button.active span.tab-title,
.mc-block .mc-filter-buttons button.active span.tab-location {
  opacity: 1;
}

.mc-block .mc-filter-buttons button span {
  display: block;
}

.mc-block .mc-filter-buttons button span.tab-title {
  color: #00334a;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.0275rem;
  text-transform: uppercase;
  opacity: 0.2;
}

.mc-block .mc-filter-buttons button span.tab-location {
  font-weight: 500;
  color: #00334a;
  font-size: 0.75rem;
  letter-spacing: 0.0175rem;
  text-transform: uppercase;
  opacity: 0.2;
}

/* Responsive font sizes for filter buttons */
@media (min-width: 1400px) {
  .mc-block .mc-filter-buttons button span.tab-title {
    font-size: 1.25rem;
  }
  
  .mc-block .mc-filter-buttons button span.tab-location {
    font-size: 0.8125rem;
  }
}

@media (min-width: 1600px) {
  .mc-block .mc-filter-buttons button span.tab-title {
    font-size: 1.25rem;
  }
  
  .mc-block .mc-filter-buttons button span.tab-location {
    font-size: 0.8125rem;
  }
}

.mc-block .mc-filter-content,
.mc-filter-content {
  position: relative !important;
  overflow: visible !important;
  /* Add padding on mobile to accommodate arrows positioned outside */
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 767px) {
  .mc-block .mc-filter-content,
  .mc-filter-content {
    padding-left: 40px; /* Space for left arrow */
    padding-right: 40px; /* Space for right arrow */
  }
}

.mc-block .mc-filter,
.mc-filter {
  display: block;
  width: 100%;
  overflow: visible !important;
}

.mc-filter .position-relative {
  position: relative !important;
  width: 100%;
  overflow: visible !important;
}

.mc-block .mc-filter-content .swiper-parent,
.mc-filter-content .swiper-parent,
.mc-block .swiper-parent-arrow,
.swiper-parent-arrow {
  position: absolute !important;
  top: 29% !important;
  z-index: 100 !important;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  pointer-events: auto !important;
}

.mc-block .mc-filter-content .swiper-parent svg,
.mc-filter-content .swiper-parent svg,
.mc-block .swiper-parent-arrow svg,
.swiper-parent-arrow svg {
  width: 19px !important;
  height: 31px !important;
  display: block;
  flex-shrink: 0;
}

/* Arrows positioned outside container with negative values - match empirewhywait.com */
/* Position arrows relative to .mc-filter-content (which has position: relative) */
/* Match empirewhywait.com structure exactly */
.mc-filter-content .swiper-parent-prev,
.mc-block .mc-filter-content .swiper-parent-prev,
.mc-filter-content .position-relative .swiper-parent-prev,
.swiper-parent-prev {
  position: absolute !important;
  left: -35px !important;
}

@media (max-width: 767px) {
  /* On mobile, position arrows outside the swiper but within the padding area */
  /* Position relative to .position-relative which is inside the padded .mc-filter-content */
  .mc-filter-content .position-relative .swiper-parent-prev,
  .swiper-parent-prev {
    left: -45px !important; /* Outside the swiper but within the 50px padding */
  }
  
  /* Fallback for other selectors */
  .mc-block .mc-filter-content .swiper-parent-prev,
  .mc-filter-content .swiper-parent-prev {
    left: -45px !important;
  }
}

@media (min-width: 1200px) {
  .mc-filter-content .swiper-parent-prev,
  .mc-block .mc-filter-content .swiper-parent-prev,
  .mc-filter-content .position-relative .swiper-parent-prev,
  .swiper-parent-prev {
    left: -60px !important;
  }
}

.mc-filter-content .swiper-parent-next,
.mc-block .mc-filter-content .swiper-parent-next,
.mc-filter-content .position-relative .swiper-parent-next,
.swiper-parent-next {
  position: absolute !important;
  right: -35px !important;
}

@media (max-width: 767px) {
  /* On mobile, position arrows outside the swiper but within the padding area */
  /* Position relative to .position-relative which is inside the padded .mc-filter-content */
  .mc-filter-content .position-relative .swiper-parent-next,
  .swiper-parent-next {
    right: -45px !important; /* Outside the swiper but within the 50px padding */
  }
  
  /* Fallback for other selectors */
  .mc-block .mc-filter-content .swiper-parent-next,
  .mc-filter-content .swiper-parent-next {
    right: -45px !important;
  }
}

@media (min-width: 1200px) {
  .mc-filter-content .swiper-parent-next,
  .mc-block .mc-filter-content .swiper-parent-next,
  .mc-filter-content .position-relative .swiper-parent-next,
  .swiper-parent-next {
    right: -60px !important;
  }
}

/* Hide arrows on mobile when disabled */
@media (max-width: 767px) {
  .mc-block .swiper-parent-arrow.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
  }
}

/* Ensure arrows are visible even when Swiper adds disabled class */
.mc-block .swiper-parent-arrow.swiper-button-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.mc-block .swiper-parent-arrow:not(.swiper-button-disabled) {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
}

/* Override any Swiper default hiding - but keep them visible */
.mc-block .swiper-parent-arrow.swiper-button-lock {
  display: flex !important;
  opacity: 0.5 !important;
}

/* Property Swiper - Horizontal Layout */
.mc-property-swiper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Swiper needs overflow: hidden to contain slides */
/* Arrows are siblings of swiper (not children), so swiper's overflow doesn't affect them */
/* But .position-relative needs overflow: visible to show arrows positioned outside */
.mc-filter .position-relative > .mc-property-swiper {
  overflow: hidden !important;
}

/* Let Swiper handle the wrapper and slide layout - don't override */
.mc-property-swiper .swiper-wrapper {
  display: flex; /* Swiper handles this internally, but provide fallback */
}

.mc-property-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.mc-block .mc-filter-content .mc-property-swiper .swiper-slide img,
.mc-property-swiper .swiper-slide img {
  width: 100%;
  max-width: 100%;
  height: 206px;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .mc-block .mc-filter-content .mc-property-swiper .swiper-slide img,
  .mc-property-swiper .swiper-slide img {
    height: 13rem;
    object-fit: contain;
  }
}

/* Ensure property cards display properly */
.mc-floorplan {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: none;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
}

.mc-block .mc-property-swiper > .swiper-wrapper,
.mc-property-swiper > .swiper-wrapper {
  padding-bottom: 70px;
}

.mc-block .mc-property-swiper span.swiper-pagination-bullet,
.mc-property-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #c6d1d1;
  opacity: 1;
}

.mc-block .mc-property-swiper span.swiper-pagination-bullet-active,
.mc-property-swiper .swiper-pagination-bullet-active {
  background: #00334a;
}

.mc-block .mc-property-swiper .swiper-pagination,
.mc-property-swiper .swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.mc-block .mc-property-img {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: 206px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: block;
}

@media (min-width: 768px) {
  .mc-block .mc-property-img {
    height: 13rem;
  }
}

@media (min-width: 1300px) {
  .mc-block .mc-property-img {
    width: 100%;
    max-width: 100%;
  }
}

.mc-block .mc-property-img .elevations-block {
  position: relative;
  width: 100%;
  height: 100%;
}

.mc-block .mc-property-img .elevations-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .mc-block .mc-property-img .elevations-block img {
    object-fit: contain;
  }
}

.mc-block .mc-property-img .mc-elevation-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.mc-block .mc-property-img .mc-elevation-swiper .swiper-wrapper {
  height: 100%;
}

.mc-block .mc-property-img .mc-elevation-swiper .swiper-slide {
  height: 100%;
}

.mc-block .mc-property-img .mc-elevation-swiper .swiper-slide .elevations-block {
  height: 100%;
  position: relative;
}

/* Override autoHeight for elevation swiper to maintain consistent height */
.mc-block .mc-property-img .mc-elevation-swiper.swiper {
  height: 206px !important;
}

@media (min-width: 768px) {
  .mc-block .mc-property-img .mc-elevation-swiper.swiper {
    height: 13rem !important;
  }
}

.mc-block .mc-property-img .elevations-block__name {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 20px;
  left: 30px;
  background: #f05d3d;
  padding: 0px 20px;
  box-sizing: border-box;
  z-index: 2;
}

.mc-block .mc-property-img .elevations-block__name span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.mc-block .mc-property-summary {
  background: #00334a;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 21.5rem;
  width: 100%;
}

.mc-block .mc-property-summary strong {
  margin: 15px 0;
}

.mc-block .mc-property-summary span,
.mc-block .mc-property-summary strong {
  display: block;
  line-height: 1;
}

.mc-block .mc-property-summary h3,
.mc-block .mc-property-summary span {
  color: #f8f7ed;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.44px;
  text-transform: uppercase;
}

.mc-block .mc-property-summary h3 strong,
.mc-block .mc-property-summary span strong {
  color: #f8f7ed;
  text-align: center;
  font-size: 69px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.38px;
  text-transform: uppercase;
}

.mc-block .mc-property-summary .mc-property-book a {
  margin: 45px auto 0 auto;
}

.mc-block .mc-property-info {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 0 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
}

@media (min-width: 768px) {
  .mc-block .mc-property-info {
    flex-wrap: nowrap;
    gap: 0;
  }
}

.mc-block .mc-property-info-title h3 {
  color: #00334a;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.0175rem;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .mc-block .mc-property-info-title h3 {
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .mc-block .mc-property-info-title h3 {
    font-size: 1rem;
    letter-spacing: 0.02rem;
  }
}

.mc-block .mc-property-info-title h3 span {
  font-size: 0.875rem;
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 2px;
}

.mc-block .mc-property-info-title h3 .mc-floorplan-name {
  font-weight: 800;
}

.mc-block .mc-property-info-title h3 .mc-address {
  font-weight: 800;
}

/* On desktop, show floor plan and address inline with separator */
@media (min-width: 768px) {
  .mc-block .mc-property-info-title h3 .mc-floorplan-name {
    display: inline;
  }
  
  /* Only show separator if address exists */
  .mc-block .mc-property-info-title h3 .mc-floorplan-name:has(+ .mc-address)::after {
    content: ' | ';
    margin: 0 4px;
  }
  
  .mc-block .mc-property-info-title h3 .mc-address {
    display: inline;
  }
}

/* On mobile, display floor plan, address, and collection on separate lines */
@media (max-width: 767px) {
  .mc-block .mc-property-info-title h3 {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  
  .mc-block .mc-property-info-title h3 .mc-floorplan-name {
    display: block;
    margin-top: 0;
    margin-bottom: 2px;
  }
  
  .mc-block .mc-property-info-title h3 .mc-floorplan-name::after {
    content: ''; /* Remove separator on mobile */
  }
  
  .mc-block .mc-property-info-title h3 .mc-address {
    display: block;
    margin-top: 0;
    margin-bottom: 2px;
  }
  
  .mc-block .mc-property-info-title h3 .mc-collection {
    display: block;
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .mc-block .mc-property-info-title h3 span {
    font-size: 1rem;
    letter-spacing: 0.02rem;
    margin-top: 2px;
  }
}

.mc-block .mc-property-price {
  color: #00334a;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (min-width: 1200px) {
  .mc-block .mc-property-price {
    margin-top: 8px;
  }
}

.mc-block .mc-property-price .mc-price-label {
  font-size: 0.875rem;
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}

.mc-block .mc-property-price .mc-price-value {
  font-size: 0.875rem;
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

@media (min-width: 1200px) {
  .mc-block .mc-property-price .mc-price-label {
    font-size: 1rem;
    letter-spacing: 0.02rem;
  }
  
  .mc-block .mc-property-price .mc-price-value {
    font-size: 1rem;
    letter-spacing: 0.02rem;
    margin-top: 4px;
  }
}

.mc-block .mc-property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

@media (min-width: 1200px) {
  .mc-block .mc-property-footer {
    flex-direction: row;
  }
}

.mc-block .mc-property-footer p {
  color: #00334a;
  font-size: 1rem;
  font-weight: 400 !important;
  line-height: 0.4;
  letter-spacing: -0.16px;
}

.mc-block .mc-property-footer p strong {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01rem;
}

@media (min-width: 1200px) {
  .mc-block .mc-property-footer p strong {
    font-size: 1rem;
    letter-spacing: -0.01rem;
  }
}

.mc-block .mc-property-attr {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Override Elementor's p:last-of-type margin-bottom: 0 on mobile only */
@media (max-width: 767px) {
  .mc-block .mc-property-attr p:last-of-type {
    margin-bottom: 0.9rem !important;
  }
}

@media (max-width: 767px) {
  .dialog-type-lightbox{
    bottom: 80px !important;
  }
}

@media (min-width: 768px) {
  .mc-block .mc-property-attr {
    flex-wrap: nowrap;
    gap: 0;
  }
}

@media (min-width: 1200px) {
  .mc-block .mc-property-attr {
    width: 40%;
    display: block;
  }
}

.mc-block .mc-property-book {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 1200px) {
  .mc-block .mc-property-book {
    width: 60%;
    margin-top: 0;
  }
}

.mc-block .mc-property-book--100 {
  width: 100%;
}

.mc-block .mc-property-book--100 a {
  border: 2px solid #ffffff !important;
  background: transparent;
}

.mc-block .mc-property-book--100 a:hover {
  border: 2px solid #f05d3d !important;
  background: #f05d3d !important;
}

.mc-block .mc-property-book button.view-floorplan {
  color: #00334a;
  border: 2px solid #00334a;
  background: transparent;
  margin-bottom: 0.4rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.017rem;
  padding: 3px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin-left: auto;
  transition: all 0.4s;
}

@media (min-width: 1200px) {
  .mc-block .mc-property-book button.view-floorplan {
    padding: 0.3rem 1.1rem 0.4rem;
    max-width: 100%;
  }
}

.mc-block .mc-property-book button.view-floorplan:hover {
  background: #00334a;
  border-color: #00334a;
  color: #ffffff;
}

.mc-block .mc-property-book a {
  background: #00334a;
  border: 2px solid #00334a;
  color: #ffffff;
}

.mc-block .mc-property-book a,
.mc-block .mc-property-book button.view-floorplan {
  text-decoration: none;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.017rem;
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin-left: auto;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 1200px) {
  .mc-block .mc-property-book a,
  .mc-block .mc-property-book button.view-floorplan {
    padding: 0.5rem 1.1rem 0.4rem;
    max-width: 100%;
  }
}

.mc-block .mc-property-book a:hover {
  background: #00334a;
  border-color: #00334a;
  color: #ffffff;
}

.mc-block .mc-property-book button.view-floorplan:hover {
  background: #00334a;
  border-color: #00334a;
  color: #ffffff;
}

.mc-block .mc-property-swiper .child-swiper-pagination {
  position: absolute;
  left: 0 !important;
  right: 0;
  bottom: 20px !important;
  z-index: 2;
  width: 15%;
  height: 26px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 500;
}

.mc-block .mc-property-swiper .child-swiper-pagination-bullet {
  background: #00334a;
}

.mc-block .mc-property-swiper .child-swiper-pagination span {
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 500;
}

.mc-block .mc-property-swiper .child-swiper-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  width: 30px;
  height: 30px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-block .mc-property-swiper .child-swiper-arrow svg {
  width: 15px;
  height: 15px;
}

.mc-block .mc-property-swiper .child-swiper-button-prev {
  left: 20px;
}

.mc-block .mc-property-swiper .child-swiper-button-next {
  right: 20px;
}

.mc-block .desktop-tabs {
  display: block;
}

.mc-block .mobile-dropdown {
  display: none;
}

@media screen and (max-width: 768px) {
  .mc-block .desktop-tabs {
    display: none;
  }
  .mc-block .mobile-dropdown {
    display: block;
    width: 100%;
  }
}

.mc-block-footer {
  text-align: center;
  margin: 2.1875rem auto 0;
  color: #00334a;
}

.mc-block-footer p {
  color: #00334a;
  font-weight: 300;
}

.mc-block-footer .text-orange {
  color: #f05d3d !important;
}

@media (min-width: 1200px) {
  .mc-block-footer {
    max-width: 100%;
  }
}

.mc-block-footer.mt-space {
  margin-top: 5rem;
}

.mc-block-footer p a,
.mc-block-footer p strong {
  font-weight: 700 !important;
}

.mc-block-footer-btn {
  margin-top: 2.1875rem;
}

.mc-block-footer-btn a,
.mc-block-footer-btn a.btn.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 13.75rem !important;
  height: 3.5rem;
  margin: 0 auto;
  background: #f05d3d;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  transition: all 0.4s ease;
}

@media (min-width: 1200px) {
  .mc-block-footer-btn a,
  .mc-block-footer-btn a.btn.btn-primary {
    font-size: 1.1875rem;
    letter-spacing: 0.02375rem;
    height: 3rem;
  }
}

.mc-block-footer-btn a:hover,
.mc-block-footer-btn a.btn.btn-primary:hover {
  background: #00334a;
  color: #fff;
}

.mc-block-footer-try-again {
  margin-top: 2.1875rem;
}

.mc-block-footer-try-again button.btn.btn-primary {
  background: transparent !important;
  color: #00334a !important;
  font-size: 1.1875rem;
  letter-spacing: 0.02375rem;
  border: 0;
  border-bottom: 1px solid #00334a;
  cursor: pointer;
}

.mc-no-results {
  text-align: center;
  margin-top: 5rem;
}

.custom-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 4px;
  max-width: 250px;
  line-height: 1.4;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-align: center;
  white-space: normal;
}

.custom-tooltip:after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

button#mcTryAgain {
  background: transparent;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  color: #f05d3d;
}

.mc-mobile-dropdown {
  display: block; /* Show by default (mobile) */
  position: relative;
  width: 100%;
}

/* Hide mobile dropdown on desktop */
@media (min-width: 1200px) {
  .mc-mobile-dropdown,
  .mc-mobile-dropdown.d-xl-none {
    display: none !important;
  }
}

.mc-mobile-dropdown {
  display: block; /* Show by default (mobile) */
  position: relative;
  width: 100%;
}

/* Hide mobile dropdown on desktop */
@media (min-width: 1200px) {
  .mc-mobile-dropdown,
  .mc-mobile-dropdown.d-xl-none {
    display: none !important;
  }
}

.mc-mobile-dropdown {
  display: block; /* Show by default (mobile) */
  position: relative;
  width: 100%;
}

/* Hide mobile dropdown on desktop */
@media (min-width: 1200px) {
  .mc-mobile-dropdown,
  .mc-mobile-dropdown.d-xl-none {
    display: none !important;
  }
}

.mc-mobile-dropdown .option-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.mc-mobile-dropdown .option-location {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.015rem;
  text-transform: uppercase;
}

.mc-mobile-dropdown .dropdown-selected {
  background: transparent;
  border: 1px solid #00334a;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  font-weight: 500;
  flex-direction: column;
  width: 100%;
  margin-bottom: 40px;
  box-sizing: border-box;
  font-size: 1rem;
}

.mc-mobile-dropdown .dropdown-selected:after {
  content: '';
  /* Use data URI for reliable arrow display */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='7' viewBox='0 0 13 7' fill='none'%3E%3Cpath d='M6.16206 7L12.1641 3.42579L12.1641 0L6.15405 3.76676L0.164062 0.00401094L0.164062 3.4298L6.16206 7Z' fill='%2300334a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 12px auto;
  width: 12px;
  height: 12px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.mc-mobile-dropdown .dropdown-selected.open:after {
  transform: translateY(-50%) rotate(180deg);
}

.mc-mobile-dropdown .dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #00334a;
  border-radius: 0;
  margin-top: 0;
  display: none;
  z-index: 1000; /* High z-index to ensure it appears above other content */
  border-top: 0;
  box-sizing: border-box;
  /* Remove max-height to show all options without scrolling */
  overflow-x: hidden;
}

.mc-mobile-dropdown .dropdown-options .dropdown-option {
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  transition: background 0.2s;
  color: #00334a; /* Default text color */
}

.mc-mobile-dropdown .dropdown-options .dropdown-option.active {
  background: #f0f0f0;
  color: #00334a; /* Dark teal text instead of white */
}

.mc-mobile-dropdown .dropdown-options .dropdown-option.active .option-title {
  color: #00334a;
}

.mc-mobile-dropdown .dropdown-options .dropdown-option.active .option-location {
  color: #00334a;
}

.fp-popup-open {
  overflow: hidden;
}

.fp-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.fp-popup-overlay .fp-popup-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;  
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  box-sizing: border-box;
  overflow: visible;
}

@media (max-width: 767px) {
  .fp-popup-overlay .fp-popup-wrap{
    height: auto;
    width: auto;
  }
}

@media (min-width: 2250px) {
  .fp-popup-overlay .fp-popup-wrap {
    width: 70%;
  }
}

.fp-popup-overlay .fp-popup-wrap .fp-action {
  align-items: center;
  display: flex !important;
  height: 40px !important;
  min-height: 40px;
  justify-content: flex-end;
  position: relative;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10;
  gap: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  order: -1;
  overflow: visible !important;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .fp-popup-overlay .fp-popup-wrap .fp-action {
    right: 0;
    top: 0;
  }
}

.fp-popup-overlay .fp-popup-wrap .fp-action a {
  align-items: center;
  background: #f05d3d;
  color: #fff;
  display: flex;
  font-size: 0.725rem;
  font-weight: 500;
  height: 100%;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 8rem;
}

@media (min-width: 1200px) {
  .fp-popup-overlay .fp-popup-wrap .fp-action a {
    font-size: 0.825rem;
    width: 9rem;
  }
}

.fp-popup-overlay .fp-popup-wrap .fp-action a:hover {
  background: #00334a;
}

.fp-popup-overlay .fp-popup-wrap .fp-action .fp-close {
  align-items: center;
  background: #fff !important;
  border: none;
  cursor: pointer;
  display: flex !important;
  height: 40px !important;
  min-height: 40px;
  justify-content: center;
  width: 40px !important;
  min-width: 40px;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 11;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.fp-popup-overlay .fp-popup-wrap .fp-action .fp-close svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

.fp-popup-overlay .fp-popup-wrap .fp-action .fp-close svg path {
  stroke: #00334A !important;
  stroke-width: 6 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.fp-popup-overlay .fp-popup-wrap .fp-popup {
  align-items: flex-start;
  animation: popupFadeIn 0.3s ease;
  background: #fff;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 3rem 0 1rem;
  position: relative;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 1200px) {
  .fp-popup-overlay .fp-popup-wrap .fp-popup {
    height: calc(100% - 40px);
    overflow: auto;
    padding: 0;
    width: 100%;
  }
}

.fp-popup-overlay .fp-popup-wrap .fp-popup img {
  border-radius: 8px;
  display: block;
  height: auto;
  max-width: 100%;
}

@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Contact Form / Registration Form Styles */
/* Match calculator container styling - use same structure as calculator */
.mc-block.emc-contact-form-wrapper {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Use mc-block__wrapper for consistent styling with calculator */
.mc-block.emc-contact-form-wrapper .mc-block__wrapper.register-block {
  background: #86d0b9;
  padding: 3.125rem 35px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .mc-block.emc-contact-form-wrapper .mc-block__wrapper.register-block {
    padding: 3.125rem 2.1875rem;
  }
}

@media (min-width: 1200px) {
  .mc-block.emc-contact-form-wrapper .mc-block__wrapper.register-block {
    padding: 4.375rem 6.25rem;
  }
}

.register-wrap {
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .register-wrap {
    max-width: 80%;
  }
}

.register-form {
  width: 100%;
  position: relative;
  min-height: 600px;
}

.register-form iframe,
.register-form .empire-contact-iframe {
  width: 100%;
  min-height: 1140px;
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .register-form {
    min-height: 680px;
  }
  
  .register-form iframe,
  .register-form .empire-contact-iframe {
    min-height: 680px;
  }
}

@media (min-width: 1200px) {
  .register-form {
    min-height: 650px;
  }
  
  .register-form iframe,
  .register-form .empire-contact-iframe {
    min-height: 650px;
  }
}

/* OSC Popup Mobile Fixes */
/* Ensure popup displays over video and other content on mobile */
@media (max-width: 767px) {
  .elementor-popup-modal {
    z-index: 999999 !important;
  }
  
  /* When popup is open, hide/pause videos to prevent z-index conflicts */
  body.elementor-popup-modal--open video {
    visibility: hidden;
  }
  
  /* Ensure popup content is properly sized on mobile */
  .elementor-popup-modal .dialog-widget-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  /* Fix iframe sizing in popup on mobile */
  .elementor-popup-modal iframe.oscIframe,
  .elementor-popup-modal iframe.empire-contact-iframe,
  .elementor-popup-modal iframe[src*="go.empirehomes.com"] {
    width: 100% !important;
    min-height: 500px !important;
  }
}

/* Iframe Form Popup Styles */
.emc-form-popup-open {
  overflow: hidden;
}

.emc-form-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.emc-form-popup-overlay .emc-form-popup-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 90%;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  max-width: 900px;
  box-sizing: border-box;
  overflow: visible;
}

@media (max-width: 767px) {
  .emc-form-popup-overlay .emc-form-popup-wrap {
    height: auto;
    width: 95%;
    max-height: 90vh;
  }
}

@media (min-width: 2250px) {
  .emc-form-popup-overlay .emc-form-popup-wrap {
    width: 70%;
  }
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup-action {
  align-items: center;
  display: flex !important;
  height: 40px !important;
  min-height: 40px;
  justify-content: flex-end;
  position: relative;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10;
  gap: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  order: -1;
  overflow: visible !important;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup-action {
    right: 0;
    top: 0;
  }
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup-action .emc-form-popup-close {
  align-items: center;
  background: #fff !important;
  border: none;
  cursor: pointer;
  display: flex !important;
  height: 40px !important;
  min-height: 40px;
  justify-content: center;
  width: 40px !important;
  min-width: 40px;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 11;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup-action .emc-form-popup-close svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup-action .emc-form-popup-close svg path {
  stroke: #00334A !important;
  stroke-width: 6 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup {
  align-items: flex-start;
  animation: popupFadeIn 0.3s ease;
  background: #fff;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  padding: 2rem 1rem;
  position: relative;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 1200px) {
  .emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup {
    height: calc(100% - 40px);
    overflow: auto;
    padding: 2rem;
    width: 100%;
  }
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-popup-header {
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-popup-header .emc-form-popup-title {
  color: #00334a;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-popup-header .emc-form-popup-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-popup-header .emc-form-popup-title {
    font-size: 2rem;
  }
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-popup-header .emc-form-popup-copy {
  color: #00334a;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-popup-header .emc-form-popup-copy {
    font-size: 1rem;
  }
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-container {
  width: 100%;
  max-width: 100%;
}

.emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-iframe {
    min-height: 680px;
  }
}

@media (min-width: 1200px) {
  .emc-form-popup-overlay .emc-form-popup-wrap .emc-form-popup .emc-form-iframe {
    min-height: 650px;
  }
}


