/* ========================================
   ADMISSION POPUP MODAL STYLES
   For I.G.DESAI School
   ======================================== */

/* Modal Overlay */
.admission-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  animation: fadeIn 0.3s ease;
}

.admission-modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal Container - reduced to half size */
.admission-modal {
  position: relative;
  width: 45%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  z-index: 1000000;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  background: var(--theme-orange, #ff8c42);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close-btn:hover {
  background: #e67a32;
  transform: rotate(90deg) scale(1.1);
}

/* Image wrapper with reduced height */
.modal-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  max-height: 50vh;
  overflow: hidden;
}

.modal-admission-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 50vh;
  object-fit: contain;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide modal completely on small screens for better UX */
@media (max-width: 767px) {
  .admission-modal-overlay {
    display: none !important;
  }
}

/* Responsive Styles for tablets */
@media (max-width: 991px) and (min-width: 768px) {
  .admission-modal {
    width: 60%;
    max-width: 500px;
  }

  .modal-close-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
