:root {
  --primary: #1e40af;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --border: #e2e8f0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lookup-box, .form-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input, textarea, button {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  opacity: 0.9;
}

.results-card {
  margin-top: 1rem;
  padding: 1rem;
  background: #f1f5f9;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.photo-card {
  background: #e2e8f0;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Registration Banner Image Styles */
.registration-image-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.registration-image {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}
/* Countdown Banner Styles */
.countdown-card {
  text-align: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
  border: none;
  box-sizing: border-box;
}

.countdown-card h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-size: 1.4rem;
}

.countdown-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #e0e7ff;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  display: inline-block;
}

/* Fluid timer grid */
.timer-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.5rem auto;
  max-width: 100%;
}

.timer-unit {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  flex: 1 1 0;
  max-width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.timer-unit span {
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-unit label {
  font-size: clamp(0.6rem, 2.2vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  opacity: 0.85;
}

.event-details {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: #e2e8f0;
}

.countdown-cta {
  display: inline-block;
  background-color: #f59e0b;
  color: #111827;
  font-weight: bold;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.countdown-cta:hover {
  background-color: #d97706;
  transform: translateY(-2px);
}
