.icl-unified-form-modal.modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100011;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background: transparent !important;
}

.icl-unified-form-modal.modal.show {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 15vh 16px 16px;
  box-sizing: border-box;
}

.icl-unified-form-modal .modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem auto;
  pointer-events: none;
  max-width: 885px;
}

.icl-unified-form-modal.show .modal-dialog {
  pointer-events: auto;
}

.icl-unified-form-modal .modal-dialog.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.icl-unified-form-modal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  border: none;
  border-radius: 0;
}

.icl-unified-form-modal.show {
  background: transparent !important;
}

body:has(.icl-unified-form-modal.show) .modal-backdrop.show {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.33);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

body:has(.icl-unified-form-modal.show) .modal-backdrop,
.icl-unified-form-modal.show ~ .modal-backdrop {
  z-index: 100010 !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

.modal-backdrop.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.modal-backdrop.show {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.33);
}

.icl-unified-form-modal.closing .modal-content {
  display: none;
}

body.modal-open,
body:has(.icl-unified-form-modal.show) {
  overflow: hidden !important;
}

html:has(.icl-unified-form-modal.show) {
  overflow: hidden !important;
}

.icl-unified-form-modal:not(.landing-form-pop-up-modal).show .modal-content {
  padding: 40px;
  background-color: white;
  top: auto;
  max-width: 885px;
  max-height: 70vh;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 1400px) {
  .icl-unified-form-modal:not(.landing-form-pop-up-modal).show .modal-content {
    padding: 24px;
    top: auto;
    max-height: 90vh;
  }

  .icl-unified-form-modal:not(.landing-form-pop-up-modal).show .modal-title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .icl-unified-form-modal .close {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
  }

  .icl-unified-form-modal.show .modal-body {
    margin-top: 20px;
  }
}

.icl-unified-form-modal:not(.landing-form-pop-up-modal) .gform_wrapper.gravity-theme .gfield_radio .gchoice:not(.gfield--type-quiz .gfield_radio .gchoice) {
  flex: 1;
}

.icl-unified-form-modal:not(.landing-form-pop-up-modal) .gform_wrapper.gravity-theme .gfield.gfield--width-half {
  flex: 1;
  max-width: unset;
}

.icl-unified-form-modal:not(.landing-form-pop-up-modal) .gform_wrapper.gravity-theme .gform_fields {
  min-width: 100%;
}

.icl-unified-form-modal.show .modal-header {
  padding: 0 !important;
  border-bottom: 0;
}

.icl-unified-form-modal.show .modal-body {
  padding: 0 !important;
  border-bottom: 0;
}

.icl-unified-form-modal.show .modal-content::-webkit-scrollbar {
  width: 10px;
}

.icl-unified-form-modal.show .modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px 0 0 5px;
}

.icl-unified-form-modal.show .modal-content::-webkit-scrollbar-thumb {
  background: #B7B7B7;
  border-radius: 5px;
}

.icl-unified-form-modal.show .modal-content::-webkit-scrollbar-thumb:hover {
  background: #9a9a9a;
}

.icl-unified-form-modal .close {
  width: auto !important;
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  right: auto !important;
  text-align: initial !important;
  font-size: inherit !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none !important;
  animation: none !important;
}

.icl-unified-form-modal .close svg {
  display: block;
}

.icl-unified-form-modal:not(.landing-form-pop-up-modal).show .modal-title {
  color: #002B46;
  font-family: Inter;
  font-size: 32px;
  margin-bottom: 24px;
}

.icl-unified-form-modal .gform_confirmation_message {
  font-size: 24px;
  color: #002b46;
}

