/* =========================================
   Popups
   ========================================= */

.popups {
  position: fixed;
  z-index: 3000;
  inset: 0;
  height: 100vh;
  pointer-events: none;
  display: none;
  margin: 0;
}

.popups .backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.popups.visible {
  pointer-events: all;
}

/* Popup
   ----------------------------------------- */

.popups .popup {
  max-width: 1120px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  opacity: 0;
  transition: all 0.3s ease;
  width: calc(100% - 24px);
  max-height: calc(100vh - 2rem);
  pointer-events: none;
}

.popups .popup.visible {
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 10;
  pointer-events: all;
}

@media (max-width: 767px) {
  .popups .popup.visible {
    overflow-y: scroll;
    display: block;
  }
}

/* Popup content
   ----------------------------------------- */

.popups .popup .popup-content {
  background-color: white;
  max-width: 1120px;
  width: 100%;
  padding: 4rem;
  display: flex;
  align-items: center;
  border: 1px solid white;
  box-shadow: 0 5px 50px 0 rgba(0, 0, 0, 0.1);
  border-radius: 10px 12px 10px 10px;
}

@media (max-width: 767px) {
  .popups .popup .popup-content {
    padding: 2rem;
  }
}

.popups .popup .popup-content__text .gform_required_legend {
  display: none;
}

.popups .popup .popup-content__text--w100 {
  width: 100%;
}

/* Gravity Forms — validation
   ----------------------------------------- */

.popups .popup .popup-content__text .tekst .validation_error {
  display: none !important;
}

.popups .popup .popup-content__text .tekst .gform_wrapper .ginput_container {
  margin-bottom: 20px;
}

.popups .popup .popup-content__text .tekst .gform_wrapper .gfield {
  position: relative;
}

.popups .popup .popup-content__text .tekst .gform_wrapper .gfield .validation_message {
  position: relative;
  bottom: 0;
  left: 0;
  transform: translateY(12px);
  font-size: 10px;
  pointer-events: none;
}

/* Gravity Forms — checkbox & consent
   ----------------------------------------- */

.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-checkbox,
.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-consent {
  position: relative;
  padding-left: 1.5rem;
}

.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-checkbox input[type=checkbox],
.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-consent input[type=checkbox] {
  position: absolute;
  left: 0;
  top: 2px;
}

.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-checkbox .gfield_label,
.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-consent .gfield_label {
  display: none;
}

.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-checkbox .gfield-choice-input,
.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-consent .gfield-choice-input {
  accent-color: #642978;
}

.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-checkbox .gform-field-label,
.popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-consent .gform-field-label {
  color: #642978;
}

@media (max-width: 767px) {
  .popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-checkbox .gform-field-label,
  .popups .popup .popup-content__text .tekst .gform_wrapper .gfield--type-consent .gform-field-label {
    font-size: 14px;
  }
}

/* Gravity Forms — footer
   ----------------------------------------- */

.popups .popup .popup-content__text .tekst .gform_wrapper .gform_footer {
  margin: 0;
  max-width: unset;
}

/* Close button
   ----------------------------------------- */

.popups .popup .close {
  position: absolute;
  inset: 0 0 auto auto;
  background-color: #642978;
  width: 4rem;
  height: 4rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 3rem;
  transition: all 0.3s ease;
  opacity: 1;
  border-radius: 0 10px 0 0;
}

@media (max-width: 767px) {
  .popups .popup .close {
    height: 3rem;
    width: 3rem;
  }
}

.popups .popup .close i {
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .popups .popup .close i {
    font-size: 2rem;
  }
}

.popups .popup .close:hover {
  background-color: #f58220;
  opacity: 1;
}