/* Checklist card component */
.checklist-card {
  --checklist-card-accent: var(--brand-ocean-blue);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem;
  background: var(--brand-off-white);
  border: 1px solid var(--brand-neutral-3);
  border-radius: 32px;
  color: var(--brand-neutral-8);
}

.checklist-card__header {
  margin-bottom: 2rem;
}

.checklist-card__title {
  color: var(--checklist-card-accent);
  margin-bottom: .625rem;
}

.checklist-card__subtitle {
  color: var(--brand-neutral-8);
}

.checklist-card__group + .checklist-card__group {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(43, 35, 30, 0.24);
}

.checklist-card__group-title {
  margin-bottom: 1.25rem;
}

.checklist-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-card__list li {
  position: relative;
  padding-left: 1.875rem;
}

/* Checkbox icon */
.checklist-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background-color: var(--checklist-card-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Optional CTA */
.checklist-card.has-cta .checklist-card__group:last-of-type {
  margin-bottom: 2rem;
}

.checklist-card__cta.default-btn {
  margin-top: auto;
  font-size: 18px;
  font-family: var(--font-ideal-sans-medium);
  font-weight: 500;
  width: 100% !important;
}

/* Collapsible last group (mobile accordion) */
.checklist-card__group--collapsible .checklist-card__group-title {
  margin-bottom: 0;
}

.checklist-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.checklist-card__toggle-icon {
  flex-shrink: 0;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.checklist-card__toggle:not(.collapsed) .checklist-card__toggle-icon {
  transform: rotate(180deg);
}

/* Padding instead of margin so the collapse animation stays smooth. */
.checklist-card__collapse .checklist-card__list {
  padding-top: 1.25rem;
}

@media screen and (min-width: 992px) {
  .checklist-card {
    padding: 48px;
  }

  /* Desktop: always expanded, toggle behaves like a plain heading. */
  .checklist-card__collapse.collapse {
    display: block !important;
    height: auto !important;
  }

  .checklist-card__toggle {
    pointer-events: none;
    cursor: default;
  }

  .checklist-card__toggle-icon {
    display: none;
  }
}
