/* ==========================================================
   CONTACT PAGE
   ----------------------------------------------------------
   1. Hero (banner)
   2. Contactformulier (met overlap)
   3. Contactinformatie / kaart
   4. Responsiveness
========================================================== */

.page-contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* ==========================================================
   1. HERO
========================================================== */
.contact-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1980px;
  margin: 0 auto;
  z-index: 1;
}

.contact-hero__bg img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
    max-height: 587px;
}

.contact-hero__card {
  position: absolute;
  top: 40%;
  /*left: clamp(24px, 6vw, 140px);*/
  transform: translateY(-50%);
  width: min(740px, 54vw);
  padding: clamp(32px, 4vw, 44px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.contact-hero__card h1 {
  color: var(--color-primary);
  font-size: clamp(2.2rem, 2.3vw + 1rem, 3rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.contact-hero__phone {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 1rem 0 1.5rem;
}

.contact-hero__phone .phone-icon {
  width: 38px;
  height: auto;
}

.phone-link__num {
  color: var(--color-accent);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Tekst + WhatsApp icoon naast elkaar */
.contact-hero__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #0b0b2a;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-hero__note p {
  margin: 0;
  flex: 1;
  text-align: left;
}

.whatsapp-fab {
  width: 52px;
  height: 52px;
  border-radius: 20%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.whatsapp-fab i {
  font-size: 30px;
}
.whatsapp-fab i {
  font-size: 36px;
}

/* ==========================================================
   2. CONTACTFORMULIER
========================================================== */
.contact-form-block {
  position: relative;
  z-index: 2;
  margin-top: -5vw;
  padding-bottom: clamp(60px, 10vw, 120px);
}

.page-contact .contact-form-block::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1160px, 90%);
    height: clamp(40px, 5vw, 10px);
    background: #fff;
    z-index: 1;
    pointer-events: none;
}

.contact-form__wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  padding: clamp(32px, 4vw, 56px);
}

.contact-form__wrap h2 {
  color: var(--color-primary);
  font-weight: 800;
  font-size: clamp(1.8rem, 1vw + 1rem, 2.3rem);
  line-height: 1.3;
  margin: -0.2em 0 0.8rem;
}

/* ---------- Toggles (checkbox/radio) ---------- */
.contact-form__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: clamp(22px, 2.5vw, 30px);
}

.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f6f8;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  color: #111;
  transition: all 0.25s ease;
}

.chk:hover {
  background: #f0f0f2;
}

.chk input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 60, 0.2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chk input:checked {
  background-color: #0bb36f;
  border-color: #0bb36f;
}

.chk input:checked::after {
  content: "✔";
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}
/* Styling voor het geselecteerde blok */
.chk:has(input:checked) {
    background-color: #0bb36f !important; /* De groene kleur */
    color: #fff !important;               /* Tekst wit maken voor leesbaarheid */
    border-color: #0bb36f;
}

/* Zorg dat het vinkje (radio) wit wordt als het geselecteerd is */
.chk:has(input:checked) input {
    border-color: #fff;
    background-color: transparent;
}

.chk:has(input:checked) input:checked::after {
    color: #fff;
}

/* Optioneel: verander de tekstkleur van de span naar wit bij selectie */
.chk:has(input:checked) span {
    color: #fff;
}

/* ---------- Grid velden ---------- */
.contact-form .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2vw, 28px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.95rem;
  color: #1b1b3a;
  font-weight: 600;
}

