/* Edit profile update */
/* ==================== */

.editProfilePopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(1px);
  background-color: rgba(16, 65, 121, 0.33); /* Corrected background color */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 111;
}

.editProfilePopup.activeElement {
  opacity: 1;
  visibility: visible;
}
.editProfilePopup .centerContent {
  width: 600px;
  height: 800px;
  background-color: #ecf1fe;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.editProfilePopup .centerContent .middlePart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem;
  gap: 26px;
}
.editProfilePopup .centerContent .middlePart .userImage {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  position: relative;
}
.editProfilePopup .centerContent .middlePart .userImage .userIMG {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgb(40 64 233);
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e3e6fd;
}
.editProfilePopup .centerContent .middlePart .userImage img.cameraIcon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
}
.editProfilePopup .centerContent form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  overflow-y: auto;
  padding: 2rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
}
.editProfilePopup .centerContent form .formInput {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}
.editProfilePopup .centerContent form .formInput label,
.editProfilePopup .centerContent form .formInput .label {
  color: #1e1e1e;
  margin-left: 16px;
}
.editProfilePopup .centerContent form .formInput input,
.editProfilePopup .centerContent form .formInput select {
  height: 56px;
  border-radius: 16px;
  background-color: #fff;
  border: 1px solid rgba(33, 104, 176, 0.2);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  padding: 16px;
  font-family: "switzerRegular";
  color: #afafaf;
  font-size: 16px;
  line-height: 18px;
  outline: none;
}
.editProfilePopup .centerContent form .formInput input::placeholder,
.editProfilePopup .centerContent form .formInput select::placeholder {
  color: #afafaf;
}
.editProfilePopup .centerContent form .formBTN {
  height: 56px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
.editProfilePopup .centerContent form .formBTN button {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  outline: none;
  border: 1px solid #1062c1;
  box-shadow: 0 16px 24px 0 rgba(33, 104, 176, 0.24);
  font-size: 18px;
  background: rgb(33, 104, 176);
  background: linear-gradient(126deg, #1631ef 0%, #0d1a73 100%);
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;

  &:hover {
    opacity: 0.8;
  }
}
.editProfilePopup .centerContent .middlePart .topText {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.editProfilePopup .centerContent .middlePart .topText h1 {
  font-size: 26px;
  color: #1e1e1e;
}
.editProfilePopup .centerContent .middlePart .topText p {
  font-size: 18px;
  color: #999999;
  text-align: center;
}

.editProfilePopup .centerContent .topPart {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 0px;
  right: 0px;
  border: 1px solid #1062c1;
  background: linear-gradient(126deg, #1631ef 0%, #0d1a73 100%);
  border-radius: 0 0 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.editProfilePopup .centerContent .topPart svg {
  width: 18px;
  fill: #fff;
}

/* Media Query */
@media screen and (max-width: 600px) {
  .editProfilePopup .centerContent {
    width: 90%;
    height: 90dvh;
  }
  .editProfilePopup .centerContent .middlePart .userImage {
    width: 80px;
    height: 80px;
  }
  .editProfilePopup .centerContent .middlePart .userImage img.cameraIcon {
    width: 24px;
  }
  .editProfilePopup .centerContent .middlePart .topText p {
    font-size: 14px;
  }
  .editProfilePopup .centerContent .middlePart .topText h1 {
    font-size: 18px;
  }
  .editProfilePopup .centerContent form .formInput label,
  .editProfilePopup .centerContent form .formInput .label {
    font-size: 14px;
    margin-left: 14px;
  }
  .editProfilePopup .centerContent form {
    padding: 1rem;
    padding-top: 0rem;
  }
  .editProfilePopup .centerContent form .formInput input,
  .editProfilePopup .centerContent form .formInput select {
    height: 45px;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    line-height: 14px;
  }
  .editProfilePopup .centerContent form .formInput {
    gap: 6px;
  }
  .editProfilePopup .centerContent .middlePart {
    gap: 18px;
  }
  .editProfilePopup .centerContent .middlePart {
    padding: 1.5rem;
  }
  .editProfilePopup .centerContent form .formBTN button {
    height: 45px;
    border-radius: 10px;
    box-shadow: 1px 2px 20px 0 rgba(33, 104, 176, 0.24);
    font-size: 14px;
  }
  .editProfilePopup .centerContent .topPart {
    width: 34px;
    height: 34px;
  }
  .editProfilePopup .centerContent .topPart svg {
    width: 14px;
  }
}
