/**
 * FBA theme: look and feel (restyle 2026).
 *
 * Plain CSS, no build step: sass/theme/theme.scss holds the same text.
 *
 * The styles hang on the building blocks of the site (header, header slider,
 * paragraph types, the news view, webforms, footer) and on plain HTML
 * elements from the editor (h2, h3, p, blockquote, a, img). A page built from
 * those blocks gets this look without page-specific CSS.
 *
 * Change the look in one place: the custom properties below.
 */

:root {
  --fba-ink: #12262d;
  --fba-petrol: #1e4c59;
  --fba-ground: #f3f4ef;
  --fba-tint: #e6eae1;
  --fba-paper: #ffffff;
  --fba-line: #d9ddd3;
  --fba-field-line: #8b9995;
  --fba-text: #2b3b40;
  --fba-muted: #4d5b5f;
  --fba-accent: #e8b93b;
  --fba-on-dark: #dfe6e2;
  --fba-font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fba-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --fba-max: 1200px;
  --fba-gutter: 24px;
  --fba-read: 760px;
  --fba-radius: 4px;
  --fba-gap: 32px;
  /* Left edge of the centred content column, for full-width blocks. */
  --fba-edge: max(var(--fba-gutter), calc(50vw - var(--fba-max) / 2 + var(--fba-gutter)));
}

/* ------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------ */

html {
  font-family: var(--fba-font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--fba-ink);
}

html,
body {
  background: var(--fba-ground);
  color: var(--fba-ink);
}

.layout-container {
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6,
.grid__titel,
.cta__titel {
  font-family: var(--fba-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--fba-ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--fba-read);
}

a {
  color: var(--fba-petrol);
}

a:hover,
a:focus,
a:active {
  color: var(--fba-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fba-petrol);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

img.align-right {
  margin: 1em 0 1em 1em;
}

/* ------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------ */

#fixed_header {
  position: sticky;
  top: var(--drupal-displace-offset-top, 0px);
  left: 0;
  width: 100%;
  z-index: 200;
}

/* Top bar: language, log in. */
#header_top {
  background: var(--fba-ink);
  color: var(--fba-on-dark);
}

#header_top .container,
#header .container {
  max-width: var(--fba-max);
  margin: 0 auto;
  padding: 0 var(--fba-gutter);
  box-sizing: border-box;
}

#header_top .region-header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

#header_top ul.menu,
#header_top ul.links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header_top ul.menu li,
#header_top ul.links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#header_top a {
  display: block;
  padding: 12px 0;
  color: var(--fba-on-dark);
  text-decoration: none;
}

#header_top a:hover,
#header_top a:focus {
  color: #ffffff;
  text-decoration: underline;
}

#header_top #block-taalkeuze {
  order: 1;
  padding-right: 20px;
  border-right: 1px solid #46595f;
}

#header_top #block-taalkeuze a {
  text-transform: uppercase;
  color: #b9c6c2;
}

#header_top #block-taalkeuze a.is-active {
  color: #ffffff;
  font-weight: 600;
}

#header_top .menu--account {
  order: 2;
}

/* Logo: sits on the white bar, slightly over its lower edge. */
#block-fba-theme-branding {
  position: absolute;
  left: var(--fba-edge);
  top: 50px;
  z-index: 210;
  margin: 0;
}

#block-fba-theme-branding .site-logo {
  display: block;
  padding: 0;
}

#block-fba-theme-branding img {
  display: block;
  width: 88px;
  height: auto;
  transition: width 0.2s ease-in-out;
}

#block-fba-theme-branding .site-logo.scrolled img {
  width: 68px;
}

/* Main bar: menu. */
#header {
  background: var(--fba-paper);
  border-bottom: 1px solid var(--fba-line);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 76px;
  padding-left: calc(var(--fba-gutter) + 112px);
}

#header #header-region {
  flex: 1 1 auto;
  min-width: 0;
}

#header .region-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

#block-responsivemenumobileicon {
  display: none;
  order: -1;
  margin-right: auto;
}

