/* Gharieni contact form popup — scoped to the plugin modal only. */

.gharieni-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  box-sizing: border-box;
}

.gharieni-contact-modal.is-open {
  display: flex;
}

.gharieni-contact-modal[hidden] {
  display: none !important;
}

.gharieni-contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.gharieni-contact-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: calc(100% - 40px);
  max-width: 650px;
  max-height: calc(100vh - 40px);
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 40px;
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  outline: none;
}

.gharieni-contact-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gharieni-contact-modal__close:hover,
.gharieni-contact-modal__close:focus {
  background: #f3f3f3;
}

.gharieni-contact-modal__title {
  margin: 0 36px 16px 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: #111111;
}

.gharieni-contact-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gharieni-contact-modal .gcfv2-wrapper {
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.gharieni-contact-modal .gcfv2-form {
  padding: 0;
}

.gharieni-contact-modal .gcfv2-progress {
  margin: 0 0 24px;
}

.gharieni-contact-modal .gcfv2-step h3 {
  font-size: 24px;
}

.gharieni-contact-modal .gcfv2-next,
.gharieni-contact-modal .gharieni-contact-modal__next {
  background: #000000;
  color: #ffffff;
  border: 0;
  border-radius: 25px;
  padding: 14px 32px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gharieni-contact-modal .gcfv2-next:hover,
.gharieni-contact-modal .gcfv2-next:focus,
.gharieni-contact-modal .gharieni-contact-modal__next:hover,
.gharieni-contact-modal .gharieni-contact-modal__next:focus {
  background: #222222;
  color: #ffffff;
  opacity: 1;
}

html.gharieni-contact-modal-open,
body.gharieni-contact-modal-open {
  overflow: hidden;
}

body.gharieni-contact-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 767px) {
  .gharieni-contact-modal {
    padding: 12px 0;
    align-items: flex-start;
  }

  .gharieni-contact-modal__dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 24px 16px 20px;
    margin: 12px auto;
  }

  .gharieni-contact-modal .gcfv2-step h3 {
    font-size: 20px;
  }

  .gharieni-contact-modal .gcfv2-next,
  .gharieni-contact-modal .gharieni-contact-modal__next {
    width: 100%;
  }
}
