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

:root {
    --ff: 'Verdana' , sans-serif;
    --primary-color: #b6c99c;
    --secondary-color: #cee0b8;
	  --coloraccent: #95a87a;
    --tertiary-color: #f4f4f4;
    --colorbackground: #ffffff;
}

/* Body standaard houden */
body {
  height: 100vh;
  background-color: var(--colorbackground);
  display: block; /* Geen flex meer nodig */
	font-family: var(--ff);
}

.information, .extra-info, .form-container {
  display: flex;
  flex-direction: row; /* Zet alles naast elkaar */
  justify-content: center; /* Centreert verticaal */
  align-items: center; /* Centreert horizontaal */
  margin-bottom: 2rem;
  gap: 2rem; /* Ruimte tussen de secties */
  background-color: var(--coloraccent); /* Achtergrondkleur toegevoegd */
  padding: 2rem; /* Ruimte binnen het kader */
  border-radius: 12px; /* Ronde hoeken */
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2); /* Subtiele schaduw */
  max-width: 800px; /* Uniforme breedte */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contact-detailsx, .openingstijdenx {
  text-align: center;
  flex: 1; /* Zorgt ervoor dat beide secties even groot zijn */
}

.extra-info, .form-container {
  max-width: 800px; /* Zelfde breedte als .information */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contact-detailsx, .openingstijdenx {
  text-align: center; /* Tekst gecentreerd */
  width: 100%; /* Past de breedte aan zodat alles gelijk is */
}

.contact-detailsx p, .openingstijdenx p {
  margin: 0.2rem 0; /* Ruimte tussen paragrafen */
  color: #ffffff;
  font-size: 1rem; /* Consistente lettergrootte */
}

.openingstijdenx p {
  white-space: nowrap; /* Voorkomt dat de tekst splitst */
}

.openingstijdenx strong {
  color: #ffffff; /* Gebruik de accentkleur voor nadruk */
  font-weight: bold;
}

.extra-info {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centreert verticaal */
  align-items: center; /* Centreert horizontaal */
  text-align: center;
  gap: 1px;
  margin-top: -20px;
  margin-bottom: 10px;
}

.extra-info p {
  color: white;
  margin-bottom: 1rem; /* Zorg voor ruimte tussen de regels */
  font-size: 1rem; /* Consistente lettergrootte */
  margin: 0.4rem; /* Zorgt ervoor dat de tekst mooi verdeeld wordt */
}

.extra-info p strong {
  color: white; /* Gebruik de accentkleur voor nadruk */
  font-style: italic;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* Flexbox toepassen op .contact */
.contact {
  display: flex;
  flex-wrap: wrap; /* Zorgt ervoor dat elementen naar beneden vallen */
  max-width: 1200px;
  margin: 150px auto;
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.map {
  width: 100%; /* Breedte volledig benutten */
  aspect-ratio: 16 / 9; /* Houd een verhouding van 16:9 vast */
  object-fit: cover; /* Schaal inhoud zonder vervormen */
}


.map, .form {
  width: 50%; /* Beide nemen 50% van de breedte in */
  min-height: 400px; /* Vaste minimale hoogte */
}

.map iframe {
  width: 100%;
  height: 100%; /* Zorgt dat de kaart de container vult */
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem;
}

.form h1 {
  color: #ffffff;
  font: 750 3rem var(--ff);
  color: var(--coloraccent);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.form form {
  margin-bottom: 2rem;
}

.form input, .form textarea {
  width: 100%;
  padding: 1rem;
  border: 0.2rem solid var(--tertiary-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 1rem;
  box-shadow: 0 0.2rem 0.1rem rgba(0, 0, 0, 0.2);
}

.form button {
  height: 50px;
  width: 260px;
  border: none;
  border-radius: 12px;
  background-color: var(--coloraccent);
  color: #fff;
  font: 500 1rem var(--ff);
  cursor: pointer;
  align-self: center;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}


.form button:hover {
  background-color: var(--primary-color);
  transition: all 0.2s ease;
}

/* Pop-up en overlay styling */
#success-popup, #loading-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border: 2px solid #b6c99c;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  z-index: 1000;
}
#success-popup button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #b6c99c;
  color: #ffffff;
  cursor: pointer;
}
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Stijl voor de laad-popup */
#loading-popup {
  font-size: 16px;
  color: #333;
}

a {
  color: var(--coloraccent);
  text-decoration: none !important;
}

a:hover {
  color: var(--coloraccent);
  text-decoration: none !important;
  cursor:pointer;
}

textarea{
  height: 150px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .contact {
    margin-top: 150px;
    flex-direction: column;
  }

  .information{
    width: 100%;
  }

  .map, .form {
    width: 100%;
    min-height: 350px; /* Vaste minimale hoogte */
  }

  .form {
    padding: 1.5rem;
  }

  .form h1 {
    font-size: 40px;
  }

  .form button {
    width: 260px;
    height: 50px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .contact {
    margin-top: 150px;
    flex-direction: column;
  }

  .map {
    aspect-ratio: 4 / 3; /* Meer hoogte op kleinere schermen */
  }

  .form {
    padding: 2rem;
    min-height: auto; /* Laat de hoogte meegroeien met inhoud */
  }

  .form h1 {
    font-size: 40px;
  }

  .form input,
  .form textarea {
    font-size: 0.9rem;
  }

  .form button {
    width: 260px;
    height: 50px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .contact {
    margin-top: 150px;
    flex-direction: column;
  }

  .map {
    min-height: 250px; /* Kleinere kaart */
  }

  .form {
    padding: 1rem;
  }

  .form h1 {
    font-size: 40px;
  }

  .form input,
  .form textarea {
    padding: 0.8rem;
    font-size: 0.8rem;
  }

  .form button {
    width: 260px;
    height: 50px;
    font-size: 1rem;
  }

  .information {
    width: 100%;
    flex-direction: column; /* Zet items onder elkaar */
    align-items: flex-start; /* Lijn ze links uit */
    gap: 1rem; /* Verminder ruimte tussen secties */
    padding: 1.5rem; /* Verminder de padding */
    text-align: left; /* Tekst links uitlijnen */
  }

  .contact-detailsx, .openingstijdenx {
    width: 100%; /* Laat beide secties de volledige breedte gebruiken */
  }

  .contact-detailsx p, .openingstijdenx p {
    font-size: 0.9rem; /* Iets kleiner lettertype voor mobiele leesbaarheid */
  }
}

@media (max-width: 480px) {
  .contact {
    margin-top: 150px;
    flex-direction: column;
  }

  .map {
    aspect-ratio: 1 / 1; /* Vierkante kaart voor kleine schermen */
    max-height: 300px;
  }

  .form {
    padding: 1.5rem;
  }

  .form h1 {
    font-size: 40px;
  }

  .form input,
  .form textarea {
    padding: 0.6rem;
    font-size: 0.75rem;
  }

  .form button {
    width: 260px;
    height: 50px;
    font-size: 1rem;
  }

  .information {
    width: 100%;
    flex-direction: column; /* Zet items onder elkaar */
    align-items: flex-start; /* Lijn ze links uit */
    gap: 1rem; /* Verminder ruimte tussen secties */
    padding: 1.5rem; /* Verminder de padding */
    text-align: left; /* Tekst links uitlijnen */
  }

  .contact-detailsx, .openingstijdenx {
    width: 100%; /* Laat beide secties de volledige breedte gebruiken */
  }

  .contact-detailsx p, .openingstijdenx p, .extra-info p {
    font-size: 0.9rem; /* Iets kleiner lettertype voor mobiele leesbaarheid */
  }
}

@media (max-width: 360px) {
  .form {
    padding: 1rem;
  }
  
  .form h1 {
    font-size: 1.6rem;
  }

  .map {
    min-height: 180px;
  }

  .form input,
  .form textarea {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  .form button {
    width: 100px;
    padding: 0.6rem;
    font-size: 0.7rem;
  }

  .information {
    width: 100%;
    flex-direction: column; /* Zet items onder elkaar */
    align-items: flex-start; /* Lijn ze links uit */
    gap: 1rem; /* Verminder ruimte tussen secties */
    padding: 1.5rem; /* Verminder de padding */
    text-align: left; /* Tekst links uitlijnen */
  }

  .contact-detailsx, .openingstijdenx {
    width: 100%; /* Laat beide secties de volledige breedte gebruiken */
  }

  .contact-detailsx p, .openingstijdenx p {
    font-size: 0.9rem; /* Iets kleiner lettertype voor mobiele leesbaarheid */
  }
}