#block-responsivemenumobileicon .responsive-menu-toggle-icon::before,
#block-responsivemenumobileicon .responsive-menu-toggle-icon::after,
#block-responsivemenumobileicon .responsive-menu-toggle-icon span.icon {
  background-color: var(--fba-ink);
}

#block-mainnavigation,
#block-fba-theme-main-menu {
  order: 1;
  margin-left: auto;
}

#block-socialmedialinks-2 {
  order: 2;
}

#header ul.sf-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 30px;
  float: none;
  margin: 0;
  padding: 0;
}

#header ul.sf-menu li {
  float: none;
  margin: 0;
  padding: 0;
  font-size: inherit;
}

#header ul.sf-menu > li > a {
  display: block;
  padding: 24px 0 21px;
  border-bottom: 3px solid transparent;
  font-family: var(--fba-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fba-ink);
}

#header ul.sf-menu > li > a:hover,
#header ul.sf-menu > li > a:focus,
#header ul.sf-menu > li.sfHover > a,
#header ul.sf-menu > li.active-trail > a,
#header ul.sf-menu > li > a.is-active {
  border-bottom-color: var(--fba-accent);
}

#header ul.sf-menu .sf-sub-indicator {
  display: none;
}

#header ul.sf-menu.sf-has-clone-parent li:first-child {
  display: none;
}

/* Dropdown. */
#header ul.sf-menu ul {
  min-width: 250px;
  margin: 0;
  padding: 8px 0;
  background: var(--fba-paper);
  border: 1px solid var(--fba-line);
  border-top: 3px solid var(--fba-accent);
  border-radius: 0 0 var(--fba-radius) var(--fba-radius);
  box-shadow: 0 8px 20px rgba(18, 38, 45, 0.12);
}

/* Open the dropdown below the bar, not over the menu items. */
#header ul.sf-menu > li:hover > ul,
#header ul.sf-menu > li.sfHover > ul {
  top: 100%;
}

#header ul.sf-menu ul li {
  display: block;
  width: 100%;
}

#header ul.sf-menu ul a {
  display: block;
  padding: 10px 20px;
  font-family: var(--fba-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--fba-ink);
}

#header ul.sf-menu ul a:hover,
#header ul.sf-menu ul a:focus,
#header ul.sf-menu ul a.is-active {
  background: var(--fba-ground);
  color: var(--fba-petrol);
}

/* Facebook link. */
.social-media-links--platforms.horizontal {
  margin: 0;
  padding: 0;
}

.social-media-links--platforms.horizontal li {
  padding: 0;
}

.social-media-link-icon--facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--fba-line);
  border-radius: var(--fba-radius);
  color: var(--fba-petrol);
}

.social-media-link-icon--facebook:hover,
.social-media-link-icon--facebook:focus {
  background: var(--fba-petrol);
  border-color: var(--fba-petrol);
  color: #ffffff;
}

/* Call to action next to the menu. */
.header-cta {
  flex: none;
  padding: 10px 20px;
  border-radius: 3px;
  background: var(--fba-accent);
  font-family: var(--fba-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--fba-ink);
}

.header-cta:hover,
.header-cta:focus {
  background: var(--fba-ink);
  color: #ffffff;
}

@media (max-width: 900px) {
  #block-responsivemenumobileicon {
    display: block;
  }

  #block-mainnavigation,
  #block-fba-theme-main-menu {
    display: none;
  }

  #header .container {
    min-height: 64px;
    padding-left: var(--fba-gutter);
  }

  #block-fba-theme-branding {
    left: 50%;
    top: 48px;
    transform: translateX(-50%);
  }

  #block-fba-theme-branding img,
  #block-fba-theme-branding .site-logo.scrolled img {
    width: 68px;
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }
}

/* ------------------------------------------------------------------------
   Page frame
   ------------------------------------------------------------------------ */

#main {
  padding-top: 0;
  padding-bottom: 96px;
}

#main > .container {
  max-width: var(--fba-max);
  padding: 0 var(--fba-gutter);
  box-sizing: border-box;
}

#main #content,
.no-sidebar #main #content {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

