/* ==========================================================================
   FAQ MODULE
   Mobile-first - Smooth animations - Grouped by Category
   ========================================================================== */

.hd-faq-module {
  --hd-header-height: 88px; /* Mobile fallback - will be overwritten by JS */
  --hd-filter-height: 80px; /* Approximate filter height for scroll offset */
  padding: 3rem 1rem;
  overflow: visible; /* Changed from hidden to allow sticky to work */
  position: relative;
  scroll-padding-top: calc(var(--hd-header-height) + var(--hd-filter-height) + 20px);
}

/* Safe area support for notch devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .hd-faq-module {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ----- TOP ROW ----- */
.hd-faq-module .hd-faq-top-row {
  margin-bottom: 2.5rem;
}

.hd-faq-module .hd-faq-top-row .headline {
  margin-bottom: 1.5rem;
}

.hd-faq-module .hd-faq-top-row .content {
  margin: 0 0 1.5rem 0;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-module .hd-faq-top-row .content p {
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-module .hd-faq-top-row .content p:last-child {
  margin-bottom: 0;
}

/* Button wrapper */
.hd-faq-module .hd-faq-top-row .button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hd-faq-module .hd-faq-top-row .button-wrapper a {
  margin: 0;
}

.hd-faq-module .hd-faq-top-row .button-wrapper a,
.hd-faq-module .hd-faq-top-row .button-wrapper button,
.hd-faq-module .hd-faq-top-row .button-wrapper .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FILTER STYLES
   Sticky below header - Horizontal scroll on mobile
   ========================================================================== */

.hd-faq-module .hd-faq-filter-row {
  position: relative;
  margin-bottom: 0;
}

.hd-faq-module .hd-faq-filter-wrapper {
  position: sticky;
  top: var(--hd-header-height, 80px);
  z-index: 100;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #FDFBF9;
  border: 1px solid #E8E1DC;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(25, 32, 49, 0);
  transition: box-shadow 0.3s ease, border-radius 0.3s ease;
}

.hd-faq-module .hd-faq-filter-wrapper.is-stuck {
  box-shadow: 0 4px 16px rgba(25, 32, 49, 0.12);
  border-radius: 0 0 12px 12px;
  border-top-color: transparent;
}

.hd-faq-module .hd-faq-filter-label {
  display: none;
}

.hd-faq-module .hd-faq-filter-buttons {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  margin-bottom: -4px;
}

.hd-faq-module .hd-faq-filter-buttons::-webkit-scrollbar {
  display: none;
}

.hd-faq-module .hd-faq-filter-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 2px solid #CDB9A3;
  background-color: #FDFBF9;
  color: #827974;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
  min-height: 40px;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hd-faq-module .hd-faq-filter-btn:hover {
  background-color: #F4F1EF;
  border-color: #192031;
  color: #192031;
}

.hd-faq-module .hd-faq-filter-btn.active {
  background-color: #192031;
  color: #FDFBF9;
  border-color: #192031;
}

.hd-faq-module .hd-faq-filter-btn:focus {
  outline: none;
}

.hd-faq-module .hd-faq-filter-btn:focus-visible {
  outline: 2px solid #2B4764;
  outline-offset: 2px;
}

/* Scroll fade hint */
.hd-faq-module .hd-faq-filter-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #FDFBF9);
  pointer-events: none;
  border-radius: 0 12px 12px 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hd-faq-module .hd-faq-filter-wrapper.scroll-end::after {
  opacity: 0;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .hd-faq-module .hd-faq-filter-wrapper {
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .hd-faq-module .hd-faq-filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: #192031;
    font-family: "Libre Franklin", sans-serif;
  }
  
  .hd-faq-module .hd-faq-filter-buttons {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.75rem;
  }
  
  .hd-faq-module .hd-faq-filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    min-height: 44px;
  }
  
  .hd-faq-module .hd-faq-filter-wrapper::after {
    display: none;
  }
}

/* Mobile module padding - no bottom bar needed */
@media (max-width: 767px) {
  .hd-faq-module {
    padding-bottom: 2rem;
  }
}

/* ==========================================================================
   CATEGORY GROUPING - NEW STYLES
   ========================================================================== */

.hd-faq-module .hd-faq-grouped-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   FLAT MODE - When filtering is active
   ========================================================================== */

.hd-faq-module .hd-faq-grouped-container.flat-mode {
  gap: 0;
  margin-top: 0;
  padding-top: 0;
}

/* Eerste zichtbare category group krijgt extra ruimte bovenaan in flat mode */
.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-group:not(.hidden):first-child,
.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-group.hidden + .hd-faq-category-group:not(.hidden) {
  margin-top: 0;
}

.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-header {
  display: none;
}

.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-group {
  margin-bottom: 0;
  padding: 0;
}

.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-group:first-child .hd-faq-category-content {
  padding-top: 0;
}

/* Remove spacing between category groups in flat mode */
.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-group + .hd-faq-category-group {
  margin-top: 0;
}

.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-content {
  height: auto !important;
  overflow: visible;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-category-content .hd-faq-acc-row {
  padding: 0;
  row-gap: 12px;
  margin: 0;
}

/* Hide the "Ask question" items when filtering */
.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-ask-item {
  display: none;
}

/* Ensure proper grid display in flat mode */
.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-item:not(.hidden) {
  margin-bottom: 12px;
}

/* Make items in flat mode display as a proper 2-column grid */
.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-acc-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -6px;
  margin-right: -6px;
}

.hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-item {
  padding-left: 6px;
  padding-right: 6px;
}

@media (min-width: 768px) {
  .hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-acc-row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-item {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
  }
}

@media (min-width: 992px) {
  .hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-acc-row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .hd-faq-module .hd-faq-grouped-container.flat-mode .hd-faq-item {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   END FLAT MODE
   ========================================================================== */

/* Category Group */
.hd-faq-module .hd-faq-category-group {
  transition: opacity 0.3s ease;
}

.hd-faq-module .hd-faq-category-group.hidden {
  display: none;
}

/* Collapsible Category Header - clickable button */
.hd-faq-module .hd-faq-category-header {
  display: block;
  width: 100%;
  background-color: #192031;
  border: none;
  border-radius: 8px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(25, 32, 49, 0.1);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, border-radius 0.3s ease;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

.hd-faq-module .hd-faq-category-header:hover {
  background-color: #2a3347;
}

/* Active state for touch devices */
.hd-faq-module .hd-faq-category-header:active {
  background-color: #2a3347;
}

.hd-faq-module .hd-faq-category-header:focus {
  outline: none;
}

.hd-faq-module .hd-faq-category-header:focus-visible {
  outline: 2px solid #FDFBF9;
  outline-offset: 2px;
}

/* Open state */
.hd-faq-module .hd-faq-category-group.is-open .hd-faq-category-header {
  border-radius: 8px 8px 0 0;
}

.hd-faq-module .hd-faq-category-header-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem;
  min-height: 56px;
  color: #FDFBF9;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-module .hd-faq-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.hd-faq-module .hd-faq-category-icon svg {
  width: 20px;
  height: 20px;
}

.hd-faq-module .hd-faq-category-name {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
  letter-spacing: 0.01em;
}

.hd-faq-module .hd-faq-category-count {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.7;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

/* Category Header Arrow */
.hd-faq-module .hd-faq-category-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.7;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.hd-faq-module .hd-faq-category-arrow svg {
  width: 24px;
  height: 24px;
}

.hd-faq-module .hd-faq-category-header:hover .hd-faq-category-arrow {
  opacity: 1;
}

.hd-faq-module .hd-faq-category-group.is-open .hd-faq-category-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Collapsible Category Content */
.hd-faq-module .hd-faq-category-content {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(244, 241, 239, 0.3);
  border-radius: 0 0 8px 8px;
}

.hd-faq-module .hd-faq-category-content .hd-faq-acc-row {
  padding: 1rem;
}

/* ----- FAQ ITEM TAGS (for multi-category items) ----- */
.hd-faq-module .hd-faq-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.hd-faq-module .hd-faq-item-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #827974;
  background-color: rgba(130, 121, 116, 0.15);
  padding: 0.1875rem 0.5rem;
  border-radius: 4px;
  font-family: "Libre Franklin", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ----- ACCORDION ROW ----- */
.hd-faq-module .hd-faq-acc-row {
  row-gap: 12px;
}

/* Hidden items */
.hd-faq-module .hd-faq-item {
  transition: opacity 0.3s ease;
}

.hd-faq-module .hd-faq-item.hidden {
  display: none;
}

/* ----- ACCORDION ITEM ----- */
.hd-faq-module .hd-faq-accordion {
  background-color: rgba(244, 241, 239, 0.5);
  border-radius: 8px;
  transition: background-color 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.hd-faq-module .hd-faq-accordion.active {
  background-color: #F4F1EF;
}

/* ----- ACCORDION TITLE ----- */
.hd-faq-module .hd-accordion__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  min-height: 56px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.hd-faq-module .hd-accordion__title-content {
  flex: 1;
  min-width: 0;
}

.hd-faq-module .hd-accordion__maintitle {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #192031;
  margin: 0;
}

/* ----- ACCORDION ARROW ----- */
.hd-faq-module .ico-faq-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #988F89;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.3s ease;
  margin-top: 2px;
}

.hd-faq-module .ico-faq-arrow svg {
  width: 24px;
  height: 24px;
}

.hd-faq-module .hd-faq-accordion.active .ico-faq-arrow {
  transform: rotate(180deg);
  color: #192031;
}

/* ----- ACCORDION CONTENT ----- */
.hd-faq-module .hd-accordion__content {
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd-faq-module .hd-accordion__content-inner {
  padding: 0 1rem 1rem;
}

.hd-faq-module .hd-accordion__content-inner,
.hd-faq-module .hd-accordion__content-inner * {
  font-family: "Libre Franklin", sans-serif;
  color: #827974;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.hd-faq-module .hd-accordion__content-inner p:last-child {
  margin-bottom: 0;
}

.hd-faq-module .hd-accordion__content-inner ul,
.hd-faq-module .hd-accordion__content-inner ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.hd-faq-module .hd-accordion__content-inner li {
  margin-bottom: 0.5rem;
}

.hd-faq-module .hd-accordion__content-inner a {
  color: #192031;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.hd-faq-module .hd-accordion__content-inner a:hover {
  color: #827974;
}

/* ==========================================================================
   TABLET - 768px+
   ========================================================================== */

@media (min-width: 768px) {
  .hd-faq-module {
    --hd-header-height: 136px; /* Tablet/Desktop fallback */
    padding: 4rem 1.5rem;
  }

  .hd-faq-module .hd-faq-top-row {
    margin-bottom: 3rem;
  }

  .hd-faq-module .hd-faq-top-row .headline {
    margin-bottom: 0;
  }

  .hd-faq-module .hd-faq-top-row .button-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Filter - switch from scroll to wrap on tablet+ */
  .hd-faq-module .hd-faq-filter-wrapper {
    margin: 0 0 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    /* position: sticky blijft behouden van mobile */
  }

  .hd-faq-module .hd-faq-filter-wrapper.is-stuck {
    border-radius: 0 0 8px 8px;
  }

  .hd-faq-module .hd-faq-filter-wrapper::after {
    display: none;
  }

  .hd-faq-module .hd-faq-filter-label {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
  }

  .hd-faq-module .hd-faq-filter-buttons {
    flex-wrap: wrap;
    overflow-x: visible;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
  }

  .hd-faq-module .hd-faq-filter-btn {
    padding: 0.625rem 1.25rem;
    flex-shrink: 1;
    white-space: normal;
  }

  /* Category header - tablet */
  .hd-faq-module .hd-faq-grouped-container {
    gap: 1.5rem;
  }

  .hd-faq-module .hd-faq-category-header-inner {
    padding: 1.125rem 1.5rem;
    min-height: 60px;
    gap: 0.75rem;
  }

  .hd-faq-module .hd-faq-category-name {
    font-size: 1.0625rem;
  }

  .hd-faq-module .hd-faq-category-count {
    font-size: 0.875rem;
  }

  .hd-faq-module .hd-faq-category-content .hd-faq-acc-row {
    padding: 1.25rem;
  }

  .hd-faq-module .hd-faq-item-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  .hd-faq-module .hd-faq-acc-row {
    row-gap: 16px;
  }

  .hd-faq-module .hd-accordion__title {
    padding: 1.25rem;
    gap: 1rem;
  }

  .hd-faq-module .hd-accordion__maintitle {
    font-size: 1.0625rem;
  }

  .hd-faq-module .hd-accordion__content-inner,
  .hd-faq-module .hd-accordion__content-inner * {
    font-size: 1rem;
  }

  .hd-faq-module .hd-accordion__content-inner {
    padding: 0 1.25rem 1.25rem;
  }
}

/* ==========================================================================
   DESKTOP - 992px+
   ========================================================================== */

@media (min-width: 992px) {
  .hd-faq-module {
    padding: 5.5rem 3rem;
  }

  .hd-faq-module .hd-faq-top-row {
    margin-bottom: 4rem;
  }

  .hd-faq-module .hd-faq-filter-wrapper {
    margin-bottom: 3.5rem;
    padding: 1.75rem;
  }

  .hd-faq-module .hd-faq-filter-label {
    font-size: 1rem;
  }

  /* Category header - desktop */
  .hd-faq-module .hd-faq-grouped-container {
    gap: 1.75rem;
  }

  .hd-faq-module .hd-faq-category-header {
    border-radius: 12px;
  }

  .hd-faq-module .hd-faq-category-group.is-open .hd-faq-category-header {
    border-radius: 12px 12px 0 0;
  }

  .hd-faq-module .hd-faq-category-content {
    border-radius: 0 0 12px 12px;
  }

  .hd-faq-module .hd-faq-category-header-inner {
    padding: 1.25rem 2rem;
    gap: 1rem;
  }

  .hd-faq-module .hd-faq-category-icon svg {
    width: 22px;
    height: 22px;
  }

  .hd-faq-module .hd-faq-category-name {
    font-size: 1.125rem;
  }

  .hd-faq-module .hd-faq-category-content .hd-faq-acc-row {
    padding: 1.5rem;
  }

  .hd-faq-module .hd-faq-acc-row {
    row-gap: 20px;
  }

  .hd-faq-module .hd-faq-accordion {
    border-radius: 12px;
  }

  .hd-faq-module .hd-accordion__title {
    padding: 1.75rem 2rem;
  }

  .hd-faq-module .hd-accordion__maintitle {
    font-size: 1.125rem;
  }

  .hd-faq-module .hd-accordion__content-inner {
    padding: 0 2rem 2rem;
  }

  .hd-faq-module .hd-accordion__content-inner,
  .hd-faq-module .hd-accordion__content-inner * {
    line-height: 1.7;
  }
}

/* ==========================================================================
   LARGE DESKTOP - 1200px+
   ========================================================================== */

@media (min-width: 1200px) {
  .hd-faq-module {
    padding: 7rem 3.5rem;
  }

  .hd-faq-module .hd-faq-top-row {
    margin-bottom: 4.5rem;
  }

  .hd-faq-module .hd-faq-filter-wrapper {
    padding: 2rem;
  }

  .hd-faq-module .hd-faq-category-header-inner {
    padding: 1.375rem 2.25rem;
  }

  .hd-faq-module .hd-faq-category-content .hd-faq-acc-row {
    padding: 1.75rem;
  }

  .hd-faq-module .hd-accordion__title {
    padding: 2rem 2.25rem;
  }

  .hd-faq-module .hd-accordion__content-inner {
    padding: 0 2.25rem 2.25rem;
  }
}

/* ==========================================================================
   EXTRA LARGE DESKTOP - 1400px+
   ========================================================================== */

@media (min-width: 1400px) {
  .hd-faq-module {
    padding: 8rem 4rem;
  }
}

/* ==========================================================================
   HOVER & TOUCH STATES
   ========================================================================== */

@media (hover: hover) {
  .hd-faq-module .hd-accordion__title:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .hd-faq-module .hd-accordion__title:hover .ico-faq-arrow {
    color: #192031;
  }
}

@media (hover: none) and (pointer: coarse) {
  .hd-faq-module .hd-accordion__title:active {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .hd-faq-module .hd-faq-filter-btn:hover {
    background-color: #FDFBF9;
    border-color: #827974;
    color: #827974;
  }

  .hd-faq-module .hd-faq-filter-btn:active {
    background-color: #E8E1DC;
    border-color: #192031;
    color: #192031;
  }

  .hd-faq-module .hd-faq-filter-btn.active:hover,
  .hd-faq-module .hd-faq-filter-btn.active:active {
    background-color: #827974;
    color: #FDFBF9;
    border-color: #827974;
  }
}

/* ==========================================================================
   STICKY FILTER OFFSET (for sites with fixed navigation)
   ========================================================================== */

/* 
 * Set this CSS variable in your theme to match your fixed header height.
 * Example: :root { --hd-header-height: 80px; }
 * The filter will stick below the header when scrolling.
 */

/* ==========================================================================
   REDUCED MOTION - Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hd-faq-module .hd-faq-accordion,
  .hd-faq-module .hd-accordion__content,
  .hd-faq-module .hd-faq-category-content,
  .hd-faq-module .hd-faq-category-header,
  .hd-faq-module .hd-faq-category-arrow,
  .hd-faq-module .ico-faq-arrow,
  .hd-faq-module .hd-faq-filter-btn,
  .hd-faq-module .hd-faq-item {
    transition: none;
  }
  
  .hd-faq-module .hd-accordion__content,
  .hd-faq-module .hd-faq-category-content {
    transition: height 0.01ms;
  }
}

/* ==========================================================================
   EXTRA SMALL SCREENS - Under 375px
   ========================================================================== */

@media (max-width: 374px) {
  .hd-faq-module {
    --hd-header-height: 72px; /* Extra small fallback */
    padding: 2rem 0.75rem;
  }
  
  .hd-faq-module .hd-faq-filter-wrapper {
    margin: 0 -0.75rem 1.5rem -0.75rem;
    padding: 0.875rem 0.75rem;
  }
  
  .hd-faq-module .hd-faq-filter-buttons {
    padding: 0.25rem 0.75rem 0.5rem 0.75rem;
  }
  
  .hd-faq-module .hd-faq-filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .hd-faq-module .hd-faq-category-header-inner {
    padding: 0.875rem;
  }
  
  .hd-faq-module .hd-faq-category-name {
    font-size: 0.9375rem;
  }
  
  .hd-faq-module .hd-faq-category-count {
    font-size: 0.75rem;
    padding: 0.1875rem 0.5rem;
  }
  
  .hd-faq-module .hd-accordion__title {
    padding: 0.875rem;
  }
  
  .hd-faq-module .hd-accordion__maintitle {
    font-size: 0.9375rem;
  }
  
  .hd-faq-module .hd-accordion__content-inner {
    padding: 0 0.875rem 1rem;
  }
  
  .hd-faq-module .hd-accordion__content-inner,
  .hd-faq-module .hd-accordion__content-inner * {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   EMPTY STATE STYLES
   ========================================================================== */

.hd-faq-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(244, 241, 239, 0.5) 0%, rgba(232, 225, 220, 0.3) 100%);
  border-radius: 16px;
  margin: 2rem 0;
}

.hd-faq-empty-state.visible {
  display: flex;
}

.hd-faq-empty-icon {
  width: 80px;
  height: 80px;
  background: #FDFBF9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(25, 32, 49, 0.08);
}

.hd-faq-empty-icon svg {
  width: 36px;
  height: 36px;
  color: #827974;
}

.hd-faq-empty-title {
  font-family: "Butler", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #192031;
  margin: 0 0 0.75rem;
}

.hd-faq-empty-text {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  color: #827974;
  margin: 0 0 1.5rem;
  max-width: 400px;
}

.hd-faq-submit-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #192031;
  color: #FDFBF9;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-submit-btn-inline:hover {
  background: #2B4764;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 32, 49, 0.2);
}

.hd-faq-submit-btn-inline svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   BOTTOM CTA CARD
   ========================================================================== */

.hd-faq-cta-card {
  margin-top: 3rem;
  padding: 0;
}

.hd-faq-cta-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #192031 0%, #2B4764 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(25, 32, 49, 0.2);
  position: relative;
  overflow: hidden;
}

.hd-faq-cta-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(205, 185, 163, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hd-faq-cta-icon-wrap {
  position: relative;
  z-index: 1;
}

.hd-faq-cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CDB9A3;
}

.hd-faq-cta-icon svg {
  width: 28px;
  height: 28px;
}

.hd-faq-cta-content {
  position: relative;
  z-index: 1;
}

.hd-faq-cta-title {
  font-family: "Butler", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FDFBF9;
  margin: 0 0 0.75rem;
}

.hd-faq-cta-text {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  color: rgba(253, 251, 249, 0.8);
  margin: 0;
  max-width: 450px;
  line-height: 1.6;
}

.hd-faq-cta-action {
  position: relative;
  z-index: 1;
}

.hd-faq-submit-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: #CDB9A3;
  color: #192031;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-submit-btn-cta:hover {
  background: #FDFBF9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hd-faq-submit-btn-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.hd-faq-submit-btn-cta:hover svg {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .hd-faq-cta-card {
    margin-top: 4rem;
  }
  
  .hd-faq-cta-card-inner {
    flex-direction: row;
    text-align: left;
    padding: 3rem;
    gap: 2rem;
  }
  
  .hd-faq-cta-content {
    flex: 1;
  }
  
  .hd-faq-cta-title {
    font-size: 1.75rem;
  }
  
  .hd-faq-cta-text {
    max-width: none;
  }
  
  .hd-faq-cta-action {
    flex-shrink: 0;
  }
}

@media (min-width: 992px) {
  .hd-faq-cta-card-inner {
    padding: 3.5rem 4rem;
  }
  
  .hd-faq-cta-icon {
    width: 72px;
    height: 72px;
  }
  
  .hd-faq-cta-icon svg {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB)
   ========================================================================== */

.hd-faq-fab {
  position: fixed;
  bottom: 24px;
  left: 16px;
  right: auto;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #192031 0%, #2B4764 100%);
  color: #FDFBF9;
  border: none;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(25, 32, 49, 0.3);
  transition: all 0.3s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(25, 32, 49, 0.4);
}

.hd-faq-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-faq-fab-icon svg {
  width: 20px;
  height: 20px;
}

.hd-faq-fab-text {
  display: inline;
  white-space: nowrap;
}

/* Mobile: FAB positioned left with safe area */
@media (max-width: 767px) {
  .hd-faq-fab {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: auto;
  }
}

@media (min-width: 768px) {
  .hd-faq-fab {
    bottom: 32px;
    left: auto;
    right: 32px;
    padding: 16px 24px;
    font-size: 0.9375rem;
    gap: 10px;
  }
  
  .hd-faq-fab-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

.hd-faq-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hd-faq-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 32, 49, 0.6);
  backdrop-filter: blur(4px);
}

.hd-faq-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FDFBF9;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(25, 32, 49, 0.3);
}

.hd-faq-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 32, 49, 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.hd-faq-modal-close:hover {
  background: rgba(25, 32, 49, 0.1);
}

.hd-faq-modal-close svg {
  width: 20px;
  height: 20px;
  color: #827974;
}

.hd-faq-modal-header {
  padding: 32px 24px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(244, 241, 239, 0.5) 0%, transparent 100%);
}

