.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  justify-content: end;
  opacity: 0;
  visibility: hidden;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--color3);
  box-shadow: 0 0.2vw 2.8vw rgba(15, 39, 111, 0.4);
  max-width: 90vw;
  height: 100%;
  width: clamp(320px, 25vw, 480px);
  padding: 2vw 1.5vw;
  transform: translateX(-28vw);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-container,
.modal-container.active {
  transform: translateX(0);
}

.modal-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2.5vw;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.1vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  width: 1.15vw;
  height: 1.15vw;
  min-width: 22px;
  min-height: 22px;
  filter: brightness(0) saturate(100%) invert(100%);
}

.modal-content,
.tnx-content {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}
.tnx-content {
  gap: 0;
}

.modal-title {
  font-family: "PloniMaccabiMLv2AAA-DemiBold", sans-serif;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  color: white;
  text-align: right;
  margin: 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}

.form-disclaimer {
  font-family: "PloniMaccabiMLv2AAA-DemiBold", sans-serif;
  font-size: clamp(12px, 0.73vw, 14px);
  color: white;
  text-align: right;
  margin-bottom: 1vw;
  line-height: 1;
}

.form-group {
  margin-bottom: 1vw;
}

.input-container {
  position: relative;
  width: 100%;
}

.input-container input {
  width: 100%;
  background: white;
  border: none;
  border-radius: 3.125vw;
  padding: 1vw 1.5vw;
  font-family: "PloniMaccabiMLv2AAA-Bold", sans-serif;
  font-size: clamp(16px, 0.94vw, 18px);
  color: var(--color3);
  text-align: right;
  outline: none;
  box-shadow: 0 0.26vw 1.56vw rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.input-container input:focus {
  box-shadow: 0 0.26vw 1.56vw rgba(0, 0, 0, 0.15);
  transform: translateY(-0.05vw);
}

.input-container label {
  position: absolute;
  top: 50%;
  right: 1.5vw;
  transform: translateY(-50%);
  font-family: "PloniMaccabiMLv2AAA-Bold", sans-serif;
  font-size: clamp(16px, 0.94vw, 18px);
  color: var(--color3);
  pointer-events: none;
  background: transparent;
  line-height: 1.4;
  transition: all 0.3s ease;
}

@keyframes SlideUp {
  0% {
    transform: translateY(-0.5vw) scale(1) translateX(0);
  }
  100% {
    transform: translateY(-1.7vw) scale(0.9) translateX(0.3vw);
  }
}

@keyframes SlideDown {
  0% {
    transform: translateY(-1.7vw) scale(0.9) translateX(0.3vw);
  }
  100% {
    transform: translateY(-0.5vw) scale(1) translateX(0);
  }
}

.activeAnimation {
  animation: SlideUp 0.5s both;
}

.reverseAnimation {
  animation: SlideDown 0.5s both;
}

.checkbox-group {
  padding: 1.5vw 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5vw;
  cursor: pointer;
  text-align: right;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 1vw;
  height: 1vw;
  min-width: 19px;
  min-height: 19px;
  border: 0.1vw solid white;
  border-radius: 0.1vw;
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-top: 0.1vw;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom {
  background: white;
  border-color: white;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  color: var(--color3);
  font-size: clamp(12px, 0.65vw, 14px);
  font-weight: bold;
}

.checkbox-text {
  font-family: "PloniMaccabiMLv2AAA-Regular", sans-serif;
  font-size: clamp(16px, 0.94vw, 18px);
  color: white;
  line-height: 1.4;
  flex: 1;
}

.submit-button {
  background-color: var(--primary-pink-2);
  border: none;
  border-radius: 3.125vw;
  padding: 0.8vw 1.5vw;
  font-family: "PloniMaccabiMLv2AAA-Bold", sans-serif;
  font-size: clamp(16px, 0.94vw, 18px);
  color: var(--color3);
  cursor: pointer;
  transition: all 0.3s ease;
  width: clamp(180px, 10.8vw, 207px);
  align-self: flex-start;
  text-align: center;
  margin-top: 1vw;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5vw;
}

.submit-button:hover {
  background-color: #d1a1bb;
  transform: translateY(-0.1vw);
  box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.15);
}

.submit-button:active {
  transform: translateY(0);
}
.submit-button.is-loading {
  opacity: 0.7;
  cursor: progress;
  pointer-events: none;
}
.submit-button.is-loading .button-arrow {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.error,
.success {
  color: rgb(203, 0, 0);
  position: absolute;
  z-index: 1;
  left: 1vw;
  top: 2.2vw;
  display: none;
  font-size: 0.94vw;
}
.success {
  color: rgb(0, 203, 0);
}
.error.active,
.success.active {
  display: block;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
  display: none;
  direction: rtl;
  text-align: right;
  box-sizing: border-box;
  border-radius: 8px;
}

.suggestions li {
  padding: 10px 12px;
  cursor: pointer;
}
.suggestions li.active {
  background: #e0e0e0;
}
.suggestions li:hover {
  background: #f0f0f0;
}

.tnx-headline,
.tnx-subtitle-container {
  font-size: clamp(18px, 5.25vw, 28px);
  color: var(--color1);
  text-align: center;
}
.tnx-subtitle-container {
  font-size: clamp(18px, 5.25vw, 24px);
  color: var(--color1);
  text-align: center;
  line-height: 1.2;
}
.main-video {
  width: 18vw;
  height: auto;
  margin: auto;
  border-radius: 1vw;
}
.imgIcon {
  display: none;
  position: absolute;
  top: 24vw;
  left: 10.5vw;
}

@media (max-width: 768px) {
  .modal-container {
    max-width: 100vw;

    width: clamp(100%, 25vw, 480px);
    padding: 9vw 4.5vw;
    /* width: 100%; */
  }
  .modal-title {
    font-size: clamp(24px, 1.25vw, 24px);
  }
  .form-disclaimer {
    font-size: clamp(14px, 0.73vw, 14px);
    margin-bottom: 2vw;
    margin-top: 2vw;
  }
  .input-container input {
    border-radius: 6.125vw;
    padding: 4.5vw 3.5vw;
    font-size: clamp(18px, 0.94vw, 18px);
    padding-right: 6vw;
  }
  .modal-form {
    gap: 3vw;
  }
  .input-container label {
    right: 5.5vw;
  }
  .error,
  .success {
    left: 5vw;
    top: 10.2vw;
    font-size: 3.94vw;
  }
  .submit-button {
    border-radius: 3.125vw;

    font-size: clamp(18px, 0.94vw, 18px);

    width: clamp(48vw, 10.8vw, 207px);
    align-self: flex-start;

    margin-top: 1vw;

    border-radius: 7.125vw;
    padding: 4.2vw 7.5vw;

    font-weight: bold;
    line-height: 1;
    gap: 1vw;
  }
  .checkbox-container {
    gap: 2.5vw;
  }
  .main-video {
    width: 79vw;
    height: auto;
    margin: auto;
    border-radius: 4vw;
  }
  @keyframes SlideUp {
    0% {
      transform: translateY(0vw) scale(1) translateX(0);
    }
    100% {
      transform: translateY(-7vw) scale(0.8) translateX(0vw);
    }
  }

  @keyframes SlideDown {
    0% {
      transform: translateY(-7vw) scale(0.8) translateX(-0.7vw);
    }
    100% {
      transform: translateY(-2vw) scale(1) translateX(0);
    }
  }
}