#content-wrapper {
  margin: 0;
  width: 100%;
}

#block-fba-theme-content {
  padding: 0;
}

/* Pages without a header image (forms, log in, search): room under the
   header, so the logo does not cover the content. */
#main #content:not(:has(.header_group)) {
  padding-top: 64px;
}

/* Pages without a header image (forms, log in, search). */
#content-header h1.title {
  margin: 56px 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#block-fba-theme-local-tasks {
  margin: 24px 0 0;
}

/* ------------------------------------------------------------------------
   Header slider with the page title
   ------------------------------------------------------------------------ */

.header_group,
.paragraph--type--slider {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: var(--fba-ink);
}

.header_group .slick,
.paragraph--type--slider .slick {
  margin: 0;
}

.slick img {
  display: block;
  width: 100%;
}

.header_group .slick img {
  min-height: 300px;
  max-height: 62vh;
  object-fit: cover;
}

body:not(.with-subnav) .header_group .slick img {
  min-height: 420px;
  max-height: 72vh;
}

.paragraph--type--slider .slick img {
  max-height: 600px;
  object-fit: cover;
}

.header_group .page__node-title,
.header_group .article__node-title,
.header_group .partner__node-title {
  position: absolute;
  left: var(--fba-edge);
  bottom: 0;
  top: auto;
  width: auto;
  max-width: min(760px, calc(100vw - 2 * var(--fba-gutter)));
  box-sizing: border-box;
  padding: 22px 36px 26px;
  background: var(--fba-ink);
  border-top: 5px solid var(--fba-accent);
  text-align: left;
}

.header_group .page__node-title h2,
.header_group .article__node-title h2,
.header_group .partner__node-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: none;
  color: #ffffff;
}

/* Previous / next buttons of every slider. */
.slick .slick__arrow {
  position: absolute;
  right: var(--fba-gutter);
  bottom: var(--fba-gutter);
  left: auto;
  top: auto;
  display: flex;
  gap: 8px;
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
  z-index: 5;
}

.slick .slick-prev,
.slick .slick-next {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  transform: none;
  border: 0;
  border-radius: 3px;
  background: var(--fba-ink);
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  opacity: 1;
}

.slick .slick-prev:hover,
.slick .slick-next:hover,
.slick .slick-prev:focus,
.slick .slick-next:focus {
  background: var(--fba-petrol);
}

.slick .slick-prev::before,
.slick .slick-next::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: 0;
  border: solid #ffffff;
  border-width: 2px 2px 0 0;
  background: none;
  opacity: 1;
  transform: translate(-70%, -50%) rotate(45deg);
}

.slick .slick-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

/* ------------------------------------------------------------------------
   Share buttons (shown on every page except the front page)
   ------------------------------------------------------------------------ */

body:not(.with-subnav) .social-sharing-buttons {
  display: none;
}

.social-sharing-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 24px 0 36px;
}

.social-sharing-buttons .social-sharing-buttons-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
}

.social-sharing-buttons .social-sharing-buttons-button svg {
  width: 40px;
  height: 40px;
  border-radius: var(--fba-radius) !important;
}

/* ------------------------------------------------------------------------
   Text from the editor (body fields and the "tekst" paragraph)
   ------------------------------------------------------------------------ */

.text-formatted {
  color: var(--fba-text);
}

.page__body,
.article__body {
  margin-bottom: 8px;
}

/* Reading width for text; images and tables may use the full width. */
.page__body > *,
.article__body > *,
.tekst__body > * {
  max-width: var(--fba-read);
}

.page__body > a,
.page__body > img,
.page__body > figure,
.page__body > table,
.article__body > a,
.article__body > img,
.article__body > figure,
.article__body > table,
.tekst__body > a,
.tekst__body > img,
.tekst__body > figure,
.tekst__body > table {
  max-width: 100%;
}

.node--view-mode-full > .page__body > p:first-child,
.node--view-mode-full > .article__body > p:first-child {
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--fba-ink);
}

.text-formatted h2 {
  margin: 1.6em 0 0.45em;
}

