.mhp-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.mhp-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mhp-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.mhp-popup__dialog {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100vw - 32px));
  margin: 32px auto;
  background: #efefef;
  overflow: hidden;
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.mhp-popup.is-open .mhp-popup__dialog {
  transform: scale(1);
  opacity: 1;
}

.mhp-popup__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.mhp-popup__hero {
  position: relative;
  min-height: 430px;
}

.mhp-popup__hero-image {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}
.mhp-popup__hero-logo {
  width: 20%;
  max-width: 126px;
  display: block;
  position: absolute;
  right: 1%;
  bottom: 3%;
  z-index: 0;
}

.mhp-popup__hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.mhp-popup__title {
  margin: 0 0 12px;
  font-size: 84px;
  line-height: 0.95;
  font-weight: 700;
  color: #fff;
}

.mhp-popup__subtitle {
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.45;
  color: #fff;
}

.mhp-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 50px;
  padding: 12px 24px;
  background: #d72727;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1.2;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.mhp-popup__cta:hover {
  color: #fff;
  opacity: 0.92;
  transform: translateY(-1px);
}

.mhp-popup__form-wrap {
  padding: 26px 30px 32px;
  text-align: center;
  background: #f5f5f5;
}

.mhp-popup__form-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.35;
  color: #111;
  font-weight: 700;
}

.mhp-popup__form-text {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

/* CF7 quick styling */
.mhp-popup .wpcf7 form {
  margin: 0;
}

.mhp-popup .wpcf7-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
}

.mhp-popup .wpcf7-form p {
  margin: 0;
}

.mhp-popup .wpcf7-form-control-wrap {
  display: block;
}

.mhp-popup input[type='text'],
.mhp-popup input[type='email'],
.mhp-popup input[type='tel'],
.mhp-popup textarea,
.mhp-popup select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #5c7285;
  padding: 10px 2px;
  font-size: 16px;
  line-height: 1.4;
  color: #111;
  outline: none;
  box-shadow: none;
}

.mhp-popup input[type='submit'] {
  min-width: 105px;
  min-height: 48px;
  border: 0;
  background: #c88a8a;
  color: #fff;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.mhp-popup input[type='submit']:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.mhp-popup .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

body.mhp-popup-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .mhp-popup__dialog {
    width: calc(100vw - 20px);
    margin: 10px auto;
  }

  .mhp-popup__hero {
    min-height: 280px;
  }

  .mhp-popup__hero-image {
    min-height: 280px;
  }

  .mhp-popup__hero-content {
    padding: 28px 16px;
  }

  .mhp-popup__title {
    font-size: 46px;
  }

  .mhp-popup__subtitle {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .mhp-popup__cta {
    min-width: 190px;
    min-height: 44px;
    font-size: 16px;
  }

  .mhp-popup__form-wrap {
    padding: 20px 16px 24px;
  }

  .mhp-popup__form-title {
    font-size: 20px;
  }

  .mhp-popup__form-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .mhp-popup .wpcf7-form {
    gap: 14px;
  }
}

/* ***** CONTACT FORM ***** */

.mhp-popup__form-wrap {
  margin: 3rem auto 1rem;
}
.mhp-popup__form-wrap .field-wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: space-between;
}

.mhp-popup__form-wrap .hidden-fields-container {
  border: 0;
}

.mhp-popup__form-wrap .field {
  width: 23%;
}
.mhp-popup__form-wrap .field.field-accept {
  width: 70%;
}
.mhp-popup__form-wrap .submit-wr {
  width: 23%;
}
.mhp-popup__form-wrap .submit-bt {
  width: 100%;
  text-align: center;
  display: block;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  border: 0;
  color: #fff;
  background: linear-gradient(270deg, #cf2427 0%, #9d191b 100%);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.mhp-popup__form-wrap .submit-bt:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mhp-popup__form-wrap .checkbox:after {
  margin: 4px 4px 0 0;
}

.mhp-popup__form-wrap .field .label {
  display: none;
}
.mhp-popup__form-wrap .wpcf7-form-control-wrap {
  width: 100%;
}
.mhp-popup__form-wrap input,
.mhp-popup__form-wrap select {
  border: none;
  text-decoration: none;
  border-bottom: 1px solid #173552;
  border-radius: 0;
  font-family: 'Open Sans', sans-serif;
  width: 100%;
  padding: 5px;
  background: transparent;
  font-size: 18px;
  outline: none;
}
