:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logos configured to height: 56px and width: auto */
.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-wrapper img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.session-nav-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.nav-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Main Container & Card */
.page-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 520px;
  padding: 2rem;
}

.card-header {
  margin-bottom: 1.75rem;
}

.event-badge {
  display: inline-block;
  background-color: #eff6ff;
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  margin-bottom: 0.75rem;
}

.card-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

label, .group-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.required {
  color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background-color: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  background-color: var(--surface-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Radio Group */
.radio-options {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.radio-pill input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: var(--primary-color);
}

.radio-pill:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background-color: #eff6ff;
  color: var(--primary-color);
  font-weight: 600;
}

/* Submit Button & Spinner */
.btn-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.15s;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-banner {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #fecaca;
  text-align: center;
}

/* Modal Overlay & Modal Card */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
}

.modal-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.redirect-notice {
  font-size: 0.875rem;
  color: #475569;
  background-color: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

#countdown {
  font-weight: 700;
  color: var(--primary-color);
}

.btn-redirect {
  display: block;
  width: 100%;
  text-decoration: none;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s;
}

.btn-redirect:hover {
  background-color: var(--primary-hover);
}

/* Responsive adjustment for small screens */
@media (max-width: 640px) {
  .logo-wrapper img {
    height: 42px;
  }
  .session-nav-title {
    font-size: 0.9rem;
  }
}