/* ============================================================
   Beter Wonen – Shared (Aanmelden page) Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bs-gradient: linear-gradient(-45deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
  /* Fallback for browsers without color-mix support */
  --bs-primary: #009488;
  --bs-primary-dark: #006660;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif !important;
  color: #171b25;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

/* ── Shared: badge / labels ───────────────────────────────────── */
.bw-badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,148,136,0.15); border: 1px solid rgba(0,200,185,0.4);
  color: #7ee8e0; font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 1.25rem;
}
.bw-section-label {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bs-primary); margin-bottom: 0.4rem;
}
.bw-section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: #171b25; margin-bottom: 0.75rem;
}

/* ── Page hero (aanmelden & other sub-pages) ──────────────────── */
.bw-page-hero {
  position: relative;
  background: url(../img/landingspage-header.jpg) center 35% / cover no-repeat;
  min-height: 300px;
  display: flex; align-items: flex-end;
}
.bw-page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.28) 0%, rgba(0,28,26,0.86) 100%);
}
.bw-page-hero-inner {
  position: relative; z-index: 2; width: 100%; padding: 64px 0 52px;
}
.bw-page-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #fff; margin-bottom: 0.75rem; line-height: 1.1;
}
.bw-page-hero-lead {
  font-size: 1.05rem; color: rgba(255,255,255,0.8); margin: 0; line-height: 1.6;
}

/* ── Form card ────────────────────────────────────────────────── */
.bw-form-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.06), 0 12px 32px rgba(0,148,136,0.08);
}
.bw-form-header {
  padding: 1.5rem 1.75rem; border-bottom: 1px solid #f0f4f4;
  background: linear-gradient(135deg, #f5fafa 0%, #fff 100%);
}
.bw-form-header p { font-size: 0.9rem; color: #6b7280; margin: 0; }

/* ── Steps / info card ────────────────────────────────────────── */
.bw-steps-card {
  background: linear-gradient(150deg, var(--bs-primary-dark) 0%, var(--bs-primary) 100%);
  border-radius: 18px; overflow: hidden; height: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.06), 0 12px 32px rgba(0,148,136,0.18);
}
.bw-steps-header {
  padding: 1.5rem 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.12); color: #fff; font-weight: 700;
}
.bw-steps-footer {
  padding: 1.25rem 1.75rem; border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 600; text-align: center;
}

/* Steps accordion on green bg */
.bw-steps-card .accordion-item { background: transparent; border: 0; }
.bw-steps-card .accordion-button {
  background: transparent !important; color: rgba(255,255,255,0.9) !important;
  border: 0; line-height: 1.6;
  box-shadow: none !important;
  padding: 14px 20px;
  font-size: 0.9rem;
}
.bw-steps-card .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
.bw-steps-card .accordion-button::after { filter: brightness(0) invert(1) !important; }
.bw-steps-card .accordion-button::before { content: none !important; }
.bw-steps-card .accordion-collapse { background: rgba(255,255,255,0.06) !important; }
.bw-steps-card .accordion-body { color: rgba(255,255,255,0.82); font-size: 0.875rem; line-height: 1.65; padding: 0 20px 16px 48px; }

/* ── Contact cards (aanmelden page) ──────────────────────────── */
.bw-contact-card {
  border-radius: 16px; border: 1.5px solid #ddf0ee; padding: 1.75rem;
  text-align: center; text-decoration: none !important; display: block;
  color: #171b25; background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.bw-contact-card:hover {
  border-color: var(--bs-primary); box-shadow: 0 6px 20px rgba(0,148,136,0.13);
  transform: translateY(-4px); color: var(--bs-primary);
}
.bw-contact-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #e8f8f7;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--bs-primary); margin: 0 auto 0.75rem;
  transition: background 0.25s, color 0.25s;
}
.bw-contact-card:hover .bw-contact-icon { background: var(--bs-primary); color: #fff; }
.bw-contact-label { font-size: 0.72rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.bw-contact-value { font-weight: 700; font-size: 0.95rem; }

/* ── FAQ on aanmelden page ────────────────────────────────────── */
.bw-faq-wrap .accordion-item {
  border: none; margin-bottom: 10px; border-radius: 12px !important; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.055); transition: transform 0.2s, box-shadow 0.2s;
}
.bw-faq-wrap .accordion-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.bw-faq-wrap .accordion-button {
  font-weight: 600; font-size: 0.93rem; color: #171b25; background: #fff; padding: 16px 20px;
}
.bw-faq-wrap .accordion-button::before { content: none !important; }
.bw-faq-wrap .accordion-button::after { display: inline-block !important; background-size: 14px; transition: transform 0.3s, filter 0.3s; }
.bw-faq-wrap .accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(135deg, var(--bs-primary-dark), var(--bs-primary));
  box-shadow: none !important;
}
.bw-faq-wrap .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.bw-faq-wrap .accordion-button:focus { box-shadow: none; }
.bw-faq-wrap .accordion-collapse { background: #fff !important; }
.bw-faq-wrap .accordion-body { padding: 18px 20px; color: #4b5563; font-size: 0.9rem; line-height: 1.72; }

/* ── Scroll top ───────────────────────────────────────────────── */
.scroll-top-wrapper { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: auto !important; }
.scroll-top {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bs-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; border: none;
  box-shadow: 0 4px 14px rgba(0,148,136,0.38); transition: all 0.25s; font-size: 1rem;
}
.scroll-top:hover { background: var(--bs-primary-dark); color: #fff; transform: translateY(-4px); }

/* ── Legacy / compat ──────────────────────────────────────────── */
.header {
  background-image: url(../img/landingspage-header.jpg);
  background-repeat: no-repeat; background-position: center center;
  background-size: cover; min-height: 200px;
}
.bg-grey { background-color: var(--bs-primary-lighten) !important; }
.bg-green { background: var(--bs-gradient) !important; }
.cont-m { max-width: 1800px; overflow-x: hidden; }

/* form validation */
* { scroll-margin-top: 120px; }
form .error, form .form-control.error:focus { background: #f8dbda; border: 1px solid #e67a74; }

/* animated sun icon */
.message i.fa-sun {
  top: -10px; right: -18px; position: relative;
  -webkit-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-overlay.d-none { display: none !important; }
.modal-box {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 0.75rem; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-width: 520px; width: 90%; animation: modalSlideIn 0.3s ease-out; overflow: hidden;
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

footer .nav-link:hover { color: var(--bs-primary); }

.dropdown:has(.form-check-input:checked) > .dropdown-toggle {
  background-color: var(--bs-primary); color: white; border-color: var(--bs-primary);
}