.hd-faq-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #192031 0%, #2B4764 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CDB9A3;
  box-shadow: 0 8px 24px rgba(25, 32, 49, 0.2);
}

.hd-faq-modal-icon svg {
  width: 32px;
  height: 32px;
}

.hd-faq-modal-header h3 {
  font-family: "Butler", Georgia, serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #192031;
  margin: 0 0 10px;
}

.hd-faq-modal-header p {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.9375rem;
  color: #827974;
  margin: 0;
  line-height: 1.6;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   AUTH MODAL STYLES - Redesigned
   ========================================================================== */

.hd-faq-auth-screen,
.hd-faq-question-screen {
  padding: 0;
}

.hd-faq-auth-content {
  padding: 0 24px 28px;
}

/* PRIMARY SECTION - Account aanmaken */
.hd-faq-auth-primary {
  margin-bottom: 24px;
}

.hd-faq-auth-btn-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #192031 0%, #2B4764 100%);
  color: #FDFBF9;
  border: none;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Libre Franklin", sans-serif;
  box-shadow: 0 4px 16px rgba(25, 32, 49, 0.25);
}

.hd-faq-auth-btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(25, 32, 49, 0.35);
}

.hd-faq-auth-btn-cta svg {
  width: 22px;
  height: 22px;
}

