/* 🌿 afspraak.css - Aanmeldingsformulier versie */
/* =============================================== */
/* 🧭 Algemene layout */
body {
  font-family: "Poppins", sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* =============================================== */
/* 🌿 Hero sectie */
.afspraak-hero {
  position: relative;
  background: url("/assets/img/afspraakBG.png") center/cover no-repeat;
  color: #fff;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}

.afspraak-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 10, 0.75);
  z-index: 1;
}

.afspraak-hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 45%;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 550px;
}

.hero-buttons {
  margin-top: 1.5rem;
}

.hero-buttons a {
  margin-right: 1rem;
}

.hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.hero-image img {
  max-width: 50%;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* =============================================== */
/* 🔍 ZOEKBALK IN HERO SECTIE */
.hero-zoekbalk-container {
  max-width: 600px;
  margin-top: 2rem;
  position: relative;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.hero-zoekbalk {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

.hero-zoek-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: all 0.3s ease;
  color: #222;
  box-sizing: border-box;
}

.hero-zoek-input::placeholder {
  color: #666;
}

.hero-zoek-input:focus {
  box-shadow: 0 0 0 3px rgba(30, 111, 67, 0.2);
}

.hero-zoek-btn {
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, #1e6f43, #2a9e5c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.hero-zoek-btn:hover {
  background: linear-gradient(135deg, #1b5a38, #23884f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Zoekresultaten dropdown */
.hero-zoek-resultaten {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  margin-top: 0.8rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.hero-resultaten-lijst {
  padding: 0.5rem;
}

.hero-zoek-resultaat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}

.hero-zoek-resultaat-item:last-child {
  border-bottom: none;
}

.hero-zoek-resultaat-item:hover {
  background: #e7f5ee;
  transform: translateX(5px);
}

.hero-resultaat-icon {
  font-size: 1.5rem;
  min-width: 40px;
  text-align: center;
}

.hero-resultaat-content {
  flex: 1;
}

.hero-resultaat-titel {
  font-weight: 600;
  color: #1e6f43;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.hero-resultaat-titel strong {
  background: rgba(30, 111, 67, 0.2);
  padding: 0 0.2rem;
  border-radius: 3px;
}

.hero-resultaat-beschrijving {
  font-size: 0.9rem;
  color: #444;
}

.hero-geen-resultaten {
  padding: 2rem;
  text-align: center;
  color: #444;
}

.hero-geen-resultaten p {
  margin: 0.5rem 0;
}

.hero-zoek-suggestie {
  text-align: center;
}

/* =============================================== */
/* 📝 Aanmelding sectie */
.afspraak-aanmelding {
  background: #f5f5f5;
  padding: 5rem 1rem;
}

.aanmelding-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.aanmelding-intro h2 {
  color: #1e6f43;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.aanmelding-intro p {
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.info-box {
  background: #fff3cd;
  border-left: 4px solid #ff9800;
  padding: 1.2rem;
  border-radius: 8px;
  color: #856404;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.info-box strong {
  display: block;
  margin-bottom: 0.5rem;
}

/* =============================================== */
/* 📋 Formulier styling */
.aanmelding-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.form-section h3 {
  color: #1e6f43;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aanmelding-form label {
  display: block;
  font-weight: 600;
  color: #1e6f43;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.aanmelding-form input[type="text"],
.aanmelding-form input[type="email"],
.aanmelding-form input[type="tel"],
.aanmelding-form input[type="number"],
.aanmelding-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #ddd;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.aanmelding-form input:focus,
.aanmelding-form textarea:focus {
  border-color: #1e6f43;
  box-shadow: 0 0 0 3px rgba(30,111,67,0.15);
  outline: none;
}

.aanmelding-form small {
  font-size: 0.85rem;
}

/* 🏡 Adresvelden layout */
.adres-groep {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.adres-item label {
  margin-top: 0 !important;
}

/* ✅ Checkbox styling */
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1rem !important;
  cursor: pointer;
  font-weight: 400 !important;
  color: #444 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin-top: 0.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
}

.checkbox-label a {
  color: #1e6f43;
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: #155d35;
}

/* 🔘 Buttons */
.form-buttons {
  margin-top: 2.5rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #1e6f43, #2a9e5c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 111, 67, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1b5a38, #23884f);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 111, 67, 0.3);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.form-footer-text {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* =============================================== */
/* 💚 Bedanksectie */
.afspraak-thanks {
  background: linear-gradient(135deg, #e3f8ec, #d4f3e3);
  text-align: center;
  padding: 3rem 1rem;
  color: #064f2e;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.afspraak-thanks .container {
  max-width: 800px;
  margin: 0 auto;
}

.afspraak-thanks h2 {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
  color: #0d6538;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.afspraak-thanks p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #123c23;
  margin-bottom: 1.8rem;
}

.afspraak-thanks .btn {
  display: inline-block;
  background: linear-gradient(135deg, #1e6f43, #2a9e5c);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.afspraak-thanks .btn:hover {
  background: linear-gradient(135deg, #1b5a38, #23884f);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* =============================================== */
/* 📱 RESPONSIVE DESIGN */
@media (max-width: 768px) {
  /* Hero sectie */
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .hero-image {
    flex: 1 1 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-buttons a {
    margin-right: 0;
  }

  .hero-image img {
    max-width: 70%;
  }

  /* Zoekbalk */
  .hero-zoekbalk-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 0 0 !important;
    padding: 0 !important;
  }

  .hero-zoekbalk {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.8rem !important;
  }

  .hero-zoek-input,
  .hero-zoek-btn {
    width: 100% !important;
  }

  .hero-zoek-resultaten {
    margin-top: 0.6rem !important;
  }

  .hero-zoek-resultaat-item {
    padding: 0.8rem !important;
  }

  .hero-resultaat-icon {
    font-size: 1.2rem;
    min-width: 30px;
  }

  .hero-resultaat-titel {
    font-size: 0.9rem;
  }

  .hero-resultaat-beschrijving {
    font-size: 0.85rem;
  }

  /* Aanmelding sectie */
  .aanmelding-intro h2 {
    font-size: 1.8rem;
  }

  .aanmelding-intro p {
    font-size: 1rem;
  }

  .aanmelding-form {
    padding: 1.5rem 1.2rem;
  }

  .form-section h3 {
    font-size: 1.2rem;
  }

  /* Adres velden stapelen op mobiel */
  .adres-groep {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }

  /* Bedank sectie */
  .afspraak-thanks {
    padding: 2rem 1rem;
  }

  .afspraak-thanks h2 {
    font-size: 1.8rem;
  }

  .afspraak-thanks p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }

  .hero-zoekbalk {
    padding: 0.6rem !important;
  }

  .hero-zoek-input,
  .hero-zoek-btn {
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem;
  }

  .aanmelding-intro h2 {
    font-size: 1.6rem;
  }

  .form-section h3 {
    font-size: 1.1rem;
  }

  .btn-large {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}