/* Typografie Start */
p:last-child {
    margin-bottom: 0;
}
.wp-block-post-content p:last-child,
.editor-styles-wrapper p:last-child {
    margin-bottom: 0;
}
.wp-block p:last-child {
    margin-bottom: 0;
}
.gb-block-text p:last-child,
.editor-styles-wrapper .gb-block-text p:last-child {
    margin-bottom: 0;
}
*:not(li) > p:last-child {
    margin-bottom: 0;
}
/* Typografie Eind */
/* Tabel Start */
table {
	margin: 0 !important;
}
.wp-block-table {
  margin: 2rem 0 !important;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2bda3 !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px 0 rgb(192 150 119 / 0.1), 0 1px 2px -1px rgb(192 150 119 / 0.05) !important;
}

.wp-block-table thead {
  background: linear-gradient(135deg, #f6efea 0%, #ffffff 100%) !important;
}

.wp-block-table thead tr th {
  padding: 1rem 1.5rem !important;
  text-align: left !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  color: #5a4a3a !important;
  letter-spacing: 0.025em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-bottom: 1px solid #e2bda3 !important;
  background: transparent !important;
}

.wp-block-table thead tr th:first-child {
  border-top-left-radius: 0.5rem !important;
}

.wp-block-table thead tr th:last-child {
  border-top-right-radius: 0.5rem !important;
}

.wp-block-table tbody tr {
  transition: background-color 0.15s ease !important;
  background: transparent !important;
}

.wp-block-table tbody tr:hover {
  background: #f6efea !important;
}

.wp-block-table tbody tr td {
  padding: 1rem 1.5rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.6rem !important;
  color: #4a4a4a !important;
  border: none !important;
  border-bottom: 1px solid rgba(226, 189, 163, 0.3) !important;
}

.wp-block-table tbody tr:last-child td {
  border-bottom: none !important;
}

.wp-block-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem !important;
}

.wp-block-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem !important;
}

/* Extra specifieke overrides voor WordPress default styling */
.wp-block-table table.has-fixed-layout {
  table-layout: fixed !important;
}

figure.wp-block-table {
  margin: 2rem 0 !important;
}

/* Responsive styling voor mobiel */
@media (max-width: 640px) {
  .wp-block-table thead tr th,
  .wp-block-table tbody tr td {
    padding: 0.875rem 1rem !important;
    font-size: 0.8125rem !important;
  }
}
/* Tabel Eind */
/* Formulieren Start */
/* Fluent Forms - Shadcn Style (zonder card wrapper) */

/* Form groups */
.fluentform .ff-el-group {
    margin-bottom: 1.25rem;
}

.fluentform .ff-el-group:last-of-type {
    margin-bottom: 0;
}

/* Labels styling */
.fluentform .ff-el-input--label label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--base-4);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Required asterisk - subtiel maken */
.fluentform .ff-el-is-required.asterisk-right label::after {
    content: ' *';
    color: var(--accent);
    font-weight: 400;
}

/* Input Fields & Textarea */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="url"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform textarea,
.fluentform select {
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    color: var(--base-4) !important;
    background-color: var(--base) !important;
    background-image: none !important;
    border: 1px solid var(--accent-3) !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

/* Textarea specifiek */
.fluentform textarea {
    min-height: 120px !important;
    resize: vertical !important;
    padding: 0.75rem 0.875rem !important;
}

/* Placeholder styling */
.fluentform input::placeholder,
.fluentform textarea::placeholder {
    color: var(--base-5) !important;
    opacity: 0.6 !important;
}

/* Focus states */
.fluentform input[type="text"]:focus,
.fluentform input[type="email"]:focus,
.fluentform input[type="url"]:focus,
.fluentform input[type="tel"]:focus,
.fluentform input[type="number"]:focus,
.fluentform textarea:focus,
.fluentform select:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(192, 150, 119, 0.1) !important;
}

/* Hover states */
.fluentform input[type="text"]:hover:not(:focus),
.fluentform input[type="email"]:hover:not(:focus),
.fluentform input[type="url"]:hover:not(:focus),
.fluentform input[type="tel"]:hover:not(:focus),
.fluentform input[type="number"]:hover:not(:focus),
.fluentform textarea:hover:not(:focus),
.fluentform select:hover:not(:focus) {
    border-color: var(--accent-2) !important;
}

/* Submit button wrapper */
.fluentform .ff_submit_btn_wrapper {
    margin-top: 1.5rem !important;
    padding-top: 0 !important;
}

/* Submit button - exact dezelfde stijl als comment form */
.fluentform .ff-btn.ff-btn-submit,
.fluentform .ff-btn.ff-btn-submit.ff-btn-md,
.fluentform .ff-btn.ff-btn-submit.ff_btn_style {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.875rem 1.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    color: var(--base) !important;
    background-color: var(--contrast-2) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 1470px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    width: auto !important;
}

/* Hover state */
.fluentform .ff-btn.ff-btn-submit:hover,
.fluentform .ff-btn.ff-btn-submit.ff-btn-md:hover,
.fluentform .ff-btn.ff-btn-submit.ff_btn_style:hover {
    background-color: var(--contrast) !important;
    background-image: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    color: var(--base) !important;
}

/* Active state */
.fluentform .ff-btn.ff-btn-submit:active,
.fluentform .ff-btn.ff-btn-submit.ff-btn-md:active,
.fluentform .ff-btn.ff-btn-submit.ff_btn_style:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Focus state */
.fluentform .ff-btn.ff-btn-submit:focus,
.fluentform .ff-btn.ff-btn-submit.ff-btn-md:focus,
.fluentform .ff-btn.ff-btn-submit.ff_btn_style:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(85, 180, 67, 0.2), 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Error messages styling */
.fluentform .ff-errors-in-stack,
.fluentform .error {
    color: #ef4444 !important;
    font-size: 0.875rem !important;
    margin-top: 0.375rem !important;
}

