:root {
  --primary: #6366f1;
  --secondary: #a855f7;
  --accent: #ec4899;
  --background: #0f172a;
  --surface: rgba(30, 41, 59, 0.7);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
}

.container {
  width: 100%;
  max-width: 1000px;
  /* Widen for landscape/grid view */
  padding: 2rem;
  z-index: 10;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 3rem;
  /* More spacious */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Grid Layout for Form */
#registrationForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 Columns */
  gap: 1.5rem;
}

/* Make full width elements span both columns */
.full-width {
  grid-column: span 2;
}

h1 {
  font-size: 2.25rem;
  /* Larger title */
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  /* Updated gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

p.subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 0;
  /* Let grid gap handle spacing */
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Mandatory Field Indicator */
label::after {
  content: " *";
  color: #ef4444;
  /* Red */
  font-weight: 700;
}

/* Remove asterisk for payment option cards */
label.payment-option::after {
  content: none;
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

/* Success Page */
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 1.5rem;
}

.receipt-box {
  background: rgba(15, 23, 42, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.receipt-row:last-child {
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 1rem;
}

/* Admin Dashboard Table */
.admin-container {
  max-width: 1000px;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

#exportBtn {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: rgba(15, 23, 42, 0.8);
  padding: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

td {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.status-pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  #registrationForm {
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 1rem;
  }

  .full-width {
    grid-column: span 1;
  }
}

/* Notice Modal Styles */
.notice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  /* On top of everything */
  display: none;
  /* Hidden by default, JS toggles it */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.notice-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  max-width: 950px;
  /* Even wider to reduce height */
  width: 95%;
  /* Responsive width */
  padding: 2.5rem;
  /* Reduced padding */
  text-align: left;
  position: relative;
  max-height: 95vh;
  /* Slightly taller max */
  overflow-y: auto;
  /* Keep as safety, but shouldn't trigger on desktop */
  /* Hide Scrollbar but allow scrolling if absolutely needed */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.notice-card::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.notice-card h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.notice-section {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--secondary);
  padding-left: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.notice-btn-close {
  background: var(--success);
  color: white;
  font-weight: 700;
  margin-top: 1rem;
  width: 100%;
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notice-btn-close:hover {
  background: #16a34a;
  transform: translateY(-2px);
}