.text-formatted h3 {
  margin: 1.5em 0 0.35em;
  color: var(--fba-petrol);
}

.text-formatted > :first-child {
  margin-top: 0;
}

.text-formatted a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-formatted img {
  border-radius: var(--fba-radius);
}

.tekst__body > a > img {
  display: block;
  width: 100%;
}

blockquote {
  position: relative;
  max-width: 860px;
  margin: 1.2em 0;
  padding: 28px 32px;
  box-sizing: border-box;
  background: var(--fba-paper);
  border: 1px solid var(--fba-line);
  border-radius: var(--fba-radius);
  font-family: var(--fba-display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--fba-petrol);
}

blockquote p {
  max-width: none;
  margin: 0 0 0.6em;
  color: inherit;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote p:first-of-type::before {
  content: '“';
}

blockquote p:last-of-type::after {
  content: '”';
}

/* ------------------------------------------------------------------------
   Paragraphs: spacing
   ------------------------------------------------------------------------ */

.page__paragrafen,
.article__paragrafen {
  margin-top: 40px;
}

.page__paragrafen > div,
.article__paragrafen > div {
  padding-bottom: 0;
  margin-bottom: 56px;
}

.page__paragrafen > div:empty,
.article__paragrafen > div:empty {
  display: none;
}

body:not(.with-subnav) .page__paragrafen {
  margin-top: 80px;
}

/* ------------------------------------------------------------------------
   Paragraph "grid" with "cta" cards
   ------------------------------------------------------------------------ */

.grid__titel {
  padding: 0;
  margin: 0 0 32px;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
}

.grid__paragrafen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--fba-gap);
}

.grid__paragrafen > div {
  display: flex;
  flex-direction: column;
  background: var(--fba-paper);
  border: 1px solid var(--fba-line);
  border-radius: var(--fba-radius);
  overflow: hidden;
}

.grid__paragrafen > div > .paragraph {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cta__media img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
}

.cta__titel {
  position: static;
  height: auto;
  margin: 0;
  padding: 24px 28px 0;
  background: none;
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--fba-petrol);
}

.cta__titel::before {
  content: none;
}

.cta__titel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--fba-ink);
  text-decoration: none;
}

.cta__titel a::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.cta__titel a:hover,
.cta__titel a:focus {
  color: var(--fba-petrol);
}

.cta__body {
  padding: 12px 28px 28px;
}

.cta__body:empty {
  display: none;
}

.cta__body p:last-child {
  margin-bottom: 0;
}

.cta__titel:last-child {
  padding-bottom: 24px;
}

/* Second grid style: a full-width dark band (e.g. "Onze opleidingen"). */
.grid2 {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 72px var(--fba-edge) 80px;
  box-sizing: border-box;
  background: var(--fba-petrol);
}

.grid2 .grid__titel {
  color: #ffffff;
  text-shadow: none;
}

.grid2 .grid__paragrafen {
  max-width: none;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid2 .grid__paragrafen > div {
  border: 0;
}

.grid2 .cta__media img {
  aspect-ratio: 16 / 9;
}

.grid2 .cta__titel {
  padding: 20px 26px 22px;
}

/* ------------------------------------------------------------------------
   News list (view "artikels") as cards; the first one is featured
   ------------------------------------------------------------------------ */

.view-artikels .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--fba-gap);
}

.view-artikels .views-row {
  background: var(--fba-paper);
  border: 1px solid var(--fba-line);
  border-radius: var(--fba-radius);
  overflow: hidden;
}

