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

:root {
  --primary: #0f172a;      /* Deep Navy / Slate */
  --primary-light: #1e293b;
  --accent: #d4af37;       /* Elegant Gold */
  --accent-hover: #f1c40f;
  --bg-color: #f8fafc;     /* Light grayish blue */
  --surface: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border: #e2e8f0;
  --error: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  
  --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-gold: 0 4px 14px 0 rgba(212, 175, 55, 0.39);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── GALLERY ── */
.gallery {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: var(--primary);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7; /* Darkened slightly to make it look premium */
  transition: transform 5s ease;
}

.gallery-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0) 100%);
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px; 
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
}

.gallery-arrow:hover { 
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev { left: 24px; }
.gallery-arrow.next { right: 24px; }

.gallery-nav {
  position: absolute;
  bottom: 120px; /* Moved up to make room for the overlay title */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.gallery-dot {
  width: 10px; 
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.gallery-dot.active { 
  background: var(--accent); 
  width: 24px;
  border-radius: 10px;
}

/* ── TITLE OVERLAY BLOCK ── */
.main-title-wrapper {
  position: relative;
  margin-top: -100px;
  z-index: 20;
  text-align: center;
  padding: 0 20px;
}

.main-title-content {
  max-width: 950px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 50px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: #fff;
  transform: translateY(0);
}

.main-title-content h1 {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(to right, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-title-content p {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ── EVENT STRIP ── */
.event-strip {
  margin-top: 30px;
  padding: 0 20px;
}

.event-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.strip-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strip-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.3);
}

.strip-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
  background: rgba(212, 175, 55, 0.1);
  padding: 6px;
  border-radius: 8px;
}

.strip-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.strip-item strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

/* ── MAIN CONTENT ── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.6rem;
  color: var(--primary);
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── ALERTS ── */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

.alert svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.alert-success { 
  background: #ecfdf5; 
  color: #065f46; 
  border: 1px solid #a7f3d0; 
}
.alert-success svg { color: var(--success); }

.alert-error { 
  background: #fef2f2; 
  color: #991b1b; 
  border: 1px solid #fecaca; 
}
.alert-error svg { color: var(--error); }

.alert-warning { 
  background: #fffbeb; 
  color: #92400e; 
  border: 1px solid #fde68a; 
}
.alert-warning svg { color: var(--warning); }

.full-capacity {
  flex-direction: column;
  text-align: center;
  padding: 30px;
  gap: 16px;
}

.full-capacity svg {
  width: 48px;
  height: 48px;
}

.full-capacity strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
}

/* ── CAPACITY INFO ── */
.capacity-info {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.capacity-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.active-count strong, .remaining-count strong {
  font-size: 1.1rem;
  color: var(--primary);
}

.remaining-count strong {
  color: var(--accent);
}

.capacity-bar-wrap {
  background: var(--border);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.capacity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, var(--accent));
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.capacity-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

/* ── TABS ── */
.form-tabs {
  display: flex;
  background: var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: calc(var(--radius-lg) - 6px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn.active svg {
  color: var(--accent);
}

/* ── FORM ── */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.8);
}

.form-section-label {
  display: flex;
  align-items: center;
  margin: 32px 0 20px;
}

.form-section-label:first-of-type {
  margin-top: 0;
}

.form-section-label span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
}

.form-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 16px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.req {
  color: var(--error);
}

.form-group input,
.select-wrapper select {
  width: 100%;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-color);
  transition: all 0.3s ease;
}

.form-group input:hover,
.select-wrapper select:hover {
  border-color: #cbd5e1;
}

.form-group input:focus,
.select-wrapper select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrapper svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.children-block {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 10px;
  border: 1px dashed var(--border);
}

.child-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.child-row:last-child {
  margin-bottom: 0;
}

.child-row label {
  min-width: 100px;
  font-weight: 600;
  color: var(--text-main);
}

.child-select {
  flex: 1;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}

.submit-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

.submit-btn:active {
  transform: translateY(2px);
}

/* ── PROGRAM INFO ── */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  margin-top: 60px;
}

.info-card {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.info-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.info-card-header svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.info-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.program-list {
  list-style: none;
}

.program-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.program-list li:last-child {
  border-bottom: none;
}

.program-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.program-list li span {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.info-val {
  font-size: 0.95rem;
  color: #f8fafc;
  line-height: 1.4;
}

/* ── FOOTER ── */
footer {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-logo p {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 4px;
}

.footer-copy {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

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

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

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .event-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gallery { height: 400px; }
  .gallery-nav { bottom: 100px; }
  .gallery-arrow { width: 40px; height: 40px; }
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
  
  .main-title-wrapper { margin-top: -80px; padding: 0 15px; }
  .main-title-content { padding: 20px 15px; }
  .main-title-content h1 { font-size: 2.1rem; letter-spacing: 1px; line-height: 1.15; margin-bottom: 6px; }
  .main-title-content p { font-size: 1.05rem; }
  
  .event-strip-inner { grid-template-columns: 1fr; gap: 12px; }
  .strip-item { padding: 16px; }
  
  .container { padding: 40px 15px; }
  
  .section-header h2 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.5px; word-spacing: -2px; }
  .section-header p { font-size: 0.95rem; }

  .form-card { padding: 20px; }
  .form-row { flex-direction: column; gap: 16px; }
  
  .info-grid { grid-template-columns: 1fr; }
  
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
}
