/* Special background image for contact hero */
.hero-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  max-width: 900px;
  max-height: 80vh;
  min-width: 320px;
  min-height: 200px;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  max-width: 700px;
  max-height: 70vh;
  min-width: 200px;
  min-height: 120px;
  object-fit: contain;
  opacity: 0.2;
  filter: none;
  mix-blend-mode: normal;
  display: block;
  margin: 0 auto;
}
.hero-content {
  position: relative;
  z-index: 1;
}

/* === MODERN CSS RESET === */
/* Source: https://github.com/hankchizljaw/modern-css-reset */
:where(:not(html, iframe, canvas, img, svg, video):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}
html {
  height: 100%;
  min-height: 100vh;
  padding-bottom: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}

/* End CSS Reset */
/* === BREAKPOINTS (referentie) === */
/*
Mobile S: max-width: 600px
Mobile L / Tablet: max-width: 800px
Tablet landscape: max-width: 1024px
Desktop: >1024px
*/

/* === CUSTOM PROPERTIES & BREAKPOINTS === */
:root {
  --dark-bg: #e6e6e6;
  --darker-bg: #636363;
  --accent: #006079;
  --accent-dark: #00607966;
  --accent-glow: #00607966;
  --secondary: #367c2b;
  --hover: #ffd700;
  --hover-text: #000000;
  --text: #ffffff;
  --subtext: #cccccc;
  --nav: #0f192dff;
  --navtitle: #c5c5c5;
  --text-white: #ffffff;
  --border-light: #ffffff1a;
  --bg-card: #ffffff0d;
  --bg-hover: #ffffff0d;
  --border: #367c2b;
  --text-black: #000000;
  --breakpoint-sm: 600px;
  --breakpoint-md: 800px;
  --breakpoint-lg: 1024px;
}

body {
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0 !important;
}

h1 {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

p {
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

small {
  font-size: 1.2rem;
  color: var(--text-black);
  font-weight: 400;
}

/* Navigation */

.navbar {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  margin-bottom: 1rem;
  background: var(--nav);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--accent);
  font-size: 1.5rem;
}

.navbar a:hover, .navbar li:hover {
  color: var(--hover);
  text-decoration: none;
}

.navbar a, .navbar li {
  cursor: pointer;
}

.navlogo {
  height: 3rem;
  padding-inline: 2rem;
  cursor: pointer;
  color: var(--navtitle);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navlogo a {
  color: var(--navtitle);
  text-decoration: none;
  cursor: pointer;
}

.navlogo img {
  display: inline-block;
  height: 3rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.nav-links li {
  display: inline-flex;
}

.nav-icons {
  display: flex;
  justify-content: end;
  gap: 1rem;
  padding-inline: 2rem;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--nav);
    position: absolute;
    top: 65px;
    left: 50%;
    /* Slight left nudge to correct visual offset */
    transform: translateX(-90%);
    width: 220px;
    padding: 1rem;
    border-radius: 8px;
    transition: max-height 0.3s ease;
    overflow: hidden;
    justify-content: flex-start;
    z-index: 1000;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 1;
  }
  .nav-collapsible { position: relative; }
  /* CSS-only open state: keep open while focus is on toggle or menu links */
  .nav-collapsible:focus-within .nav-links {
    display: flex;
  }
}

/* 768px rules consolidated later */

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    padding: 0;
    background: none;
  }
  .nav-links a {
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero Section */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  margin: 0;
}

/* 768px rules consolidated later */

.hero img {
  width: clamp(200px, 30vw, 350px);
  height: clamp(200px, 30vw, 350px);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  z-index: -1; /* zet het achter de afbeelding */
}

.hero-content {
  z-index: 1;
  width: 100%;
  max-width: 700px;
  min-width: 200px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  margin: 0;
}

@media (max-width: 1920px) {
  .hero-content {
    flex: 1;
    padding-right: 2rem;
    text-align: center;
  }
}

/* 768px rules consolidated later */
.hero h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--accent) 40%, var(--secondary) 60%);
  margin: 0 auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-black);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  background-color: var(--secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--hover);
  color: #000;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Footer */

.footer {
  margin-top: auto;
  width: 100%;
  background-color: var(--nav);
  color: var(--navtitle);
  padding: 3rem 5% 0 5%;
  border-bottom: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 1rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
}

.footer-col h3,
.footer-col h4,
.footer-col p,
.footer-col ul li a {
  color: var(--navtitle);
  margin-bottom: 0.5rem;
}

.footer-bottom p {
  color: var(--navtitle);
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  cursor: pointer;
}

