/* Popup Overlay */
.event-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.event-popup.active {
  display: flex;
}

/* Popup Box */
.event-popup-content {
  background: #007bff;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease;
  box-sizing: border-box;
  margin-top: 60px;
}

/* Close Button */
.event-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.event-close-btn:hover {
  color: #ffeb3b;
}
@media (min-width: 600px) and (max-width: 992px) {
  .event-popup-content {
    margin-top: 100px; /* Increase this value as needed */
  }
}

/* Heading & Subheading */
.event-popup-content h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-subheading {
  text-align: center;
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 400;
}

/* Separator Line */
.event-separator {
  width: 100px;
  height: 1px;
  background: #fff;
  margin: 15px auto;
  position: relative;
}

.event-separator::before,
.event-separator::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: rotate(45deg);
}

.event-separator::before {
  left: -5px;
}

.event-separator::after {
  right: -5px;
}

/* Form Layout */
.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 15px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 45%;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  box-shadow: 0 0 4px rgba(255, 235, 59, 0.5);
}

/* Submit Button */
.event-popup-content button[type="submit"] {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  background: rgb(0, 58, 102);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.event-popup-content button[type="submit"]:hover {
  background: rgb(0, 48, 90);
  color: #fff;
}

/* Animation */
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-group {
    min-width: 100%;
  }

  .event-popup-content {
    padding: 15px;
  }

  .event-popup-content h2 {
    font-size: 24px;
  }

  .event-subheading {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
    .event-popup-content {
        padding: 15px;
        margin-top: 130px;
    }
}
