/* ============================================================
   SHARED BASE STYLING FOR ALL MODULES
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1.4vw, 18px);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  color: #033e8c;
  background: url("../images/home/achtergrond.png") no-repeat center center
    fixed;
  background-size: cover;
}

/* ---------------- GRID ---------------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr !important;
    padding: 12px;
    gap: 14px;
  }
}

/* ---------------- PANELS ---------------- */

.panel {
  background: white;
  border-radius: 16px;
  padding: clamp(16px, 2vw, 26px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.hide-panel {
  display: none !important;
}

.panel .content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------------- HEADINGS ---------------- */

h2 {
  margin: 0;
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: #033e8c;
  font-weight: 700;
}

/* ---------------- FORM ELEMENTS ---------------- */

.select {
  background: #f8fbff;
  border: 2px solid #bcd3f1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  width: 100%;
}

.select:focus {
  outline: none;
  border-color: #4c8ce4;
  box-shadow: 0 0 6px rgba(76, 140, 228, 0.5);
}

/* ---------------- BUTTONS ---------------- */

.btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  transition: 0.2s ease;
}

.btn.primary {
  background: #2563eb;
  color: white;
}

.btn.primary:hover {
  background: #1e4fc4;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.buttonRow {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---------------- FOOTER ---------------- */

.footer {
  text-align: center;
  margin-top: auto;
  padding: 15px;
  color: #666;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
}

/* ============================================================
   RESPONSIVE LAYOUT — ALGEMEEN
============================================================ */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 12px;
  }

  .panel {
    padding: 16px;
  }

  h2 {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .select {
    font-size: 1rem;
  }

  .btn {
    font-size: 1rem;
    padding: 12px;
  }
}

@media (max-width: 600px) {
  .buttonRow {
    flex-direction: column;
    gap: 10px;
  }

  .buttonRow .btn {
    width: 100%;
  }

  .panel {
    padding: 14px;
  }

  body {
    background-size: contain;
  }
}

/* Legal pages (privacy / cookies) */
.legal {
  color: #1f2933; /* donkergrijs, rustiger dan zwart */
}

.legal h1 {
  color: #0f172a;
}

/* Legal / simple content pages (privacy, cookies, contact) */
main.legal {
  max-width: 800px;
  margin: 2.5rem auto;
  padding: 1.5rem 1.75rem;
  line-height: 1.6;

  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

main.legal h1 {
  margin-top: 0;
}

main.legal a {
  font-weight: 600;
}

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

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