/* Benefits list */
.hd-faq-benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.hd-faq-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.875rem;
  color: #192031;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-benefits li svg {
  flex-shrink: 0;
  color: #10B981;
  margin-top: 2px;
}

/* SECONDARY SECTION - Inloggen */
.hd-faq-auth-secondary {
  padding: 20px;
  background: #F4F1EF;
  border-radius: 12px;
  margin-bottom: 20px;
}

.hd-faq-auth-secondary-label {
  font-size: 0.875rem;
  color: #827974;
  margin: 0 0 12px;
  text-align: center;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-auth-btn-outline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #FDFBF9;
  color: #192031;
  border: 2px solid #CDB9A3;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-auth-btn-outline:hover {
  background: #192031;
  color: #FDFBF9;
  border-color: #192031;
}

.hd-faq-auth-btn-outline svg {
  width: 18px;
  height: 18px;
}

/* TERTIARY SECTION - Email only (collapsed) */
.hd-faq-auth-tertiary {
  border-top: 1px solid #E8E1DC;
  padding-top: 20px;
}

.hd-faq-email-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: transparent;
  border: none;
  color: #827974;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-email-toggle:hover {
  color: #192031;
}

.hd-faq-email-toggle svg {
  transition: transform 0.3s ease;
}

.hd-faq-email-toggle.active svg {
  transform: rotate(180deg);
}

