/* Registration Pop-up Modal Styles */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease-out;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

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

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.close-btn:hover {
  color: #d9534f;
}

/* Modal Header */
.modal-header {
  background: linear-gradient(135deg, #ff6b6b, #ff8787);
  color: #fff;
  padding: 30px 25px;
  text-align: center;
  border-bottom: 3px solid #ff5252;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
}

/* Modal Body */
.modal-body {
  padding: 35px 25px;
  text-align: center;
}

.notice-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-message {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
  margin: 0;
}

.main-message strong {
  color: #1E90FF;
  font-weight: 700;
}

.sub-message {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Modal Footer */
.modal-footer {
  padding: 25px;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

.register-button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #1E90FF, #4169E1);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.register-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
  text-decoration: none;
  color: #fff;
}

.register-button:active {
  transform: translateY(0);
}

.close-text {
  margin: 0;
  padding-top: 10px;
}

.close-link {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}

.close-link:hover {
  color: #666;
}

/* Responsive Design */
@media (max-width: 600px) {
  .modal {
    max-width: 90%;
    margin: 20px;
  }

  .modal-header {
    padding: 25px 20px;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 25px 20px;
  }

  .main-message {
    font-size: 1rem;
  }

  .sub-message {
    font-size: 0.9rem;
  }

  .modal-footer {
    padding: 20px;
  }

  .register-button {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
  }
}
