.newsletter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999999;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
}

.newsletter-popup-overlay.open {
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-popup-overlay .newsletter-popup-container {
  max-width: 1000px;
  margin: auto;
  width: 100%;
  height: 650px;
  display: flex;
  background-color: white;
  overflow-y: auto;
  position: relative;
}

@media screen and (max-width: 1150px) {
  .newsletter-popup-overlay .newsletter-popup-container {
    margin: 64px 20px 64px 20px;
    height: 95vh;
  }
}

@media screen and (max-width: 767px) {
  .newsletter-popup-overlay .newsletter-popup-container {
    flex-wrap: wrap;
    max-width: 420px;
  }
}

.newsletter-popup-overlay .newsletter-popup-container .img-container {
  max-width: 590px;
  overflow: hidden;
}

.newsletter-popup-overlay .newsletter-popup-container .img-container img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.newsletter-popup-overlay .newsletter-popup-container .right {
  display: flex;
  flex-direction: column;
  margin: 50px 40px 60px 40px;
  max-width: 330px;
  width: 100%;
  color: black;
  position: relative;
}

.newsletter-popup-container .right .after-subscription {
  display: none;
  border: 1px #04121d solid;
  color: greenyellow;
  padding: 15px;
  color: black;
  border-radius: 6px;
  margin-top: 45px;
}

.newsletter-popup-container .right .after-subscription.show {
  display: flex;
  flex-direction: column;
}

.newsletter-popup-container .right > img {
  position: absolute;
  right: 0;
  top: -30px;
  cursor: pointer;
}

@media screen and (max-width: 430px) {
  .newsletter-popup-container .right {
    max-width: 100%;
    margin: 50px 20px 60px 20px;
  }
}

.newsletter-popup-container .right > h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
}

.newsletter-popup-container .right > p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 19px;
}

.newsletter-popup-container .right span {
  font-size: 14px;
  font-weight: 400;
}

.newsletter-popup-container .right button {
  background-color: #5db4ec;
  color: #04121d;
  font-size: 16px;
  font-weight: 500;
  padding: 10px;
  outline: none;
  border: 1px solid transparent;
  width: 100%;
  border-radius: 6px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.newsletter-popup-container .right button:disabled {
  background-color: gray;
}

.newsletter-popup-container .right .form {
  display: flex;
  flex-direction: column;
}

.newsletter-popup-container .right .form.hide {
  display: none;
}

.newsletter-popup-container .right .form > label {
  margin-left: 10px;
  margin-bottom: 6px;
}

.newsletter-popup-container .right .form .cc {
  display: flex;
  gap: 8px;
  align-items: center;
}

.newsletter-popup-container .right .form .cc.first {
  margin-bottom: 10px;
}

.newsletter-popup-container .right .form .cc p {
  margin: 0;
}

.newsletter-popup-container .right .form .ic {
  margin-bottom: 12px;
}

.newsletter-popup-container .right .form .ic label {
  margin-bottom: 6px;
  margin-left: 10px;
}

.newsletter-popup-container .right .form .select-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  border-radius: 6px;
  border: 1px #04121d solid;
  outline: 1px solid transparent;
  padding: 14px 10px 14px 10px;
}

.newsletter-popup-container .right .form .select-option .options {
  position: absolute;
  display: none;
  flex-direction: column;
  margin-top: 158px;
  border: 1px #04121d solid;
  width: 330px;
  margin-left: -11px;
  background-color: #fff;
  z-index: 999;
  border-radius: 6px;
}

@media screen and (max-width: 450px) {
  .newsletter-popup-container .right .form .select-option .options {
    width: 101%;
  }
}

.newsletter-popup-container .right .form .select-option .options span {
  color: #04121d;
  font-size: 16px;
  font-weight: 400;
  padding: 14px 10px 14px 10px;
  cursor: pointer;
}

.newsletter-popup-container .right .form .select-option .options.open {
  display: flex;
}

.newsletter-popup-container input {
  width: 100%;
  border-radius: 6px;
  border: 1px #04121d solid;
  outline: 1px solid transparent;
  padding: 14px 0 14px 10px;
}

.newsletter-popup-container input::placeholder {
  color: #04121d;
  font-size: 16px;
  font-weight: 400;
}

/* Hide the default checkbox */
.newsletter-popup-container .custom-checkbox input {
  display: none;
}

/* Style the custom checkbox */
.newsletter-popup-container .custom-checkbox {
  display: flex;
  position: relative;
  cursor: pointer;
  font-size: 24px;
  user-select: none;
}

.newsletter-popup-container .custom-checkbox .checkmark {
  width: 24px;
  height: 24px;
  background-color: white;
  border: 1px solid #04121d;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Style the checkmark when the checkbox is checked */
.newsletter-popup-container .custom-checkbox input:checked + .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

/* Create the blue checkmark */
.newsletter-popup-container .custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 9px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Show the checkmark when checked */
.newsletter-popup-container .custom-checkbox input:checked + .checkmark:after {
  display: block;
}

.newsletter-popup-container .error {
  border: 1px solid red;
  background-color: #ffe6e6; /* Light red background */
}

.newsletter-popup-container .error::placeholder {
  color: red;
}
