
/* ========================================
                     MYSTIC NALC FORMS COMPONENT STYLES
                     ======================================== */

/* NALC Forms Component Styles */
.nalc-forms-component {
  font-family: "Public Sans", sans-serif;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  /* Ensure immediate responsive behavior */
  min-height: 200px;
  opacity: 1;
  visibility: visible;
  /* Prevent layout shift during initialization */
  contain: layout style;
  /* Ensure proper container fit */
  margin: 0;
  padding: 0;
}

/* Ensure component fits within container without overflow */
.nalc-forms-component * {
  box-sizing: border-box;
  max-width: 100%;
}

/* Prevent horizontal overflow */
.nalc-forms-component,
.nalc-forms-component * {
  overflow-x: hidden;
}

/* Ensure proper flex behavior */
.nalc-forms-desktop,
.nalc-forms-mobile {
  flex-shrink: 1;
  min-width: 0;
}

/* Critical responsive behavior - ensure immediate responsiveness */
@media (max-width: 1024px) {
  .nalc-forms-component .nalc-forms-desktop {
    display: none !important;
  }

  .nalc-forms-component .nalc-forms-mobile {
    display: flex !important;
    flex-direction: column;
  }
}

@media (min-width: 1025px) {
  .nalc-forms-component .nalc-forms-desktop {
    display: flex !important;
  }

  .nalc-forms-component .nalc-forms-mobile {
    display: none !important;
  }
}

/* Ensure component is immediately visible and responsive */
.nalc-forms-component:not(.nalc-forms-component--loading) {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.nalc-forms-component--loading {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Handle initial state before JavaScript loads */
.nalc-forms-component:not([data-initialized]) {
  /* Ensure proper layout even before JS initialization */
  min-height: 200px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  /* Ensure immediate visibility */
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.nalc-forms-component:not([data-initialized]) .nalc-forms-desktop,
.nalc-forms-component:not([data-initialized]) .nalc-forms-mobile {
  /* Prevent flash of unstyled content */
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  /* Ensure proper display */
  display: flex !important;
  flex-direction: column;
}

/* Ensure proper initial display for desktop layout */
.nalc-forms-component:not([data-initialized]) .nalc-forms-desktop {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}

/* Ensure proper initial display for mobile layout */
@media (max-width: 1024px) {
  .nalc-forms-component:not([data-initialized]) .nalc-forms-desktop {
    display: none !important;
  }

  .nalc-forms-component:not([data-initialized]) .nalc-forms-mobile {
    display: flex !important;
    flex-direction: column;
  }
}

/* Ensure form cards display properly in initial state */
.nalc-forms-component:not([data-initialized]) .nalc-form-card {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--mystic-primary-color, #0e6496);
  background: #ffffff;
  margin-bottom: 12px;
  opacity: 1;
  visibility: visible;
}

.nalc-forms-component:not([data-initialized]) .nalc-form-card__title {
  display: block !important;
  opacity: 1;
  visibility: visible;
  color: var(--black-1000);
  font-family: "Public Sans";
  font-size: 16px;
  font-weight: 600;
  line-height: 120%;
  margin: 0;
}

.nalc-forms-component:not([data-initialized]) .nalc-form-card__excerpt {
  display: block !important;
  opacity: 1;
  visibility: visible;
  color: var(--Black-800, rgba(20, 20, 20, 0.8));
  font-family: "Public Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  margin: 0;
}

.nalc-forms-component:not([data-initialized]) .nalc-form-card__download-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  width: 100%;
  font-family: "Public Sans", sans-serif;
  opacity: 1;
  visibility: visible;
}

/* Ensure controls display properly in initial state */
.nalc-forms-component:not([data-initialized]) .nalc-forms-controls {
  display: flex !important;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  opacity: 1;
  visibility: visible;
}

.nalc-forms-component:not([data-initialized]) .nalc-forms-search {
  flex: 1;
  min-width: 200px;
  opacity: 1;
  visibility: visible;
}

.nalc-forms-component:not([data-initialized]) .nalc-forms-search__input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
}

.nalc-forms-component:not([data-initialized]) .nalc-forms-filter {
  min-width: 150px;
  opacity: 1;
  visibility: visible;
}

.nalc-forms-component:not([data-initialized]) .nalc-forms-filter__select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
}