.view-artikels .node {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.view-artikels .node > .group-left,
.view-artikels .node > .group-right {
  float: none;
  width: auto;
  padding: 0;
}

/* The image comes first, whichever column it is in. */
.view-artikels .node--view-mode-teaser-2 > .group-right {
  order: -1;
}

.view-artikels .article__image img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.view-artikels .node--view-mode-teaser > .group-right,
.view-artikels .node--view-mode-teaser-2 > .group-left {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
  padding: 22px 24px 24px;
}

.view-artikels .article__node-title h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.view-artikels .article__body {
  flex-grow: 1;
  margin: 0;
  font-size: 0.95rem;
  color: var(--fba-text);
}

.view-artikels .article__body p {
  margin: 0;
}

.article__node-link a {
  display: inline-block;
  padding: 10px 0 6px;
  border-bottom: 2px solid var(--fba-accent);
  font-family: var(--fba-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (min-width: 800px) {
  .view-artikels .views-row:first-child {
    grid-column: 1 / -1;
  }

  .view-artikels .views-row:first-child .node {
    flex-direction: row;
  }

  .view-artikels .views-row:first-child .node > div {
    flex: 1 1 50%;
    min-width: 0;
  }

  .view-artikels .views-row:first-child .article__image,
  .view-artikels .views-row:first-child .article__image a,
  .view-artikels .views-row:first-child .article__image img {
    height: 100%;
  }

  .view-artikels .views-row:first-child .article__image img {
    min-height: 300px;
    aspect-ratio: auto;
  }

  .view-artikels .views-row:first-child .node--view-mode-teaser > .group-right,
  .view-artikels .views-row:first-child .node--view-mode-teaser-2 > .group-left {
    justify-content: center;
    gap: 14px;
    padding: 40px 44px;
  }

  .view-artikels .views-row:first-child .article__node-title h2 {
    font-size: 2.1rem;
  }

  .view-artikels .views-row:first-child .article__body {
    flex-grow: 0;
    font-size: 1rem;
  }
}

/* Activities list. */
.activiteiten h2 {
  text-align: left;
}

.activiteiten .views-row {
  padding: 1em 0;
  border-bottom: 1px solid var(--fba-line);
}

/* Two-column display suite layouts elsewhere. */
.group-left {
  padding-right: 1em;
}

.group-right {
  padding-left: 1em;
}

@media (max-width: 520px) {
  .ds-2col-fluid > .group-left,
  .ds-2col-fluid > .group-right {
    float: none;
    width: 100%;
    padding: 0;
  }
}

/* ------------------------------------------------------------------------
   Paragraph "fotogalerij" and "media"
   ------------------------------------------------------------------------ */

.fotogalerij__media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.fotogalerij__media > div {
  margin: 0;
}

.fotogalerij__media a {
  display: block;
}

.fotogalerij__media img {
  display: block;
  width: 100%;
  border-radius: var(--fba-radius);
}

.paragraph--type--media img {
  border-radius: var(--fba-radius);
}

/* ------------------------------------------------------------------------
   Paragraph "webformulier" and forms in general
   ------------------------------------------------------------------------ */

.paragraph--type--webformulier {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 72px var(--fba-edge) 88px;
  box-sizing: border-box;
  background: var(--fba-tint);
}

.page__paragrafen > div:last-child,
.article__paragrafen > div:last-child {
  margin-bottom: 0;
}

/* A form at the end of a page runs down to the footer. */
.page__paragrafen > div:last-child > .paragraph--type--webformulier,
.article__paragrafen > div:last-child > .paragraph--type--webformulier {
  margin-bottom: -96px;
}

.webformulier__titel {
  margin: 0 0 28px;
  font-family: var(--fba-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--fba-ink);
}

.webformulier__webformulier form,
.webform-submission-form,
.user-login-form,
.user-pass,
.user-form {
  max-width: 860px;
  box-sizing: border-box;
  padding: 36px 40px 40px;
  background: var(--fba-paper);
  border: 1px solid var(--fba-line);
  border-radius: var(--fba-radius);
}

form .form-item {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

form label,
form .fieldset-legend {
  font-weight: 600;
  color: var(--fba-ink);
}

form .form-item > label {
  display: block;
  margin-bottom: 6px;
}

form fieldset {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

form fieldset > legend {
  margin-bottom: 12px;
  padding: 0;
}

form fieldset > legend .fieldset-legend {
  font-family: var(--fba-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fba-petrol);
}

/* Nested groups (e.g. "Titel" inside "Naam") keep a normal label look. */
form fieldset fieldset {
  margin-bottom: 22px;
}

form fieldset fieldset > legend {
  margin-bottom: 6px;
}

form fieldset fieldset > legend .fieldset-legend {
  font-family: var(--fba-font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fba-ink);
}

form input[type='text'],
form input[type='email'],
form input[type='tel'],
form input[type='date'],
form input[type='number'],
form input[type='password'],
form input[type='search'],
form input[type='url'],
form select,
form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--fba-field-line);
  border-radius: 3px;
  font: inherit;
  color: var(--fba-ink);
}

form .iti {
  display: block;
  max-width: 420px;
}

form input[type='date'] {
  max-width: 260px;
}

form .js-form-type-radio.form-item,
form .js-form-type-checkbox.form-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 32px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}

form .js-form-type-radio input,
form .js-form-type-checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  accent-color: var(--fba-petrol);
}

form .js-form-type-radio label,
form .js-form-type-checkbox label {
  display: inline-block;
  margin: 0;
  font-weight: 400;
}

form .description {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--fba-muted);
}