.icl-unified-form-modal .form-confirmation-socials {
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.icl-unified-form-modal .form-confirmation-socials-container {
  display: flex;
  height: 32px;
  column-gap: 24px;
  margin-top: 14px;
}

.icl-unified-form-modal .form-confirmation-socials.form-pop-up-facebook {
  background-image: url("data:image/svg+xml,%3Csvg data-name='Component 200 – 28' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg data-name='Group 603'%3E%3Cpath data-name='Path 808' d='M53.258 42.109a16 16 0 1 0-18.5 15.806V46.734H30.7v-4.625h4.062v-3.525c0-4.01 2.389-6.225 6.043-6.225a24.623 24.623 0 0 1 3.582.312v3.938h-2.022a2.312 2.312 0 0 0-2.607 2.5v3H44.2l-.71 4.625h-3.732v11.181a16 16 0 0 0 13.5-15.806z' transform='translate(-21.258 -26.109)' style='fill:%2300b5d3'/%3E%3Cpath data-name='Path 809' d='m48.279 49.889.707-4.611h-4.423v-2.991a2.3 2.3 0 0 1 2.6-2.491h2.011v-3.925a24.545 24.545 0 0 0-3.57-.311c-3.643 0-6.024 2.208-6.024 6.205v3.514h-4.05v4.611h4.05v11.145a16.12 16.12 0 0 0 4.984 0V49.889z' transform='translate(-26.069 -29.229)' style='fill:%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
}

.icl-unified-form-modal .form-confirmation-socials.form-pop-up-linkedin {
  background-image: url("data:image/svg+xml,%3Csvg id='Component_199' data-name='Component 199' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cstyle%3E .cls-2%7Bfill:%23fff%7D %3C/style%3E%3C/defs%3E%3Ccircle id='Ellipse_13' data-name='Ellipse 13' cx='16' cy='16' r='16' style='fill:%2300b5d3'/%3E%3Cpath id='Path_802' data-name='Path 802' class='cls-2' d='M174.372 43.491h2.993v9.615h-2.993zm1.5-4.778a1.733 1.733 0 1 1-1.736 1.732 1.732 1.732 0 0 1 1.736-1.732' transform='translate(-165.048 -30.396)'/%3E%3Cpath id='Path_803' data-name='Path 803' class='cls-2' d='M182.129 46.058H185v1.315h.039a3.142 3.142 0 0 1 2.83-1.553c3.026 0 3.584 1.99 3.584 4.58v5.274h-2.987V51c0-1.116-.022-2.55-1.553-2.55-1.555 0-1.793 1.215-1.793 2.469v4.756h-2.987z' transform='translate(-167.598 -32.85)'/%3E%3C/svg%3E%0A");
}

.icl-unified-form-modal .form-confirmation-socials.form-pop-up-instagram {
  background-image: url("data:image/svg+xml,%3Csvg id='Component_201' data-name='Component 201' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cstyle%3E .cls-2%7Bfill:%23fff%7D %3C/style%3E%3C/defs%3E%3Ccircle id='Ellipse_15' data-name='Ellipse 15' cx='16' cy='16' style='fill:%2300b5d3' r='16'/%3E%3Cg id='Group_601' data-name='Group 601' transform='translate(6.65 6.628)'%3E%3Cg id='Group_600' data-name='Group 600'%3E%3Cpath id='Path_805' data-name='Path 805' class='cls-2' d='M52.4 110.751a1.1 1.1 0 1 0 1.1 1.1 1.1 1.1 0 0 0-1.1-1.1z' transform='translate(-38.095 -107.412)'/%3E%3Cpath id='Path_806' data-name='Path 806' class='cls-2' d='M43.188 112.884a4.605 4.605 0 1 0 4.605 4.605 4.61 4.61 0 0 0-4.605-4.605zm0 7.555a2.95 2.95 0 1 1 2.95-2.95 2.953 2.953 0 0 1-2.95 2.95z' transform='translate(-33.761 -108.139)'/%3E%3Cpath id='Path_807' data-name='Path 807' class='cls-2' d='M44.351 124.386h-7.466a5.623 5.623 0 0 1-5.617-5.617V111.3a5.623 5.623 0 0 1 5.617-5.617h7.466a5.623 5.623 0 0 1 5.617 5.617v7.466a5.623 5.623 0 0 1-5.617 5.62zm-7.466-16.94a3.862 3.862 0 0 0-3.858 3.858v7.466a3.862 3.862 0 0 0 3.858 3.858h7.466a3.862 3.862 0 0 0 3.858-3.858v-7.47a3.862 3.862 0 0 0-3.858-3.858z' transform='translate(-31.268 -105.686)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}

.icl-unified-form-modal .form-confirmation-socials.form-pop-up-twitter {
  background-image: url("data:image/svg+xml,%3Csvg data-name='Component 202' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle data-name='Ellipse 14' cx='16' cy='16' style='fill:%2300b5d3' r='16'/%3E%3Cpath data-name='Path 804' d='M258.767 41.126a7.264 7.264 0 0 1-1.77.5c.284-.047.7-.56.87-.767a3.216 3.216 0 0 0 .587-1.065c.015-.03.027-.069 0-.092a.1.1 0 0 0-.094.008 9.081 9.081 0 0 1-2.1.8.143.143 0 0 1-.145-.038 1.694 1.694 0 0 0-.183-.187 3.7 3.7 0 0 0-1.016-.619 3.548 3.548 0 0 0-1.558-.25 3.754 3.754 0 0 0-1.479.415 3.8 3.8 0 0 0-1.193.968 3.638 3.638 0 0 0-.712 1.419 3.823 3.823 0 0 0-.038 1.5c.011.084 0 .095-.072.084a11.222 11.222 0 0 1-7.209-3.648c-.084-.095-.13-.095-.2.008a3.616 3.616 0 0 0 .623 4.293c.141.133.286.266.443.388a3.68 3.68 0 0 1-1.391-.388c-.084-.053-.127-.022-.134.073a2.187 2.187 0 0 0 .023.411 3.681 3.681 0 0 0 2.278 2.929 2.156 2.156 0 0 0 .463.14 4.153 4.153 0 0 1-1.365.042c-.1-.019-.137.03-.1.125a3.832 3.832 0 0 0 2.866 2.386c.13.023.26.023.391.053-.008.011-.016.011-.023.022a4.555 4.555 0 0 1-1.958 1.032 7.055 7.055 0 0 1-2.973.378c-.16-.023-.193-.022-.237 0s-.005.065.046.106c.2.133.409.251.619.365a9.857 9.857 0 0 0 1.988.79 10.633 10.633 0 0 0 10.277-2.389 10.684 10.684 0 0 0 2.844-7.821c0-.113.133-.175.213-.234a6.923 6.923 0 0 0 1.4-1.446.435.435 0 0 0 .093-.277v-.015c-.002-.045-.003-.031-.074.001z' transform='translate(-233.905 -30.591)' style='fill:%23fff'/%3E%3C/svg%3E%0A");
}

@media (max-width: 768px) {
  .icl-unified-form-modal.show .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    height: 100vh;
  }

  .icl-unified-form-modal.show .modal-content {
    top: 0 !important;
    max-height: 100vh;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px;
    border-radius: 0 !important;
    border: none !important;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
  }

  .icl-unified-form-modal.show .modal-header {
    margin-top: 20px !important;
  }

  .icl-unified-form-modal.show .modal-content::-webkit-scrollbar {
    display: none;
  }

  .icl-unified-form-modal.show .modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .icl-unified-form-modal.show .gform_wrapper.gravity-theme .gfield_radio .gchoice:not(.gfield--type-quiz .gfield_radio .gchoice) {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .icl-unified-form-modal:not(.landing-form-pop-up-modal).show .gform_wrapper.gravity-theme .gfield.gfield--width-half {
    flex: 0 0 100%;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .icl-unified-form-modal .gform_confirmation_message {
    font-size: 16px;
  }
}

/* RTL form layout inside unified modals */
.icl-unified-form-modal .modal-header,
.icl-unified-form-modal .modal-body {
  direction: rtl;
  text-align: right;
}

.icl-unified-form-modal .modal-title,
.icl-unified-form-modal .landing-form-popup-subtitle {
  text-align: right;
}

.icl-unified-form-modal .gform_wrapper.gravity-theme .gform_fields {
  align-items: flex-end;
}

.icl-unified-form-modal .gform_body .gfield input:not([type=checkbox]),
.icl-unified-form-modal .gform_body .gfield textarea,
.icl-unified-form-modal .gform_body .gfield select {
  text-align: right;
}

.icl-unified-form-modal .gform_body .gfield input::placeholder,
.icl-unified-form-modal .gform_body .gfield textarea::placeholder {
  text-align: right;
}

.icl-unified-form-modal .gform_body .gfield [type=checkbox] {
  padding-right: 9px !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: auto;
}

.icl-unified-form-modal .gfield [type=checkbox]::before {
  transform: translate(10px, 5px) !important;
}

.icl-unified-form-modal .ginput_container_consent {
  align-items: flex-start;
  gap: 14px;
}

.icl-unified-form-modal .gfield_consent_label {
  text-align: right;
}

.icl-unified-form-modal .gform_footer,
.icl-unified-form-modal .gform_footer.top_label {
  direction: rtl;
  text-align: center;
}

.icl-unified-form-modal .gfield_validation_message,
.icl-unified-form-modal .validation_message,
.icl-unified-form-modal .gform_validation_errors,
.icl-unified-form-modal .gform_validation_errors h2 {
  text-align: right;
  direction: rtl;
}

.icl-unified-form-modal .gfield_description.validation_message {
  line-height: 24px !important;
}

.icl-unified-form-modal .select2-container {
  direction: rtl;
  text-align: right;
}

.icl-unified-form-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
  left: 8px;
  right: auto;
}

.icl-unified-form-modal .select2-results__options {
  direction: rtl;
  text-align: right;
}

@media (max-width: 768px) {
  .icl-unified-form-modal .gfield [type=checkbox]::before {
    transform: translate(10px, -8px) !important;
  }
}