.field input,
.field textarea {
  background: #f6f6f8;
  border: 1px solid rgba(0, 2, 60, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: #111;
  outline: none;
  transition: all 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(227, 183, 40, 0.15);
}

.field--full {
  grid-column: 1 / -1;
}

/* ---------- Verstuurknop ---------- */
.btn-send {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: clamp(28px, 3vw, 40px) auto 0;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-send:hover {
  background: #d3aa23;
  color: #fff;
  transform: translateY(-1px);
}

.btn-send:active {
  transform: translateY(0);
}

/* ==========================================================
   3. CONTACT INFO (met witruimte-blokken in HTML)
========================================================== */

.contact-info {
  position: relative;
  overflow: visible;
}

/* witruimteblokken boven en onder */
.contact-info__spacer {
  background: #fff;
  width: 100%;
  height: 200px;
}

/* achtergrondsectie */
.contact-info__background {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1980px;
  margin: 0 auto;
}

.contact-info__background > .container {
  position: relative;
  z-index: 2;
}

/* zwevende witte kaart */
.contact-overlap {
  position: relative;
  z-index: 5;
  background: #f4f4f4;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);

  /* overlap effect */
  margin-top: -120px;
  margin-bottom: -120px;

  /* vaste breedte en centrering */
  width: 1280px;
  max-width: 95%; /* voorkomt overflow op kleine schermen */
  margin-left: auto;
  margin-right: auto;

  /* binnenruimte */
  padding: clamp(60px, 5vw, 100px) clamp(40px, 4vw, 80px);
}

/* binnenkant */
.contact-box {
  text-align: center;
  margin: 0 auto;
}

.contact-box h3 {
  color: var(--color-primary);
  font-size: clamp(1.8rem, 1vw + 1.4rem, 2.4rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3vw, 60px);
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.contact-whatsapp {
  display: flex;
  align-items: center;
  gap: 14px;

}

.contact-whatsapp i {
  font-size: 27px;
  color: #fff;
  background: #33d951;
  padding: 0px 9px;
  border-radius: 5px;
}

.contact-whatsapp__text {
  text-align: left;
}

.contact-whatsapp__text p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.contact-whatsapp__text strong {
  font-size: 1.2rem;
  color: #000;
}

.contact-qr img {
  width: clamp(90px, 10vw, 120px);
  height: auto;
  border-radius: 4px;
  display: block;
}

/* blauwe kaart */
.contact-card {
  background: #09113e;
  color: #fff;
  border-radius: 6px;
  padding: clamp(30px, 4vw, 50px) 24px;
  max-width: 290px;
  margin: 0px auto;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 6;
}

.contact-card__logo {
  width: 90px;
  height: auto;
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contact-card__text p {
  margin: 6px 0;
  line-height: 2.0;
}
.contact-card__text p .alternate {
  color: #e4be26;
}

.contact-card__text a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-card__text a:hover {
  text-decoration: underline;
}



/* ==========================================================
   EXTRA RESPONSIVE AANPASSINGEN
   voor .contact-overlap en layout
========================================================== */

/* Groot scherm (boven 1600px) */
@media (min-width: 1600px) {
  .contact-overlap {
    width: 1280px;
  }
}

/* Laptops en desktops (tussen 1400px en 1599px) */
@media (max-width: 1599px) and (min-width: 1201px) {
  .contact-overlap {
    width: 1100px;
  }
}
@media (max-width: 1300px)  {
  .page-contact .contact-form-block::before {
    display: none;
  }
}
/* Tablets liggend (tussen 1025px en 1200px) */
@media (max-width: 1200px) and (min-width: 901px) {
  .contact-overlap {
    width: 90%;
    margin-top: -100px;
    margin-bottom: -100px;
    padding: 60px 50px;
  }
}

/* Tablets staand en kleine laptops (max 1024px) */
@media (max-width: 1024px) {
  .contact-overlap {
    width: 92%;
    margin-top: -80px;
    margin-bottom: -80px;
    padding: 50px 40px;
  }

  .contact-info__spacer {
    height: 160px;
  }
  .contact-form__wrap {
    margin-top: 220px;
  }

  .contact-hero__card {
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(90%, 640px);
    text-align: center;
    padding: 28px 28px;
  }

  .contact-hero__phone {
    justify-content: center;
    margin: 20px auto
  }

  .contact-hero__note {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }
}
@media (max-width: 908px) {
  .contact-hero__card h1{
    text-align: center;
  }
}
/* Mobiel groot (max 768px) */
@media (max-width: 768px) {
  .contact-overlap {
    width: 94%;
    margin-top: -60px;
    margin-bottom: -60px;
    padding: 40px 30px;
  }
  .contact-form__wrap {
    margin-top: 50px;
  }
  .contact-info__spacer {
    height: 120px;
  }

  .contact-box h3 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

.contact-hero__card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 28px 20px;
    text-align: center; /* centreren op mobiel */
  }

  .contact-hero__card h1 {
    font-size: 1.8rem;
    line-height: 1.35;
    margin-bottom: 1rem;
  }

  .contact-hero__phone {
    flex-direction: row;
    justify-content: left;
    gap: 40px;
  }

  /* Tekst en WhatsApp icoon op 1 regel, gecentreerd */
  .contact-hero__note {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }

  .contact-hero__note p {
    flex: none;
    max-width: 85%;
  }

  .whatsapp-fab {
    width: 46px;
    height: 46px;
  }

  .whatsapp-fab i {
    font-size: 26px;
  }
  /* Checkboxes onder elkaar, mooi uitgelijnd */
  .contact-form__toggles {
    flex-direction: column; /* mag blijven als je ze onder elkaar wilt */
    gap: 14px;
  }

  .chk {
    display: flex;
    flex-wrap: nowrap;      /* 🔥 voorkom dat checkbox boven tekst komt */
    align-items: center;    /* 🔥 checkbox blijft gecentreerd naast tekst */
    gap: 12px;
    width: 100%;
  }

  .chk input {
    flex-shrink: 0;         /* 🔒 checkbox blijft vaste grootte */
  }

  .chk span {
    flex: 1;                /* 🔥 tekst breekt, checkbox niet */
    line-height: 1.4;
    font-size: 1rem;
    white-space: normal;    /* tekst mag wel doorlopen */
  }

  /* Form-grid 1 kolom op mobiel */
  .contact-form .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .field label {
    font-size: 0.9rem;
  }

  .field input,
  .field textarea {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }

  /* Knop en spacing */
  .btn-send {
    width: 100%;
    margin-top: 24px;
    justify-content: center;
  }

  /* Titel beter leesbaar */
  .contact-form__wrap h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: center;
  }
}

/* Mobiel klein (max 480px) */
@media (max-width: 480px) {
  .contact-overlap {
    width: 94%;
    margin-top: -40px;
    margin-bottom: -40px;
    padding: 30px 24px;
  }

  .contact-info__spacer {
    height: 100px;
  }

  .contact-card {
    margin-top: 20px;
    max-width: 260px;
  }

  .contact-box h3 {
    font-size: 1.4rem;
  }

  .contact-whatsapp i {
    font-size: 22px;
    padding: 4px 8px;
  }
  .contact-hero__card {
    padding: 20px 16px;
    text-align: left;
  }

  .contact-hero__card h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .contact-hero__note p {
    font-size: 0.95rem;
    max-width: 80%;
  }

  .whatsapp-fab {
    width: 42px;
    height: 42px;
  }

  .whatsapp-fab i {
    font-size: 24px;
  }
  .chk {
    padding: 12px 14px;
  }

  .contact-form__wrap {
    padding: 24px 18px;
  }

  .contact-form__toggles {
    gap: 10px;
  }

  .contact-form__wrap h2 {
    font-size: 1.3rem;
  }

}
