/* ============================================================
   Hero Section — Organization
   (resolved from HeroSection.module.scss)
   ============================================================ */

.org-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-flow: row nowrap;
  gap: 40px;
}

.org-hero__content {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.org-hero__subtitle {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.org-hero__supporters-highlight {
  color: #e40148;
  font-weight: 500;
}

.org-hero__heading {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  max-width: 600px;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
}

.org-hero__parent-name {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.org-hero__parent-link {
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.org-hero__parent-link:hover {
  color: #e40148;
  text-decoration: underline;
}

.org-hero__meta {
  margin-top: -14px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 4px;
}

.org-hero__address,
.org-hero__admin-text {
  margin: 0;
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}

.org-hero__admin-link {
  font: inherit;
  color: #22252a;
  text-decoration: underline;
  text-underline-position: from-font;
  cursor: pointer;
  transition: color 0.15s ease;
}

.org-hero__admin-link:hover {
  color: #e40148;
}

.org-hero__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row wrap;
  gap: 13px;
}

.org-hero__supporting-btn {
  padding: 0 16px;
}

.org-hero__supporting-btn[disabled],
.org-hero__supporting-btn[disabled]:hover {
  opacity: 1;
  color: #22252a;
  border-color: #22252a;
  background-color: transparent;
}

.org-hero__browse-mobile {
  display: none;
}

@media only screen and (max-width: 991px) {
  .org-hero__browse-desktop {
    display: none;
  }

  .org-hero__browse-mobile {
    display: inline;
  }
}

.org-hero__logo-wrapper {
  flex-shrink: 0;
  width: 294px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.org-hero__logo {
  max-width: 100%;
  max-height: 172px;
  object-fit: contain;
}

@media only screen and (max-width: 991px) {
  .org-hero {
    padding: 0 16px 32px;
    justify-content: flex-start;
    align-items: center;
    flex-flow: column nowrap;
    gap: 24px;
  }

  .org-hero__content {
    align-self: stretch;
    align-items: center;
    text-align: center;
    min-width: 0;
    gap: 16px;
  }

  .org-hero__meta {
    margin-top: 0;
    align-items: center;
  }

  .org-hero__subtitle {
    font-size: 14px;
    line-height: 19.6px;
  }

  .org-hero__heading {
    font-size: 31px;
    line-height: 37.2px;
    letter-spacing: -1px;
    max-width: 304px;
  }

  .org-hero__parent-name {
    font-size: 24px;
    line-height: 28.8px;
  }

  .org-hero__actions {
    width: 100%;
    margin-top: 16px;
    justify-content: flex-start;
    align-items: center;
    flex-flow: column nowrap;
    gap: 16px;
  }

  .org-hero__actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .org-hero__logo-wrapper {
    width: 100%;
    max-width: 156px;
    order: -1;
  }

  .org-hero__logo {
    max-height: 91px;
  }
}

/* ============================================================
   Description Section — Organization
   (resolved from DescriptionSection.module.scss, OrganizationLinks.module.scss,
   OrganizationPhotoGallery.module.scss, OrganizationAdminNotice.module.scss)
   ============================================================ */

.org-description {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-flow: row nowrap;
  gap: 40px;
}

.org-description__heading {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  white-space: nowrap;
  min-width: 160px;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.org-description__body {
  flex: 1;
  max-width: 791px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 12px;
}

.org-description__markdown {
  width: 100%;
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

.org-description__markdown p {
  margin: 0 0 8px;
}

.org-description__expand-toggle {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-weight: 500;
  color: #22252a;
  text-decoration: underline;
  text-underline-position: from-font;
  font-size: 16px;
  font-style: normal;
  line-height: 22.4px;
}

.org-description__markdown--truncated {
  max-height: 210px;
  overflow: hidden;
}

@media only screen and (max-width: 991px) {
  .org-description__markdown--truncated {
    max-height: 357px;
  }
}

/* ── Links ─────────────────────────────────────────────────────────────────── */

.org-links {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 8px;
}

.org-links__link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row nowrap;
  gap: 8px;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-weight: 500;
  color: #22252a;
  text-decoration: underline;
  text-underline-position: from-font;
  font-size: 16px;
  font-style: normal;
  line-height: 22.4px;
}

.org-links__link span{
  word-break: break-all;
}

.org-links__link:hover {
  opacity: 0.7;
}

.org-links__icon {
  flex-shrink: 0;
  color: #9096a3;
  width: 24px;
  height: 24px;
}

.org-links__social-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ── Photo gallery ─────────────────────────────────────────────────────────── */

.org-gallery {
  margin-top: 24px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: row wrap;
  gap: 20px;
}

.org-gallery__photo {
  width: 180px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #dfe1e6;
}

@media only screen and (max-width: 991px) {
  .org-description {
    padding: 32px 16px 40px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: column nowrap;
    gap: 24px;
  }

  .org-description__heading {
    font-size: 24px;
    line-height: 28.8px;
    min-width: 0;
    white-space: normal;
  }

  .org-description__expand-toggle {
    font-size: 14px;
    line-height: 19.6px;
  }

  .org-gallery {
    gap: 16px;
  }

  .org-gallery__photo {
    width: calc(50% - 8px);
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* ============================================================
   How It Works CTA Section — Organization
   (resolved from HowItWorksCtaSection.module.scss)
   ============================================================ */

.org-how-it-works-cta {
  padding: 0 0 64px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.org-how-it-works-cta__card {
  max-width: 1200px;
  width: 100%;
  min-height: 445px;
  margin: 0 auto;
  background-color: #f4faff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: row nowrap;
}

.org-how-it-works-cta__content {
  flex: 1;
  padding: 40px 40px 64px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.org-how-it-works-cta__heading-group {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 16px;
}

.org-how-it-works-cta__subtitle {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.org-how-it-works-cta__heading {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  max-width: 548px;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
}

.org-how-it-works-cta__heading-highlight {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #e40148;
}

.org-how-it-works-cta__body {
  margin: 0;
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  max-width: 534px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.org-how-it-works-cta__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row wrap;
  gap: 16px;
}

.org-how-it-works-cta__image-wrapper {
  flex-shrink: 0;
  width: 588px;
  min-height: 300px;
}

.org-how-it-works-cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
}

@media only screen and (max-width: 991px) {
  .org-how-it-works-cta {
    padding: 0 0 40px;
  }

  .org-how-it-works-cta__card {
    margin: 0 16px;
    height: auto;
    justify-content: flex-start;
    align-items: stretch;
    flex-flow: column nowrap;
  }

  .org-how-it-works-cta__content {
    padding: 16px 24px 32px;
  }

  .org-how-it-works-cta__heading-group {
    gap: 8px;
  }

  .org-how-it-works-cta__subtitle {
    font-size: 14px;
    line-height: 19.6px;
  }

  .org-how-it-works-cta__heading {
    font-size: 31px;
    line-height: 37.2px;
    letter-spacing: -1px;
  }

  .org-how-it-works-cta__body {
    line-height: normal;
  }

  .org-how-it-works-cta__actions {
    margin-top: 0;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: column nowrap;
    gap: 16px;
  }

  .org-how-it-works-cta__image-wrapper {
    width: 100%;
    min-height: 248px;
    order: -1;
  }

  .org-how-it-works-cta__image {
    border-radius: 20px 20px 0 0;
    min-height: 248px;
  }
}

/* ============================================================
   Supporting Next Steps Section — Organization
   (resolved from SupportingNextStepsSection.module.scss)
   Hidden by default; revealed via JS when user clicks "Zacznij wspierać".
   ============================================================ */

.org-next-steps {
  padding: 0 0 16px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.org-next-steps__card {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px 64px;
  background-color: #004246;
  color: #ffffff;
  border-radius: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 24px;
}

.org-next-steps__heading {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #ffffff;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
}

/* ── Desktop 3-column grid ─────────────────────────────────────────────────── */

.org-next-steps__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.org-next-steps__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(13, 170, 118, 0.15);
  border: 0;
  margin: 24px 0 16px;
}

.org-next-steps__shops-row {
  width: 100%;
}

/* ── Block (shared by desktop and mobile) ─────────────────────────────────── */

.org-next-steps__block {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
}

.org-next-steps__block-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

.org-next-steps__block-arrow {
  flex-shrink: 0;
  color: #ffffff;
  width: 24px;
  height: 24px;
}

.org-next-steps__block-title {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #ffffff;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.org-next-steps__block-body {
  margin: 24px 0 0;
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #ffffff;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.org-next-steps__block-extra {
  margin-top: 16px;
}

.org-next-steps__block-cta {
  margin-top: 32px;
}

.org-next-steps__browsers-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  flex-flow: row nowrap;
  gap: 12px;
}

.org-next-steps__browser-icon {
  flex-shrink: 0;
  width: 28.8px;
  height: 28.8px;
}

.org-next-steps__app-stores {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 8px;
}

/* ── Shops block ───────────────────────────────────────────────────────────── */

.org-next-steps__shops-block {
  width: 100%;
  max-width: 964px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.org-next-steps__shops-body {
  margin: 0;
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #ffffff;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.org-next-steps__shops-cta {
  margin-top: 8px;
}

/* ── Mobile stack ──────────────────────────────────────────────────────────── */

.org-next-steps__stack {
  display: none;
}

.org-next-steps__stack-item {
  padding-top: 24px;
}

.org-next-steps__stack-item:first-child {
  padding-top: 0;
}

.org-next-steps__stack-divider {
  padding-bottom: 24px;
}

@media only screen and (max-width: 991px) {
  .org-next-steps__card {
    margin: 0 16px;
    padding: 24px 24px 32px;
  }

  .org-next-steps__heading {
    font-size: 31px;
    line-height: 37.2px;
    letter-spacing: -1px;
  }

  .org-next-steps__columns {
    display: none;
  }

  .org-next-steps__shops-row {
    display: none;
  }

  .org-next-steps__stack {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .org-next-steps__divider {
    margin: 0;
  }

  .org-next-steps__block-title {
    font-size: 24px;
    line-height: 28.8px;
  }

  .org-next-steps__block-body {
    margin-top: 16px;
  }

  .org-next-steps__block-cta {
    margin-top: 24px;
  }

  .org-next-steps__shops-block {
    gap: 16px;
  }
}

/* ============================================================
   Sub-Organizations Section — Organization
   (resolved from SubOrganizationsSection.module.scss + AddSubOrganizationTile.module.scss)
   Uses .beneficiary-tile from redesign-components.css for org tiles.
   ============================================================ */

.org-sub-orgs {
  padding: 0 0 64px;
  overflow-x: hidden;
  scroll-margin-top: 106px;
}

@media only screen and (max-width: 1365px) {
  .org-sub-orgs {
    scroll-margin-top: 76px;
  }
}

.org-sub-orgs__header {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

.org-sub-orgs__heading {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.org-sub-orgs__header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

.org-sub-orgs__carousel-wrapper {
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.org-sub-orgs__carousel {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  justify-content: safe center;
  align-items: stretch;
  flex-flow: row nowrap;
  gap: 24px;
  padding-left: 24px;
  padding-right: 0;
}

.org-sub-orgs__carousel::-webkit-scrollbar {
  display: none;
}

.org-sub-orgs__carousel::after {
  content: '';
  flex-shrink: 0;
  min-width: 24px;
}

.org-sub-orgs__tile {
  flex-shrink: 0;
}

.org-sub-orgs__tile-logo {
  max-height: 100px;
  max-width: 171px;
  object-fit: contain;
  object-position: left center;
}

/* ── Carousel nav ─────────────────────────────────────────────────────────── */

.org-sub-orgs__nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
}

#org-sub-orgs-nav .carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Empty state ───────────────────────────────────────────────────────────── */

.org-sub-orgs__empty-state {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row nowrap;
  gap: 24px;
}

.org-sub-orgs__empty-text {
  margin: 0;
  color: #9096a3;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}

/* ── Add sub-org tile ──────────────────────────────────────────────────────── */

.org-add-sub-tile {
  flex-shrink: 0;
  width: 384px;
  height: 268px;
  background-color: #ffffff;
  border: 8px solid transparent;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 16px;
}

.org-add-sub-tile__heading {
  margin: 0;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 500;
  color: #22252a;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  line-height: 22.4px;
}

/* ── Add-class modal (dodaj_klase) ─────────────────────────────────────────── */

.add-class-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.add-class-modal[hidden] { display: none; }

.add-class-modal__dialog {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 25px 0 rgba(58, 82, 129, 0.21);
}

.add-class-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #22252a;
  line-height: 0;
}

.add-class-modal__close:hover { opacity: 0.7; }

.add-class-modal__title {
  margin: 0 0 16px;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: #22252a;
}

.add-class-modal__org {
  margin: 0 0 24px;
  text-align: center;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 14px;
  line-height: 19.6px;
  color: #9096a3;
}

.add-class-modal__form {
  text-align: center;
}

.add-class-modal__form .form-group,
.add-class-modal__form .mb-3 {
  margin: 0 0 16px;
  padding: 0;
}

.add-class-modal__form label {
  display: block;
  margin: 0 0 4px;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 14px;
  line-height: 19.6px;
  color: #22252a;
}

/* Układ jak w oryginale (dodaj_klase): numer + oznaczenie w jednej linii, mail pod spodem */
.add-class-modal__form #div_id_current_class label,
.add-class-modal__form #div_id_class_symbol label,
.add-class-modal__form #div_id_email label { display: none; }

.add-class-modal__form #div_id_current_class,
.add-class-modal__form #div_id_class_symbol {
  display: inline-block;
  vertical-align: top;
  margin: 0 4px 16px;
}

.add-class-modal__form #div_id_current_class { width: 64px; }
.add-class-modal__form #div_id_class_symbol { width: 340px; max-width: calc(100% - 88px); }
.add-class-modal__form #div_id_current_class select,
.add-class-modal__form #div_id_class_symbol select { width: 100%; }

.add-class-modal__form #div_id_email input {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}

.add-class-modal__form #div_id_captcha {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}
.add-class-modal__form #div_id_captcha .g-recaptcha > div { margin: 0 auto; }

/* reCAPTCHA nie może dostać stylu pola (pusta „pigułka" za widgetem) */
.add-class-modal__form #div_id_captcha .form-control,
.add-class-modal__form #div_id_captcha .g-recaptcha,
.add-class-modal__form #div_id_captcha input,
.add-class-modal__form #div_id_captcha textarea {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
}

.add-class-modal__form input[type="text"],
.add-class-modal__form input[type="email"],
.add-class-modal__form input[type="number"],
.add-class-modal__form select,
.add-class-modal__form .form-control {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #dfe1e6;
  border-radius: 20px;
  padding: 0 16px;
  background-color: #ffffff;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 14px;
  line-height: 19.6px;
  color: #020408;
  outline: none;
  appearance: auto;
}

.add-class-modal__form .helptext,
.add-class-modal__form .form-text {
  margin: 20px auto 8px;
  max-width: 320px;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 10px;
  line-height: 14px;
  font-weight: 300;
  color: #9096a3;
  text-align: center;
}

/* Błędy walidacji (crispy / Django) — Bootstrap CSS nie jest wczytany, więc stylujemy sami */
.add-class-modal__form .invalid-feedback,
.add-class-modal__form .errorlist,
.add-class-modal__form .text-danger,
.add-class-modal__form .help-block,
.add-class-modal__form .alert {
  display: block;
  width: 100%;
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 12px;
  line-height: 1.4;
  color: #e40148;
  text-align: center;
}

.add-class-modal__form .errorlist li { list-style: none; }

.add-class-modal__form .is-invalid,
.add-class-modal__form input.is-invalid,
.add-class-modal__form select.is-invalid,
.add-class-modal__form .form-control.is-invalid {
  border-color: #e40148;
}

.add-class-modal__submit {
  display: inline-flex;
  margin-top: 8px;
  text-transform: uppercase;
}

.add-class-modal__links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eef0f3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 13px;
  line-height: 1.5;
  color: #9096a3;
}

.add-class-modal__links a {
  color: #22252a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.add-class-modal__links a:hover { color: #e40148; }
.add-class-modal__help { text-align: right; }

.add-class-modal__legal {
  margin-top: 14px;
  text-align: center;
}

.add-class-modal__legal a {
  margin: 0 10px;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 12px;
  color: #9096a3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.add-class-modal__legal a:hover { color: #e40148; }

/* Modal Regulaminu */
.add-class-terms-modal__dialog { max-width: 720px; }

.add-class-terms-modal__body {
  margin-top: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
  text-align: left;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 13px;
  line-height: 1.5;
  color: #22252a;
}

.add-class-terms-modal__body ol { padding-left: 20px; margin: 0 0 12px; }
.add-class-terms-modal__body li { margin-bottom: 8px; }

@media only screen and (max-width: 640px) {
  .add-class-modal__dialog { padding: 24px 20px; }
  .add-class-modal__links {
    flex-flow: column nowrap;
    gap: 8px;
  }
  .add-class-modal__help { text-align: left; }
}

@media only screen and (max-width: 991px) {
  .org-sub-orgs {
    padding: 0 0 40px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-flow: column nowrap;
  }

  .org-sub-orgs__header {
    display: contents;
  }

  .org-sub-orgs__heading {
    font-size: 24px;
    line-height: 28.8px;
    order: 1;
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .org-sub-orgs__header-actions {
    order: 3;
    justify-content: space-between;
    padding: 24px 16px 0;
  }

  #org-sub-orgs-nav {
    display: none;
  }

  .org-sub-orgs__carousel-wrapper {
    order: 2;
  }

  .org-sub-orgs__carousel {
    padding-left: 16px;
    padding-right: 0;
    scroll-snap-type: x mandatory;
  }

  .org-sub-orgs__carousel::after {
    min-width: 16px;
  }

  .org-sub-orgs__slide {
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-flow: column nowrap;
    gap: 24px;
  }

  .org-sub-orgs__empty-state {
    padding: 0 16px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: column nowrap;
    gap: 16px;
  }

  .org-add-sub-tile {
    min-width: min(588px, calc(100vw - 48px));
    max-width: min(588px, calc(100vw - 48px));
  }
}

/* ============================================================
   FAQ Section — Organization
   (resolved from FaqSection.module.scss)
   Uses the same flatblock and accordion HTML as how-it-works page.
   ============================================================ */

.org-faq {
  padding: 0 0 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.org-faq__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.org-faq__action {
  margin-top: 8px;
}

/* ── Accordion ─────────────────────────────────────────────────────────────── */

.org-faq .accordion {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 0;
}

.org-faq .accordion__item {
  width: 100%;
  border-bottom: 1px solid #dfe1e6;
}

.org-faq .accordion__item:last-child {
  border-bottom: none;
}

.org-faq .accordion__header {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

.org-faq .accordion__header:hover {
  opacity: 0.8;
}

.org-faq .accordion__title {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.org-faq .accordion__icon {
  flex-shrink: 0;
}

.org-faq .accordion__icon--minus {
  display: none;
}

.org-faq .accordion__header[aria-expanded="true"] .accordion__icon--plus {
  display: none;
}

.org-faq .accordion__header[aria-expanded="true"] .accordion__icon--minus {
  display: block;
}

.org-faq .accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}

.org-faq .accordion__header[aria-expanded="true"] + .accordion__body {
  grid-template-rows: 1fr;
}

.org-faq .accordion__body-inner {
  overflow: hidden;
}

.org-faq .accordion__body-inner p {
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  max-width: 995px;
  padding-bottom: 24px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}

@media only screen and (max-width: 991px) {
  .org-faq {
    padding: 0 16px 48px;
    gap: 16px;
  }

  .org-faq__heading {
    font-size: 24px;
    line-height: 28.8px;
  }

  .org-faq .accordion__title {
    font-size: 14px;
    line-height: 19.6px;
  }
}
