@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --color-blue: #0070B8;
  --color-red: #ED1C24;
  --color-yellow: #FFD100;
  --color-dark-blue: #1D3557;
  --color-white: #ffffff;
  --color-bg: #F8FAFC;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-500: #6B7280;
  --color-gray-800: #1F2937;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* ============================================
   BASE RESET
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--color-white);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-blue);
  letter-spacing: -0.5px;
  margin: 0;
}

.logo span {
  color: var(--color-dark-blue);
}

.main-content {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.5s ease-out;
}

.page-title h1 {
  font-size: 2rem;
  color: var(--color-dark-blue);
  margin-bottom: 0.5rem;
}

.page-title h2 {
  font-size: 1.2rem;
  color: var(--color-gray-500);
  font-weight: 400;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-100);
  animation: fadeInUp 0.4s ease-out;
}

.event-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.event-card:hover::before {
  left: 100%;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue);
}

.event-card.selected {
  border: 2px solid var(--color-blue);
  background-color: rgba(0, 112, 184, 0.02);
}

.event-card.brainathon:hover {
  border-color: var(--color-red);
}

.event-card.brainathon.selected {
  border-color: var(--color-red);
  background-color: rgba(237, 28, 36, 0.02);
}

.event-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 1rem;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.badge {
  background: var(--color-gray-100);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark-blue);
  transition: background-color 0.2s ease;
}

.price-badge {
  background: var(--color-yellow);
  color: var(--color-dark-blue);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.price-badge:hover {
  transform: scale(1.05);
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.event-intro {
  margin-bottom: 2rem;
  text-align: center;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 0.5rem;
}

label .required {
  color: var(--color-red);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-gray-800);
  transition: all 0.2s;
  background-color: var(--color-white);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 184, 0.1);
}

input[readonly] {
  background-color: var(--color-gray-100);
  cursor: not-allowed;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #005a96;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-gray-200);
  color: var(--color-gray-800);
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

.btn-brainathon {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn-brainathon:hover {
  background-color: #c8161e;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-inline {
  width: auto;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================
   STEPS INDICATOR
   ============================================ */
.steps-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gray-200);
  z-index: 1;
}

.step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-gray-500);
  z-index: 2;
  position: relative;
  transition: all 0.3s;
}

.step.active {
  border-color: var(--color-blue);
  color: var(--color-blue);
  animation: pulse 1.5s infinite;
}

.step.completed {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

/* ============================================
   CHECKBOX
   ============================================ */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--color-blue);
  cursor: pointer;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--color-blue);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-icon {
  width: 80px;
  height: 80px;
  background: #10B981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s ease-out;
}

/* ============================================
   SUMMARY BOX
   ============================================ */
.summary-box {
  background-color: var(--color-gray-100);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.summary-box p {
  margin-bottom: 0.35rem;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.amount-display {
  text-align: center;
  margin-bottom: 2rem;
}

.amount-display .label {
  font-size: 1.25rem;
  font-weight: 600;
}

.amount-display .price {
  font-size: 2.5rem;
  font-weight: 800;
}

.amount-display .price.blue {
  color: var(--color-blue);
}

.amount-display .price.red {
  color: var(--color-red);
}

/* ============================================
   BRAINATHON SECTION
   ============================================ */
.brainathon-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-200);
}

.brainathon-section .section-note {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

/* ============================================
   CONFIRMATION PAGE
   ============================================ */
.confirmation-details {
  background-color: var(--color-gray-100);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  margin-bottom: 2rem;
}

.confirmation-details h3 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--color-gray-200);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.confirmation-details p {
  margin-bottom: 0.35rem;
}

.confirmation-details .paid {
  color: #10B981;
  font-weight: bold;
}

.save-warning {
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 1.5rem;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.confirmation-actions .btn-primary {
  max-width: 400px;
}

.secondary-actions {
  display: flex;
  gap: 1rem;
}

.secondary-actions .btn-secondary {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ============================================
   PAYMENT STEP
   ============================================ */
.payment-info {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  margin-top: 1.5rem;
}

/* ============================================
   UTILITY: HIDDEN
   ============================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 112, 184, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 112, 184, 0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    padding: 1.5rem;
  }

  .page-title h1 {
    font-size: 1.5rem;
  }

  .event-card-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .secondary-actions {
    flex-direction: column;
    width: 100%;
  }

  .secondary-actions .btn-secondary {
    width: 100%;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 20mm;
  }

  body {
    background-color: white;
  }

  .header,
  .btn,
  .steps-container,
  .button-group {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .main-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* ============================================
   HEADER – LOGO + CONTACT + ENQUIRY
   ============================================ */
.header {
  background: rgba(255,255,255,0.96);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.header-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.header-phone,
.header-email {
  font-size: 0.82rem;
  color: var(--color-dark-blue);
  font-weight: 500;
}

.btn-enquiry {
  background: linear-gradient(135deg, #0070B8, #1D3557);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  width: auto;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 10px rgba(0,112,184,0.3);
}
.btn-enquiry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,112,184,0.45);
}

/* ============================================
   ENQUIRY MODAL
   ============================================ */
.enquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.enquiry-overlay.hidden {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.enquiry-box {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 360px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.enquiry-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.enquiry-close:hover { background: var(--color-gray-200); }

.enquiry-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

.enquiry-box h3 {
  font-size: 1.3rem;
  color: var(--color-dark-blue);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.enquiry-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-gray-100);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  text-align: left;
}
.enquiry-icon { font-size: 1.4rem; }
.enquiry-item a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.enquiry-item a:hover { text-decoration: underline; }

.enquiry-close-btn {
  margin-top: 1rem;
  width: 100%;
  border-radius: 50px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark-blue);
  color: #fff;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.5rem;
  font-style: italic;
}

.footer-contact-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-yellow);
}

.footer-contact-col p {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.85);
}

.footer-contact-col a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-contact-col a:hover { color: var(--color-yellow); }

.footer-enquiry-col {
  display: flex;
  align-items: center;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   RESPONSIVE HEADER ADJUSTMENTS
   ============================================ */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-contact {
    align-items: center;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-contact-col {
    text-align: center;
  }
}