.hd-faq-email-form {
  margin-top: 16px;
  padding: 20px;
  background: rgba(232, 225, 220, 0.3);
  border-radius: 12px;
}

.hd-faq-email-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: #827974;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 8px;
  border-left: 3px solid #F59E0B;
}

.hd-faq-email-note svg {
  flex-shrink: 0;
  color: #F59E0B;
  margin-top: 1px;
}

.hd-faq-auth-btn-subtle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #827974;
  color: #FDFBF9;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-auth-btn-subtle:hover {
  background: #6B5B53;
}

.hd-faq-auth-btn-subtle svg {
  width: 16px;
  height: 16px;
}

/* Form elements in auth */
.hd-faq-auth-content .hd-faq-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.hd-faq-auth-content .hd-faq-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #192031;
  margin-bottom: 6px;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-auth-content .hd-faq-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #E8E1DC;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: "Libre Franklin", sans-serif;
  color: #192031;
  background: #FDFBF9;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hd-faq-auth-content .hd-faq-form-group input:focus {
  outline: none;
  border-color: #192031;
  box-shadow: 0 0 0 3px rgba(25, 32, 49, 0.1);
}

.hd-faq-consent-section {
  margin: 16px 0 20px;
  text-align: left;
}

.hd-faq-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #192031;
}

