/* === DIO'30 Sponsoravond — Branding & Layout === */

:root {
  --dio-red: #D40E2E;
  --dio-red-dark: #B50C27;
  --dio-red-light: #fef2f2;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* === HERO === */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111;
  color: var(--white);
  overflow: hidden;
  padding: 3rem 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(139, 10, 30, 0.9) 0%, rgba(139, 10, 30, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero .subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero .datum {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  backdrop-filter: blur(4px);
}

.hero .cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 2.5rem;
  background: var(--white);
  color: var(--dio-red);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* === SECTIONS === */

.section {
  padding: 4rem 1.5rem;
}

.section--alt {
  background: var(--gray-50);
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dio-red);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

/* === INTRO === */

.intro-text {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 720px;
}

.intro-text p + p {
  margin-top: 1rem;
}

/* === PROGRAMMA === */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--dio-red);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--dio-red);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--dio-red);
}

.timeline-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dio-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.25rem 0 0.25rem;
}

.timeline-desc {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* === SPREKERS === */

.sprekers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.spreker-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.spreker-foto {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  border: 4px solid var(--dio-red);
}

.spreker-foto[alt="Carlos Aalbers"] {
  object-position: center top;
}

.spreker-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.spreker-functie {
  color: var(--dio-red);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.spreker-bio {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.onderwerpen {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.onderwerpen h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.onderwerpen ul {
  list-style: none;
  padding: 0;
}

.onderwerpen li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--gray-700);
  font-size: 1rem;
}

.onderwerpen li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--dio-red);
  border-radius: 50%;
}

/* === FORMULIER INFO === */

.form-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--gray-700);
  font-size: 0.95rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--dio-red);
}

/* === LOCATIE === */

.locatie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.locatie-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.locatie-info p {
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.locatie-info .adres {
  font-style: normal;
  line-height: 1.8;
}

.locatie-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.locatie-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* === FORMULIER === */

.section--form .section-title,
.section--form .section-subtitle {
  text-align: center;
}

.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--dio-red);
  box-shadow: 0 0 0 3px rgba(212, 14, 46, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--dio-red);
  background: var(--dio-red-light);
}

.gasten-fieldset {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.gasten-fieldset legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dio-red);
  padding: 0 0.5rem;
}

.form-group .error-msg {
  color: var(--dio-red);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group .error-msg.visible {
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 0.95rem;
  background: var(--dio-red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: var(--dio-red-dark);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.captcha-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
}

.captcha-group input {
  width: 120px;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.form-message {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.form-message.error {
  display: block;
  background: var(--dio-red-light);
  color: var(--dio-red);
}

/* === FOOTER === */

.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logos img {
  height: 48px;
  width: auto;
}

.footer-logos img[alt="VideoGuard"] {
  filter: brightness(0) invert(1);
}

.footer-logos .divider {
  width: 1px;
  height: 40px;
  background: var(--gray-500);
}

.footer p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}

.footer a {
  color: var(--gray-200);
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
}

/* === BEDANKPAGINA === */

.bedankt-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dio-red) 0%, #8B0A1E 100%);
  padding: 2rem;
}

.bedankt-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bedankt-card .checkmark {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.bedankt-card h1 {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.bedankt-card p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.bedankt-card .details {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.bedankt-card .details dt {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.bedankt-card .details dd {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.bedankt-card .details dd:last-child {
  margin-bottom: 0;
}

.bedankt-card .back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--dio-red);
  font-weight: 600;
  text-decoration: none;
}

.bedankt-card .back-link:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.5rem;
  }

  .locatie-grid {
    grid-template-columns: 1fr;
  }

  .sprekers-grid {
    grid-template-columns: 1fr;
  }

  .spreker-foto {
    width: 120px;
    height: 120px;
  }

  .footer-logos img {
    height: 36px;
  }
}