/* Ensure section titles display properly in initial state */
.nalc-forms-component:not([data-initialized]) .nalc-forms-section-title {
  display: block !important;
  opacity: 1;
  visibility: visible;
  color: var(--black-1000);
  font-family: "Public Sans";
  font-size: 24px;
  font-weight: 500;
  line-height: 120%;
  margin: 0 0 20px 0;
}

.nalc-forms-component:not([data-initialized]) .nalc-forms-section-subtitle {
  display: block !important;
  opacity: 1;
  visibility: visible;
  font-size: 18px;
  font-weight: 600;
  line-height: 120%;
  color: var(--black-1000);
  margin: 0 0 16px 0;
}

/* Desktop Layout */
.nalc-forms-desktop {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  /* Ensure proper container fit */
  margin: 0;
  padding: 0;
}

.nalc-forms-mobile {
  display: none;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  /* Ensure mobile layout is ready immediately */
  min-height: 0;
  opacity: 1;
  visibility: visible;
  /* Ensure proper container fit */
  margin: 0;
  padding: 0;
}

/* Popular Section - 1/3 width */
.nalc-forms-popular {
  flex: 0 0 33.333%;
  padding: 32px 24px 0 24px;
  border-right: 1px solid rgba(20, 20, 20, 0.1);
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  /* Ensure immediate responsive behavior */
  max-width: 33.333%;
  /* Ensure proper container fit */
  margin: 0;
  flex-shrink: 1;
}

/* Main Forms Section - 2/3 width */
.nalc-forms-main {
  flex: 0 0 66.667%;
  padding: 32px 24px 40px 24px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  /* Ensure immediate responsive behavior */
  max-width: 66.667%;
  /* Ensure proper container fit */
  margin: 0;
  flex-shrink: 1;
}

/* Section Titles */
.nalc-forms-section-title {
  color: var(--black-1000);
  font-family: "Public Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin: 0 0 20px 0;
}

.nalc-forms-section-subtitle {
  font-size: 18px;
  font-weight: 600;
  line-height: 120%;
  color: var(--black-1000);
  margin: 0 0 16px 0;
}