/* Success messages */
.fluentform .ff-message-success {
    background-color: rgba(85, 180, 67, 0.1) !important;
    border: 1px solid var(--contrast-2) !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    color: var(--contrast) !important;
    margin-bottom: 1.25rem !important;
}

/* Input content wrapper - geen extra padding */
.fluentform .ff-el-input--content {
    position: relative;
}

/* Checkboxes en radio buttons (voor als je die later toevoegt) */
.fluentform input[type="checkbox"],
.fluentform input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin: 0 !important;
    cursor: pointer !important;
    border: 2px solid var(--accent-3) !important;
    background-color: var(--base) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.fluentform input[type="checkbox"] {
    border-radius: 0.25rem !important;
}

.fluentform input[type="radio"] {
    border-radius: 50% !important;
}

.fluentform input[type="checkbox"]:checked,
.fluentform input[type="radio"]:checked {
    background-color: var(--contrast-2) !important;
    border-color: var(--contrast-2) !important;
}

/* Checkbox vinkje */
.fluentform input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    width: 0.3rem !important;
    height: 0.6rem !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
}

/* Radio button dot */
.fluentform input[type="radio"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 0.375rem !important;
    height: 0.375rem !important;
    border-radius: 50% !important;
    background-color: white !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .fluentform input[type="text"],
    .fluentform input[type="email"],
    .fluentform input[type="url"],
    .fluentform input[type="tel"],
    .fluentform input[type="number"],
    .fluentform textarea,
    .fluentform select {
        font-size: 1rem !important; /* Prevent zoom on iOS */
    }
    
    .fluentform .ff-btn.ff-btn-submit,
    .fluentform .ff-btn.ff-btn-submit.ff-btn-md,
    .fluentform .ff-btn.ff-btn-submit.ff_btn_style {
        width: 100% !important;
    }
}
/* Formulieren Eind */
/* Overige UI Start */
img[title] {
    pointer-events: none;
}
/* Overige UI Eind */
/* Paginatie Start */
/* Paginatie nummers - Geoptimaliseerde Shadcn Style */
.gb-query-loop-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Consistente spacing rondom alles */
}

.gb-query-loop-pagination nav[class*="gb-query-page-numbers"] {
    display: flex;
    align-items: center;
    gap: 0.375rem; /* Kleinere gap tussen nummers zelf */
}

.gb-query-loop-pagination nav[class*="gb-query-page-numbers"] .page-numbers {
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--base-5) !important; /* Subtielere grijze tekst voor niet-actieve */
    background-color: var(--base) !important;
    border: 1px solid var(--base-3) !important; /* Subtielere border */
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important; /* Snappier transition */
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Hover state - duidelijker feedback */
.gb-query-loop-pagination nav[class*="gb-query-page-numbers"] .page-numbers:not(.current):not(.dots):hover {
    background-color: var(--accent-3) !important;
    border-color: var(--accent-2) !important;
    color: var(--base-4) !important; /* Donkerder op hover */
    transform: translateY(-1px) !important; /* Subtiele lift */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Active/Current page - VEEL duidelijker */
.gb-query-loop-pagination nav[class*="gb-query-page-numbers"] .page-numbers.current {
    background-color: var(--accent-3) !important;
    border: 1px solid var(--accent) !important; /* Donkerder border voor definition */
    color: var(--base-4) !important;
    cursor: default !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important; /* Inset shadow = "ingedrukt" gevoel */
    font-weight: 700 !important; /* Dikker voor meer contrast */
}

/* Dots (ellipsis) */
.gb-query-loop-pagination nav[class*="gb-query-page-numbers"] .page-numbers.dots {
    border: none !important;
    background-color: transparent !important;
    cursor: default !important;
    min-width: auto !important;
    padding: 0 0.25rem !important;
    color: var(--base-3) !important; /* Nog subtieler */
    font-weight: 700 !important; /* Dikker voor betere leesbaarheid */
}

/* Focus states - accessibility */
.gb-query-loop-pagination nav[class*="gb-query-page-numbers"] .page-numbers:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(192, 150, 119, 0.3) !important;
}

.gb-query-loop-pagination nav[class*="gb-query-page-numbers"] .page-numbers.current:focus-visible {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(192, 150, 119, 0.3) !important;
}

/* Responsive aanpassingen */
@media (max-width: 640px) {
    .gb-query-loop-pagination {
        gap: 0.5rem;
    }
    
    .gb-query-loop-pagination nav[class*="gb-query-page-numbers"] .page-numbers {
        min-width: 2.25rem !important;
        height: 2.25rem !important;
        font-size: 0.8125rem !important;
    }
}
/* Paginatie Eind */
/* Footer Start */
.site-footer ul {
    margin: 0;
    list-style: none;
}
.dynamic-menu-block {
    padding-left: 0;
}
.dynamic-menu-block li {
    margin-bottom: 8px;
}
.dynamic-menu-block .submenu {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 0;
}
.dynamic-menu-block .menu-level-1::before {
    content: "– ";
    color: inherit;
    margin-right: 4px;
}
.dynamic-menu-block .menu-level-2::before {
    content: "— ";
    color: inherit;
    margin-right: 4px;
}
.dynamic-menu-block .menu-level-3::before {
    content: "--- ";
    color: inherit;
    margin-right: 4px;
}
.dynamic-menu-block .menu-level-4::before {
    content: "---- ";
    color: inherit;
    margin-right: 4px;
}
/* Footer Eind */