/* Base Modal Styles - Reusable for all custom modals */
.kvep-modal-overlay
{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.60);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.kvep-modal-overlay.hidden
{
  display: none;
}

.kvep-modal-overlay.active
{
  opacity: 1;
  pointer-events: all;
}

.kvep-modal
{
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  max-height: 95vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 35px;
  transform: scale(0.8);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;

  overflow-y: auto;
}

.kvep-modal-overlay.active .kvep-modal
{
  transform: scale(1);
  opacity: 1;
}

.kvep-modal__close
{
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 12px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.36);
  opacity: 0.3;
  transition: all .3s;
}

.kvep-modal__close svg path
{
  transition: all .3s;
}

.kvep-modal__close:hover
{
  opacity: 1;
  border: 1px solid #E63737;
}

.kvep-modal__close:hover svg path
{
  stroke: #E63737;
}

.kvep-modal__title
{
  margin: 0;
  padding-right: 50px;
}

.kvep-modal__content
{
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px)
{
  .kvep-modal
  {
    max-width: calc(100vw - 30px);
    padding: 20px;
  }

  .kvep-modal__close
  {
    top: 10px;
    right: 10px;
    padding: 10px;
  }

  .kvep-modal__title
  {
    padding-right: 40px;
  }
}

@media (max-width: 480px)
{
  .kvep-modal
  {
    padding: 15px;
  }
}




/* CALLBACK */

.modal-callback .kvep-modal__title
{
  text-align: center;
  margin-bottom: 20px;
  padding-right: 0;
}

.modal-callback .modal-callback__form
{
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* SUCCESS MODAL */

.kvep-modal-overlay--success .kvep-modal
{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 430px;
  gap: 20px;
}

.kvep-modal-overlay--success .kvep-modal__title
{
  padding-right: 0;
}

.kvep-modal-overlay--success .kvep-modal__text
{
  color: var(--Secondary-Grey, #363636);
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 140%;
  margin: 0;
}

.kvep-modal-overlay--success .kvep-modal__btn
{
  min-width: 193px;
  width: auto;
  padding: 20px 31px;
  font-size: 14px;
  font-weight: 500;
}


/* PASSWORD CHANGED */

.modal-password-changed {
  max-width: 630px;
} 

.pch-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}
.pch-buttons > a {
  flex: 1 1 50%;
}







@media screen and (max-width: 768px) {
  .modal-callback .kvep-modal {
    width: 395px;
  }
  .modal-callback .kvep-modal__title {
    text-align: left;
    margin-bottom: 15px;
  }
  .modal-callback .modal-callback__form {
    gap: 15px;
  }

  .kvep-modal-overlay--success .kvep-modal {
    gap: 15px;
  }

  .modal-password-changed {
    max-width: calc(100vw - 30px);
  }
  .pch-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .pch-buttons > a {
    flex: 1 1 100%;
  }
}