.hd-faq-checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #192031;
}

.hd-faq-checkbox a {
  color: #2B4764;
  text-decoration: underline;
}

.hd-faq-checkbox a:hover {
  color: #192031;
}

.hd-faq-error-message {
  margin-top: 12px;
  padding: 10px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  color: #DC2626;
  font-size: 0.875rem;
  text-align: center;
}

/* Login/Register iframe modals */
.hd-faq-login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hd-faq-iframe-modal {
  max-width: 500px;
  height: 80vh;
  max-height: 700px;
}

.hd-faq-iframe-modal iframe {
  width: 100%;
  height: calc(100% - 60px);
  border: none;
  border-radius: 0 0 12px 12px;
}

/* Success state improvements */
.hd-faq-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  min-height: 300px;
}

.hd-faq-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.hd-faq-success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.hd-faq-success-state h4 {
  font-family: "Butler", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #192031;
  margin: 0 0 12px;
}

.hd-faq-success-state p {
  font-size: 1rem;
  color: #827974;
  margin: 0 0 24px;
  max-width: 300px;
}

.hd-faq-close-success-btn {
  padding: 12px 32px;
  background: #192031;
  color: #FDFBF9;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-faq-close-success-btn:hover {
  background: #2B4764;
  transform: translateY(-2px);
}