/* webform 6.3 floats the phone field left; keep it on its own line. */
fieldset.webform-type-webform-telephone .form-item {
  float: none;
  margin: 0 0 22px;
}

.button,
form input[type='submit'],
form button.button {
  min-height: 48px;
  padding: 10px 28px;
  background: var(--fba-petrol);
  border: 0;
  border-radius: 3px;
  font-family: var(--fba-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
}

.button:hover,
.button:focus,
form input[type='submit']:hover,
form input[type='submit']:focus,
form button.button:hover,
form button.button:focus {
  background: var(--fba-ink);
  color: #ffffff;
}

/* Small helper buttons inside forms (file upload, remove). */
form .js-form-managed-file input[type='submit'],
form input[type='submit'].button--small {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 1rem;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
  background: var(--fba-petrol);
}

/* ------------------------------------------------------------------------
   Search page and cookie banner
   ------------------------------------------------------------------------ */

.search-form {
  margin-bottom: 32px;
}

.search-results {
  padding-left: 1.2em;
}

.search-results h3 {
  margin-bottom: 0.3em;
}

#sliding-popup,
#sliding-popup .eu-cookie-compliance-banner,
.eu-cookie-compliance-banner {
  background: var(--fba-ink);
  color: #ffffff;
}

#sliding-popup .eu-cookie-compliance-message h2,
#sliding-popup .eu-cookie-compliance-message p {
  color: #ffffff;
}

#sliding-popup .eu-cookie-compliance-buttons button,
#sliding-popup .eu-cookie-compliance-more-button {
  min-height: 44px;
  padding: 8px 20px;
  background: transparent;
  background-image: none;
  border: 2px solid #ffffff;
  border-radius: 3px;
  box-shadow: none;
  text-shadow: none;
  font-family: var(--fba-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
}

#sliding-popup .eu-cookie-compliance-buttons .agree-button {
  background: var(--fba-accent);
  border-color: var(--fba-accent);
  color: var(--fba-ink);
}

/* ------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */

#footer {
  margin-top: 0;
  background: var(--fba-ink);
  color: var(--fba-on-dark);
}

#footer .container {
  max-width: var(--fba-max);
  margin: 0 auto;
  padding: 0 var(--fba-gutter);
  box-sizing: border-box;
}

#block-footer {
  padding: 52px 0 48px;
}

#block-footer .text-formatted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 44px;
  color: var(--fba-on-dark);
}

#block-footer p {
  max-width: none;
  margin: 0;
  color: inherit;
}

#block-footer img {
  display: block;
  width: 96px;
  border-radius: 0;
}

#block-footer a {
  color: #ffffff;
}

@media (max-width: 700px) {
  html {
    font-size: 16px;
  }

  .webformulier__webformulier form,
  .webform-submission-form,
  .user-login-form,
  .user-pass,
  .user-form {
    padding: 24px 20px 28px;
  }

  .header_group .page__node-title,
  .header_group .article__node-title,
  .header_group .partner__node-title {
    padding: 16px 22px 18px;
  }

  .slick .slick__arrow {
    bottom: auto;
    top: var(--fba-gutter);
  }
}
