/* Custom Modal Styling */
.modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-wrapper.show {
  display: flex;
  opacity: 1;
}

.custom-modal {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-wrapper.show .custom-modal {
  transform: scale(1);
}

.custom-modal .modal-header {
  background: linear-gradient(105deg, #1450e3 0%, #49c0ff 100%);
  color: #fff;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.custom-modal .modal-header h4 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.custom-modal .modal-header h4 span {
  color: #49c0ff;
}

.custom-modal .modal-header .close-modal {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
}

.custom-modal .modal-header .close-modal:hover {
  opacity: 1;
}

.custom-modal .modal-body {
  padding: 25px;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a2a;
}

.custom-modal .modal-footer {
  padding: 15px 25px 25px;
  text-align: center;
  border-top: none;
}

.custom-modal .modal-footer .main-button {
  font-size: 15px;
  padding: 12px 25px;
  transition: all 0.3s;
  background: #03a4ed;
  color: white;
  border: none;
  border-radius: 5px;
}

.custom-modal .modal-footer .main-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Modal animations */
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-wrapper.animated {
  animation: modalFadeIn 0.4s forwards;
}