/* ==========================================================================
   QUESTION FORM STYLES
   ========================================================================== */

.hd-faq-modal-body {
  padding: 0 24px 32px;
}

.hd-faq-submit-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hd-faq-form-group {
  margin-bottom: 20px;
}

.hd-faq-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #192031;
  margin-bottom: 8px;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-form-group label .required {
  color: #DC2626;
}

/* Target all form inputs within the form */
.hd-faq-submit-form input[type="text"],
.hd-faq-submit-form input[type="email"],
.hd-faq-submit-form textarea,
.hd-faq-submit-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E8E1DC;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Libre Franklin", sans-serif;
  color: #192031;
  background: #FDFBF9;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hd-faq-submit-form input[type="text"]:focus,
.hd-faq-submit-form input[type="email"]:focus,
.hd-faq-submit-form textarea:focus,
.hd-faq-submit-form select:focus {
  outline: none;
  border-color: #192031;
  box-shadow: 0 0 0 3px rgba(25, 32, 49, 0.1);
}

.hd-faq-submit-form textarea {
  min-height: 120px;
  resize: vertical;
}

.hd-faq-submit-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23827974' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.hd-faq-char-count {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: #827974;
  margin-top: 6px;
}

.hd-faq-form-footer {
  margin-top: 8px;
}

