/* ==========================================
   Enrollment Modal Styles
   Matches Victory House School design system
   ========================================== */

/* Modal Container */
.enroll-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.enroll-modal.active {
  display: flex;
}

/* Modal Overlay */
.enroll-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

/* Modal Content Box */
.enroll-modal-content {
  position: relative;
  background: #fff;
  border-radius: 30px;
  max-width: 520px;
  width: 90%;
  padding: 50px 40px;
  box-shadow: 0px 20px 60px rgba(2, 25, 65, 0.2);
  z-index: 2;
  animation: slideUp 0.4s ease;
  text-align: center;
}

@media (max-width: 575px) {
  .enroll-modal-content {
    padding: 40px 25px;
    max-width: 95%;
  }
}

/* Close Button */
.enroll-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #5e5e5e;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.enroll-modal-close:hover {
  background: #f7f7fd;
  color: #ed078b;
  transform: rotate(90deg);
}

/* Modal Icon */
.enroll-modal-icon {
  margin-bottom: 25px;
}

.enroll-modal-icon i {
  font-size: 64px;
  color: #ed078b;
  animation: bounce 1s ease infinite;
}

/* Modal Text */
.enroll-modal-body h2 {
  font-family: "Fredoka One", cursive;
  font-size: 32px;
  color: #423f8d;
  margin-bottom: 20px;
  line-height: 1.2;
}

@media (max-width: 575px) {
  .enroll-modal-body h2 {
    font-size: 26px;
  }
}

.enroll-modal-body p {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: #5e5e5e;
  margin-bottom: 15px;
}

.enroll-modal-body p:last-of-type {
  margin-bottom: 30px;
}

.enroll-modal-body p a {
  color: #ed078b;
  text-decoration: underline;
  font-weight: 500;
}

.enroll-modal-body p a:hover {
  color: #ff377b;
}

/* Modal Action Buttons */
.enroll-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-enroll-contact,
.btn-enroll-close {
  font-family: "Fredoka One", cursive;
  font-size: 14px;
  padding: 16px 32px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #ed078b;
  text-decoration: none;
  display: inline-block;
}

.btn-enroll-contact {
  background: #ed078b;
  color: #fff !important;
}

.btn-enroll-contact:hover {
  background: #ff377b;
  border-color: #ff377b;
  transform: translateY(-2px);
  box-shadow: 0px 8px 20px rgba(237, 7, 139, 0.3);
}

.btn-enroll-close {
  background: transparent;
  color: #ed078b;
}

.btn-enroll-close:hover {
  background: #f7f7fd;
  color: #423f8d;
  border-color: #423f8d;
}

@media (max-width: 575px) {
  .enroll-modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-enroll-contact,
  .btn-enroll-close {
    width: 100%;
    padding: 14px 24px;
    font-size: 13px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