.footer-col ul li :hover {
  color: var(--hover);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

.social-icons a {
  margin-right: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.social-icons a:hover {
  color: var(--hover);
}

.policy-content, .policy-content p, .policy-content li {
  color: var(--text-black);
}

/* 768px rules consolidated later */

/* === Unieke aanvullingen uit calculation.styles.css === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: auto;
}

#previousAnswers:empty {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--secondary);
  color: var(--text-black);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background-color: var(--hover);
  color: var(--hover-text);
}

.quiz-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: 60vh;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.question {
  max-width: 1200px;
  width: 100%;
  margin-bottom: 2rem;
}

.question h2 {
  margin-bottom: 1rem;
}

.question a.answer {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0.5rem auto;
  padding: 1rem;
  font-size: 1.1rem;
}

.question-box {
  scroll-margin-top: 160px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  margin-top: 160px;
  padding: 2rem 2rem 3.5rem 2rem;
  margin: 1rem 0;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 10px 30px var(--accent-glow);
  backdrop-filter: blur(5px);
  display: grid;
}

.answer-container {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  gap: 1.5rem;
}

/* === RESPONSIVE STYLES === */
/* Mobiel */
@media (max-width: 600px) {
  .answer-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 799px) {
  .answer-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* Klein desktop */
@media (min-width: 800px) {
  .answer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
}

.answer:hover {
  background-color: var(--accent);
  color: var(--text-black);
}

.answer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 100px; /* Flex-grow to take up more space */
  background-color: var(--dark-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: space-between;
}

.answer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--accent-glow);
}

.answer-card h3 {
  margin-top: 0;
  font-weight: bold;
  color: var(--text-black);
}

.answer-card p {
  font-style: italic;
  color: var(--text-black);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.answer-card .cta-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  border: 2px solid var(--border);
  background-color: var(--accent);
  color: var(--text);
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: auto;
  align-self: center;
  height: auto;
}

.answer-card .cta-button:hover,
.cta-button:focus,
.cta-button:active {
  background-color: var(--hover);
  color: var(--hover-text);
}

.answer-overview {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.answer-overview li {
  margin-bottom: 0.75rem;
}

.antwoord-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kolommen */
  gap: 1rem;
  margin-top: 2rem;
}

.antwoord-grid h4 {
  color: var(--text-black);
  grid-column: span 4; /* Titel over alle kolommen */
  text-align: center;
  margin-bottom: 1rem;
}

.antwoord-grid p {
  color: var(--text-black);
  grid-column: span 4; /* Titel over alle kolommen */
  text-align: center;
  margin-bottom: 1rem;
}

.antwoord-grid .answer-button {
  margin-bottom: 10px;
}

/* Responsief gedrag op kleinere schermen */
@media (max-width: 1024px) {
  .antwoord-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 kolommen */
  }
}

@media (max-width: 600px) {
  .antwoord-grid {
    grid-template-columns: 1fr; /* 1 kolom */
  }
}

.edit-answer-button {
  height: 50px;
  width: 100%;
  border-radius: 5px;
  text-align: center;
  background-color: var(--secondary);
  color: var(--text);
}

.edit-answer-button:hover {
  background-color: var(--hover);
  color: var(--hover-text);
}

@media (max-width: 500px) {
  .edit-answer-button {
    width: 100%;
    font-size: 1rem;
  }
}

.progress-wrapper {
  width: 100%;
  padding: 0.5rem 5%;
  background-color: transparent;
  position: sticky;
  top: 90px;
  z-index: 1100;
  margin-top: 0;
}

.progress-bar-outer {
  width: 100%;
  height: 25px;
  background-color: var(--text-black);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 0 15px var(--accent-glow);
  margin: 0 auto;
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #2ecc71);
  color: var(--text-white);
  text-align: center;
  line-height: 25px;
  font-weight: bold;
  border-radius: 50px;
  transition: width 0.5s ease-in-out;
}

.prijs-box {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, var(--accent), var(--accent-dark));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1.5rem 0;
  text-align: center;
}

/* Consolidated @media (max-width: 768px) */
@media (max-width: 768px) {
  /* Navigation */
  .nav-icons {
    display: none; /* verberg op mobiel */
  }
  .menu-toggle {
    display: block;
    text-align: end;
    padding-right: 2rem;
  }

  .navbar {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  /* Hero adjustments (early) */
  .hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding-top: 8rem;
  }
  .hero-content {
    padding-right: 0;
    padding-left: 0;
    width: 100%;
    text-align: center;
  }

  /* Hero adjustments (later overrides) */
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }
  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  .profile-img {
    width: 280px;
    height: 280px;
  }
}