.hd-faq-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #827974;
  margin: 0 0 16px;
}

.hd-faq-privacy-note svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.hd-faq-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: #192031;
  color: #FDFBF9;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
  margin-top: 8px;
}

.hd-faq-submit-btn svg.btn-icon {
  width: 18px;
  height: 18px;
}

.hd-faq-submit-btn:hover:not(:disabled) {
  background: #2B4764;
  transform: translateY(-2px);
}

.hd-faq-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hd-faq-submit-btn .btn-loading {
  display: none;
}

.hd-faq-submit-btn.loading .btn-text,
.hd-faq-submit-btn.loading .btn-icon {
  display: none;
}

.hd-faq-submit-btn.loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hd-faq-submit-btn .btn-loading .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FDFBF9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hidden HubSpot form container */
#faq-hubspot-form {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

/* ==========================================================================
   FILTER HEADER WITH ASK LINK
   ========================================================================== */

.hd-faq-filter-header {
  display: none;
}

@media (min-width: 768px) {
  .hd-faq-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  
  .hd-faq-filter-label {
    margin-bottom: 0 !important;
  }
  
  .hd-faq-ask-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    color: #2B4764;
    border: 1px solid #CDB9A3;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Libre Franklin", sans-serif;
  }
  
  .hd-faq-ask-link:hover {
    background: #192031;
    color: #FDFBF9;
    border-color: #192031;
  }
  
  .hd-faq-ask-link svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   INLINE ASK QUESTION FORM (within categories)
   ========================================================================== */

.hd-faq-ask-item {
  margin-top: 8px;
}

.hd-faq-ask-accordion {
  background: linear-gradient(135deg, rgba(205, 185, 163, 0.15) 0%, rgba(232, 225, 220, 0.3) 100%) !important;
  border: 2px dashed #CDB9A3;
}

.hd-faq-ask-accordion.active {
  background: linear-gradient(135deg, rgba(205, 185, 163, 0.25) 0%, rgba(232, 225, 220, 0.4) 100%) !important;
  border-style: solid;
}

.hd-ask-maintitle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2B4764 !important;
}

.hd-ask-maintitle svg {
  flex-shrink: 0;
  color: #CDB9A3;
}

.hd-ask-form-inner {
  padding-top: 0.5rem !important;
}

/* Inline form styling */
.hd-faq-inline-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hd-faq-inline-form-group {
  margin-bottom: 16px;
}

.hd-faq-inline-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #192031;
  margin-bottom: 6px;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-inline-form-group textarea,
.hd-faq-inline-form-group input[type="email"],
.hd-faq-inline-form-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #E8E1DC;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: "Libre Franklin", sans-serif;
  color: #192031;
  background: #FDFBF9;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hd-faq-inline-form-group textarea:focus,
.hd-faq-inline-form-group input:focus {
  outline: none;
  border-color: #2B4764;
  box-shadow: 0 0 0 3px rgba(43, 71, 100, 0.1);
}