/* Form Cards */
.nalc-form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--mystic-primary-color, #0e6496);
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: "Public Sans", sans-serif;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.nalc-form-card--popular {
  background: #ffffff;
  border-color: var(--e-global-color-ef1318b, #0e6496);
  margin-bottom: 12px;
  /* Ensure proper text display in popular section */
  min-width: 0;
  overflow: hidden;
}

/* Specific styles for popular section cards */
.nalc-form-card--popular .nalc-form-card__title {
  /* Allow natural text wrapping in popular section without truncation */
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow: visible;
  text-overflow: unset;
  display: block;
}

.nalc-form-card--popular .nalc-form-card__excerpt {
  /* Allow natural text wrapping in popular section without truncation */
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow: visible;
  text-overflow: unset;
  display: block;
}

/* Most Popular form buttons should use white button variant */
.nalc-form-card--popular .nalc-form-card__download-btn,
.nalc-form-card--popular .mystic-design-button--primary {
  background: white !important;
  color: var(--blue-900) !important;
  border: 1px solid var(--blue-900) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  min-width: 0;
  padding: 12px 16px;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  /* Remove any scrollbar appearance */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ensure clean button appearance */
  box-shadow: none;
  outline: none;
}

.nalc-form-card--popular .nalc-form-card__download-btn:hover,
.nalc-form-card--popular .mystic-design-button--primary:hover {
  background: var(--blue-100) !important;
  color: var(--blue-900) !important;
  border-color: var(--blue-900) !important;
}

.nalc-form-card--popular .nalc-form-card__download-btn:focus,
.nalc-form-card--popular .mystic-design-button--primary:focus {
  background: var(--blue-100) !important;
  color: var(--blue-900) !important;
  border-color: var(--blue-900) !important;
  box-shadow: 0 0 0 4px var(--blue-900);
  outline: none;
}

.nalc-form-card--popular.nalc-form-card--selected {
  background: var(--mystic-secondary-color, #f1f9fe) !important;
  border-color: var(--mystic-primary-color, #0e6496);
}

.nalc-form-card--list {
  margin-bottom: 12px;
}

.nalc-form-card--selected {
  background: var(--mystic-secondary-color, #f1f9fe);
  border-color: var(--mystic-primary-color, #0e6496);
}

.nalc-form-card--list:not(.nalc-form-card--selected) {
  background: #ffffff;
  border-color: rgba(20, 20, 20, 0.1);
}

.nalc-form-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nalc-form-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

.nalc-form-card__title {
  color: var(--black-1000);
  font-family: "Public Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  color: var(--black-1000);
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  display: block;
  white-space: normal;
}

.nalc-form-card__excerpt {
  overflow: visible;
  color: var(--Black-800, rgba(20, 20, 20, 0.8));
  font-family: "Public Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  color: var(--e-global-color-0d5860f, #141414ad);
  margin: 0;
  display: block;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-overflow: unset;
  /* Prevent text repetition */
  white-space: normal;
}

.nalc-form-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.nalc-form-card__read-more {
  background: none;
  border: none;
  color: var(--mystic-primary-color, #0e6496);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  font-family: "Public Sans", sans-serif;
}

.nalc-form-card__read-more:hover {
  color: var(--mystic-primary-hover, #0a4a6b);
}

.nalc-form-card__read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nalc-form-card__read-more:hover svg {
  transform: translateY(1px);
}

.nalc-form-checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nalc-form-checkbox input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.nalc-form-checkbox__mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(20, 20, 20, 0.3);
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nalc-form-checkbox input:checked + .nalc-form-checkbox__mark {
  background: var(--mystic-primary-color, #0e6496);
  border-color: var(--mystic-primary-color, #0e6496);
}

.nalc-form-checkbox:hover .nalc-form-checkbox__mark {
  border-color: var(--mystic-primary-color, #0e6496);
}

.nalc-form-checkbox input:focus {
  outline: 2px solid var(--mystic-primary-color, #0e6496);
  outline-offset: 2px;
}

.nalc-form-checkbox input:focus + .nalc-form-checkbox__mark {
  outline: 2px solid var(--mystic-primary-color, #0e6496);
  outline-offset: 2px;
  border-color: var(--mystic-primary-color, #0e6496);
}

.nalc-form-checkbox__mark svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
}

.nalc-form-checkbox input:checked + .nalc-form-checkbox__mark svg {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}

.nalc-form-card__download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  width: 100%;
  font-family: "Public Sans", sans-serif;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  min-width: 0;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  /* Remove any scrollbar appearance */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ensure clean button appearance */
  background: var(--mystic-primary-color, #0e6496);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Override button component styles for NALC forms */
.nalc-form-card .mystic-design-button--primary {
  background: var(--mystic-primary-color, #0e6496);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  min-width: 0;
  padding: 12px 16px;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  /* Remove any scrollbar appearance */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ensure clean button appearance */
  box-shadow: none;
  outline: none;
}

.nalc-form-card .mystic-design-button--primary:hover {
  background: var(--mystic-primary-hover, #0a4a6b);
}

.nalc-form-card__download-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nalc-form-card__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
}

/* Ensure form list buttons are left-aligned */
.nalc-form-card__links .mystic-design-button {
  align-self: flex-start !important;
  width: auto !important;
  max-width: 100%;
  justify-content: flex-start !important;
  text-align: left !important;
  margin: 0 !important;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  min-width: 0;
  flex-shrink: 1;
  /* Remove any scrollbar appearance */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ensure clean button appearance */
  box-shadow: none;
  outline: none;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
/* .nalc-form-card__links .mystic-design-button--link span {
                    display: block;
                    cursor: pointer;
                  } */
.nalc-form-card__links .mystic-design-button--link {
  appearance: auto !important;
  border: 2px solid transparent !important;
}
.nalc-form-card__links .mystic-design-button--link:focus {
  border: 2px solid var(--mystic-primary-color, #0e6496) !important;
  /* outline-offset: 2px !important; */
}

.nalc-form-card__link {
  color: var(--Blue-800, #0f557d);
  font-family: "Public Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid rgba(14, 100, 150, 0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  min-width: 0;
  flex-shrink: 1;
  /* Remove any scrollbar appearance */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ensure clean link appearance */
  box-shadow: none;
  outline: none;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.nalc-form-card__link:hover {
  background: #e9ecef;
  border-color: var(--mystic-primary-color, #0e6496);
}

.nalc-forms-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  /* Ensure immediate responsive behavior */
  min-height: 0;
  flex-wrap: wrap;
}

.nalc-forms-search {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.nalc-forms-search__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.nalc-forms-search__icon {
  position: absolute;
  left: 12px;
  color: #666666;
  pointer-events: none;
}

.nalc-forms-search__input {
  width: 100%;
  max-width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.nalc-forms-search__input::placeholder {
  color: #999999;
}

.nalc-forms-search__input:focus {
  outline: none;
  border-color: #0e6496;
  box-shadow: 0 0 0 3px rgba(14, 100, 150, 0.1);
}

.nalc-forms-search__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.nalc-forms-search__suggestion {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: var(--black-1000);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nalc-forms-search__suggestion:hover,
.nalc-forms-search__suggestion:focus {
  background: #f8f9fa;
}

.nalc-forms-filter {
  min-width: 150px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.nalc-forms-filter__select {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  box-sizing: border-box;
  overflow: hidden;
}

.nalc-forms-filter__select:focus {
  outline: none;
  border-color: #0e6496;
  box-shadow: 0 0 0 3px rgba(14, 100, 150, 0.1);
}

.nalc-forms-filter__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  pointer-events: none;
}

.nalc-forms-bulk-actions {
  display: flex;
  padding: 12px 12px 12px 16px;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  border-radius: 16px;
  background: var(--Black-50, rgba(20, 20, 20, 0.05));
  margin-bottom: 16px;
}

.nalc-forms-bulk-actions__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.nalc-forms-bulk-actions__clear {
  background: none;
  border: none;
  color: #666666;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  width: 20px;
  height: 20px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nalc-forms-bulk-actions__clear:hover {
  color: var(--black-1000);
}

.nalc-forms-bulk-actions__clear svg {
  width: 20px;
  height: 20px;
  aspect-ratio: 1/1;
}

.nalc-forms-bulk-actions__count {
  font-family: var(--font-public-sans);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 24px */
  color: var(--blue-900-main, var(--blue-900));
}

.nalc-forms-bulk-actions__divider {
  width: 1px;
  height: 24px;
  background: rgba(20, 20, 20, 0.1);
}

/* Bulk actions styling - using standard button classes */
.nalc-forms-bulk-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Loading spinner animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

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

/* Disabled button state */
.mystic-design-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nalc-forms-bulk-actions__download svg {
  width: 16px;
  height: 16px;
}

/* Bulk actions download button styling */
.nalc-forms-bulk-actions .mystic-design-button {
  display: flex;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  border-radius: 8px;
  background: var(--yellow-300-main, #f7cd46);
  font-family: var(--font-public-sans);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 24px */
  color: var(--brand-brown);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  /* Remove any scrollbar appearance */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ensure clean button appearance */
  box-shadow: none;
  outline: none;
  /* Proper text handling */
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  min-width: 0;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.nalc-forms-bulk-actions .mystic-design-button:hover {
  background: var(--yellow-300-main, #f7cd46);
  opacity: 0.9;
  color: var(--brand-brown);
}

.nalc-forms-bulk-actions .mystic-design-button:focus {
  box-shadow: 0 0 0 2px var(--yellow-300-main, #f7cd46);
  outline: none;
}

.nalc-forms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  /* Ensure immediate visibility */
  opacity: 1;
  visibility: visible;
  min-height: 120px;
}

.nalc-forms-popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Ensure immediate visibility */
  opacity: 1;
  visibility: visible;
  min-height: 100px;
}

.nalc-forms-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nalc-forms-pagination__numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nalc-forms-pagination__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md, 8px);
  background: #ffffff;
  color: var(--black-1000);
  text-align: center;
  font-family: "Public Sans";
  font-size: var(--Components-Alert-Global-fontSize, 14px);
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.nalc-forms-pagination__number:hover {
  background: #f8f9fa;
}
.nalc-forms-pagination__number:focus {
  outline: 2px solid #0e6496;
  outline-offset: -2px !important;
}

.nalc-forms-pagination__number--active {
  background: var(--Blue-200, #bee4f9);
  color: var(--black-1000);
  border: none;
}

.nalc-forms-pagination__gap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #666666;
  font-size: 14px;
}

/* Mobile Layout */
@media (max-width: 1024px) {
  .nalc-forms-desktop {
    display: none;
  }

  .nalc-forms-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .nalc-forms-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .nalc-forms-controls .nalc-forms-search,
  .nalc-forms-controls .nalc-forms-filter {
    width: 100%;
  }

  .nalc-forms-popular-mobile {
    margin-bottom: 24px;
  }

  .nalc-forms-popular-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nalc-forms-popular-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .nalc-forms-popular-scroll::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.1);
    border-radius: 2px;
  }

  .nalc-forms-popular-scroll::-webkit-scrollbar-thumb {
    background: rgba(20, 20, 20, 0.3);
    border-radius: 2px;
  }

  .nalc-form-card--popular-mobile {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .nalc-form-card--popular-mobile.nalc-form-card--selected {
    background: #f1f9fe;
    border-color: #0e6496;
  }

  .nalc-form-card__download-btn--mobile {
    padding: 12px 16px;
    font-size: 14px;
    background: var(--mystic-primary-color, #0e6496);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    /* Remove any scrollbar appearance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Ensure clean button appearance */
    box-shadow: none;
    outline: none;
  }

  /* Most Popular mobile buttons should use white variant */
  .nalc-form-card--popular-mobile .nalc-form-card__download-btn--mobile {
    background: white !important;
    color: var(--blue-900) !important;
    border: 1px solid var(--blue-900) !important;
  }

  .nalc-form-card--popular-mobile .nalc-form-card__download-btn--mobile:hover {
    background: var(--blue-100) !important;
    color: var(--blue-900) !important;
    border-color: var(--blue-900) !important;
  }

  .nalc-forms-bulk-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nalc-forms-bulk-actions__info {
    justify-content: space-between;
  }

  .nalc-forms-bulk-actions__divider {
    display: none;
  }

  .nalc-forms-bulk-actions__download {
    justify-content: center;
  }

  /* Tablet styles for bulk actions download button */
  .nalc-forms-bulk-actions .mystic-design-button {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    /* Remove any scrollbar appearance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Ensure clean button appearance */
    box-shadow: none;
    outline: none;
    /* Proper text handling */
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .nalc-forms-pagination__numbers {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Tablet styles for NALC form card links */
  .nalc-form-card__links {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .nalc-form-card__links .mystic-design-button {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 14px 20px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nalc-form-card__link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 14px 20px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
  .nalc-forms-mobile {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .nalc-forms-section-title {
    font-size: 20px;
  }

  .nalc-forms-section-subtitle {
    font-size: 16px;
  }

  .nalc-form-card {
    padding: 16px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .nalc-form-card__title {
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow: visible;
    text-overflow: unset;
  }

  .nalc-form-card__excerpt {
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow: visible;
    text-overflow: unset;
  }

  .nalc-form-card--popular-mobile {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .nalc-form-card--popular-mobile.nalc-form-card--selected {
    background: #f1f9fe;
    border-color: #0e6496;
  }

  .nalc-forms-controls {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Mobile styles for bulk actions download button */
  .nalc-forms-bulk-actions .mystic-design-button {
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    /* Remove any scrollbar appearance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Ensure clean button appearance */
    box-shadow: none;
    outline: none;
    /* Proper text handling */
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  /* Mobile styles for NALC form card links */
  .nalc-form-card__links {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .nalc-form-card__links .mystic-design-button {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .nalc-form-card__link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  .nalc-forms-mobile {
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .nalc-form-card--popular-mobile {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .nalc-form-card--popular-mobile.nalc-form-card--selected {
    background: #f1f9fe;
    border-color: #0e6496;
  }

  .nalc-forms-pagination__numbers {
    gap: 4px;
  }

  .nalc-forms-pagination__number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* Extra small mobile styles for NALC form card links */
  .nalc-form-card__links {
    gap: 8px;
  }

  .nalc-form-card__links .mystic-design-button {
    padding: 10px 12px;
    font-size: 13px;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .nalc-form-card__link {
    padding: 10px 12px;
    font-size: 13px;
    justify-content: flex-start;
    text-align: left;
  }

  /* Extra small mobile styles for bulk actions download button */
  .nalc-forms-bulk-actions .mystic-design-button {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    /* Remove any scrollbar appearance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Ensure clean button appearance */
    box-shadow: none;
    outline: none;
    /* Proper text handling */
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Desktop Controls Layout */
@media (min-width: 1025px) {
  .nalc-forms-controls {
    flex-direction: row;
    align-items: center;
  }

  .nalc-forms-search {
    flex: 1;
    max-width: 400px;
  }

  .nalc-forms-filter {
    flex-shrink: 0;
  }
}

/* Focus States */
.nalc-form-card:focus-within {
  outline: 2px solid #0e6496;
  outline-offset: -2px;
}

.nalc-forms-search__input:focus,
.nalc-forms-filter__select:focus,
.nalc-forms-pagination__number:focus,
.nalc-form-card__download-btn:focus,
.nalc-forms-bulk-actions__download:focus,
.nalc-forms-bulk-actions__clear:focus {
  outline: 2px solid #0e6496 !important;
  outline-offset: -2px;
  border: 2px solid #0e6496 !important;
}

/* Fallback for browsers that don't support outline-offset */
@supports not (outline-offset: 2px) {
  .nalc-form-card:focus-within {
    outline: 2px solid #0e6496;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px #0e6496;
  }

  .nalc-forms-search__input:focus,
  .nalc-forms-filter__select:focus,
  .nalc-forms-pagination__number:focus,
  .nalc-form-card__download-btn:focus,
  .nalc-forms-bulk-actions__download:focus,
  .nalc-forms-bulk-actions__clear:focus {
    outline: 2px solid #0e6496;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px #0e6496;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .nalc-form-card {
    border-width: 2px;
  }

  .nalc-form-checkbox__mark {
    border-width: 2px;
  }

  .nalc-forms-search__input,
  .nalc-forms-filter__select {
    border-width: 2px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .nalc-form-card,
  .nalc-form-card__download-btn,
  .nalc-form-card__link,
  .nalc-forms-search__input,
  .nalc-forms-filter__select,
  .nalc-forms-pagination__number,
  .nalc-forms-bulk-actions__download,
  .nalc-form-checkbox__mark {
    transition: none;
  }
}