.hd-faq-inline-form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.hd-faq-inline-hint {
  font-size: 0.75rem;
  color: #827974;
  margin: 6px 0 0;
}

.hd-faq-inline-form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hd-faq-inline-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #192031;
  color: #FDFBF9;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-inline-submit:hover:not(:disabled) {
  background: #2B4764;
  transform: translateY(-2px);
}

.hd-faq-inline-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hd-faq-inline-submit .btn-icon {
  width: 16px;
  height: 16px;
}

.hd-faq-inline-submit .btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.hd-faq-inline-submit.loading .btn-text,
.hd-faq-inline-submit.loading .btn-icon {
  display: none;
}

.hd-faq-inline-submit.loading .btn-loading {
  display: inline-flex;
}

.hd-faq-inline-submit .btn-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FDFBF9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Success message */
.hd-faq-inline-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 12px;
}

.hd-faq-inline-success svg {
  flex-shrink: 0;
}

/* Hide form when success shown */
.hd-faq-inline-form.submitted .hd-faq-inline-form-group,
.hd-faq-inline-form.submitted .hd-faq-inline-form-footer {
  display: none;
}

.hd-faq-inline-form.submitted .hd-faq-inline-success {
  display: flex !important;
}

/* Responsive */
@media (min-width: 768px) {
  .hd-faq-ask-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .hd-faq-inline-form-group textarea {
    min-height: 100px;
  }
  
  .hd-faq-inline-submit {
    padding: 12px 24px;
  }
}

/* ==========================================================================
   INLINE CHOICE MENU (within category accordions)
   ========================================================================== */

.hd-faq-inline-choice {
  display: flex;
  flex-direction: column;
}

.hd-faq-choice-step {
  width: 100%;
}

/* Choice label */
.hd-faq-choice-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #827974;
  margin: 0 0 16px;
  text-align: center;
  font-family: "Libre Franklin", sans-serif;
}

/* Choice buttons container */
.hd-faq-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Choice button base */
.hd-faq-choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
  text-align: left;
}

.hd-faq-choice-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.hd-faq-choice-btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.hd-faq-choice-btn-content strong {
  font-weight: 600;
}

.hd-faq-choice-btn-content small {
  font-weight: 400;
  opacity: 0.85;
}

/* PRIMARY CHOICE - Account (PROMINENT) */
.hd-faq-choice-btn-primary {
  padding: 20px;
  background: linear-gradient(135deg, #192031 0%, #2B4764 100%);
  color: #FDFBF9;
  border: none;
  box-shadow: 0 4px 16px rgba(25, 32, 49, 0.2);
}

.hd-faq-choice-btn-primary .hd-faq-choice-btn-icon {
  width: 52px;
  height: 52px;
  background: rgba(205, 185, 163, 0.25);
  color: #CDB9A3;
}

.hd-faq-choice-btn-primary .hd-faq-choice-btn-icon svg {
  width: 24px;
  height: 24px;
}

.hd-faq-choice-btn-primary .hd-faq-choice-btn-content strong {
  font-size: 1.0625rem;
}

.hd-faq-choice-btn-primary .hd-faq-choice-btn-content small {
  font-size: 0.875rem;
}

.hd-faq-choice-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(25, 32, 49, 0.3);
}

/* Recommended badge */
.hd-faq-choice-btn-primary::after {
  content: 'Aanbevolen';
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 4px 10px;
  background: #CDB9A3;
  color: #192031;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.hd-faq-choice-btn-primary {
  position: relative;
}

/* SECONDARY CHOICE - Email only (subtle) */
.hd-faq-choice-btn-secondary {
  padding: 14px 16px;
  background: transparent;
  color: #827974;
  border: 1px solid #E8E1DC;
}

.hd-faq-choice-btn-secondary .hd-faq-choice-btn-icon {
  width: 40px;
  height: 40px;
  background: #F4F1EF;
  color: #827974;
}

.hd-faq-choice-btn-secondary .hd-faq-choice-btn-icon svg {
  width: 18px;
  height: 18px;
}

.hd-faq-choice-btn-secondary .hd-faq-choice-btn-content strong {
  font-size: 0.875rem;
  font-weight: 500;
}

.hd-faq-choice-btn-secondary .hd-faq-choice-btn-content small {
  font-size: 0.75rem;
}

.hd-faq-choice-btn-secondary:hover {
  border-color: #CDB9A3;
  color: #192031;
}

/* Back button */
.hd-faq-choice-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-bottom: 16px;
  background: none;
  border: none;
  color: #827974;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: "Libre Franklin", sans-serif;
}

.hd-faq-choice-back:hover {
  color: #192031;
}

.hd-faq-choice-back svg {
  width: 16px;
  height: 16px;
}

/* Guest form in choice */
.hd-faq-choice-form .hd-faq-inline-form-guest {
  padding: 0;
  background: transparent;
}