[class*="review-show-0"],
[class$="review-show-"],
[class*="review-show- "],
[class*="review-show-No"],
[class*="review-show-Non"],
[class*="webform_submission:values:add_another_name"] {
  display: none !important;
}
span.review-token-special {
    display: inline;
}

span.review-token-special:not(:has(a)) {
    display: none;
}
.webform-submission-form:has(.no-next-button-marker) .webform-button--next {
  display: none !important;
}

.webform-type-radios .form-type-radio .checkmark {
  top: 0;
}

.webform-type-radios .form-type-radio:first-child .checkmark {
  top: unset !important;
}

.form-item-ind-federal-department-organization:has(input[value="provincial_municipal"]) .checkmark {
  top: 0;
}

.form-item-subject-of-allegations .select-wrapper {
  width: 100%;
}
select#edit-ind-federal-department-organization,
select#edit-subject-of-allegations {
  max-width: unset;
}

.webform-type-managed-file .checkbox-label .checkmark {
  width: unset;
  height: unset;
}
#edit-page-landing ul {
  padding-left: 0;
}
#edit-disclosure-landing-wrongdoing-types li {
  list-style-image: unset;
  padding-left: 0;
}

/* Less space above radio buttons and the text above */
fieldset.webform-composite-hidden-title {
  margin-top: 0px;
}

.notice-blue {
  margin-top: 10px;
}
/* ============================================================
   DISCLOSURE NEW Webform Wizard: ALL pages
   Machine name: disclosure_new
     - Left column: page content
     - Right column: video sidebar (video_sidebar_01..21)
     - Actions (Back/Next/Submit) stays on left
  ============================================================ */
/* Tighten general spacing coming from bootstrap/webform wrappers */
.webform-submission-disclosure-new-form .form-wrapper {
   margin-bottom: 0 !important;
}
#edit-our-jurisdiction, #edit-add-another {
  margin-bottom: 25px !important;
}
[id^="edit-"][id*="address--wrapper"] {
  margin-top: 25px;
  legend {
    margin-top: 15px;
  }
}
/* Make every wizard page wrapper a 2-column grid */
.webform-submission-disclosure-new-form [id^="edit-page-"] {
   display: grid !important;
   grid-template-columns: minmax(0, 1fr) 350px !important;
   column-gap: 30px !important;
   align-items: start !important;
   grid-auto-rows: min-content !important;
   margin: 0 !important;
   padding: 0 !important;
}
  /* Put ALL normal page children in the LEFT column by default */
  .webform-submission-disclosure-new-form [id^="edit-page-"] > * {
   grid-column: 1 !important;
}
/* Move ANY video sidebar to the RIGHT column, pinned to the top */
.webform-submission-disclosure-new-form [id^="edit-page-"] > [id^="edit-video-sidebar-"] {
   grid-column: 2 !important;
   grid-row: 1 / span 99 !important;
   width: 350px !important;
   margin: 0 !important;
   padding: 0 !important;
}
/* Override inline margin on .video-sidebar-wrapper */
.webform-submission-disclosure-new-form [id^="edit-video-sidebar-"] .video-sidebar-wrapper {
   margin: 0 !important;
   padding: 20px !important;
}
  /* Keep action buttons on LEFT */
  .webform-submission-disclosure-new-form #edit-actions,
  .webform-submission-disclosure-new-form .form-actions {
   grid-column: 1 !important;
   margin-top: 12px !important;
   padding: 0 !important;
   text-align: left !important;
   justify-self: start !important;
}
  /* Spacing between buttons */
  .webform-submission-disclosure-new-form #edit-actions button,
  .webform-submission-disclosure-new-form .form-actions button {
   float: none !important;
   margin-right: 10px !important;
   margin-left: 0 !important;
}

/* ============================================================
  DEAD-END PAGES: Hide Next button on jurisdiction warning pages
  These pages should only show Back button (no forward progress)
============================================================ */
   /* Page 03: No Disclosure Made */
.webform-submission-disclosure-new-form #edit-page-03-no-disclosure ~ .form-actions .webform-button--next,
.webform-submission-disclosure-new-form #edit-page-03-no-disclosure ~ .form-actions [id*="next"] {
   display: none !important;
}

/* Page 08: Status = Other */
.webform-submission-disclosure-new-form #edit-page-08-status-other ~ .form-actions .webform-button--next,
  .webform-submission-disclosure-new-form #edit-page-08-status-other ~ .form-actions [id*="next"] {
   display: none !important;
}

/* Page 10: CAF Jurisdiction */
  .webform-submission-disclosure-new-form #edit-page-10-caf ~ .form-actions .webform-button--next,
  .webform-submission-disclosure-new-form #edit-page-10-caf ~ .form-actions [id*="next"] {
   display: none !important;
}

/* Page 11: CSIS/CSE Jurisdiction */
  .webform-submission-disclosure-new-form #edit-page-11-csis-cse ~ .form-actions .webform-button--next,
  .webform-submission-disclosure-new-form #edit-page-11-csis-cse ~ .form-actions [id*="next"] {
   display: none !important;
}

/* Optional: tighten paragraphs and lists */
  .webform-submission-disclosure-new-form [id^="edit-page-"] p {
   margin: 0 0 8px 0 !important;
}

.webform-submission-disclosure-new-form [id^="edit-page-"] ul {
   margin: 0 0 10px 0 !important;
   padding-left: 18px !important;
}

/* Mobile: stack video under content */
@media (max-width: 968px) {
  select#edit-subject-of-allegations {
    max-width: unset;
    width: 100%;
  }
  .webform-submission-disclosure-new-form [id^="edit-page-"] {
     display: block !important;
  }
  .webform-submission-disclosure-new-form [id^="edit-page-"] > [id^="edit-video-sidebar-"] {
     width: 100% !important;
     margin-top: 16px !important;
   }
}

/* Progress bar style */

/* Optional: make inactive separators cleaner */
.webform-progress-tracker .progress-step::after,
.webform-progress-tracker .progress-step::before {
  display: none !important;
}

.webform-progress-tracker.progress-tracker {
  display: flex;
  gap: 0px;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

/* Each wizard page becomes one rectangle segment */
.webform-progress-tracker .progress-step {
  flex: 1 1 0;
  height: 24px;
  background: #ececec;
  border-radius: 0;
  transition: background-color .2s ease-in-out;
}

/* Hide the numbered circles */
/* Hide the text labels */
.webform-progress-tracker .progress-marker,
.webform-progress-tracker .progress-text {
  display: none !important;
}

/* Completed steps */
/* Current active step */
.webform-progress-tracker .progress-step.is-complete,
.webform-progress-tracker .progress-step.is-active {
  background: #435569; /* or your brand colour */
}

.webform-progress-tracker .progress-step:focus-within {
  outline: 2px solid #086d5c;
  outline-offset: 2px;
}

.left-video-wide-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.video-container {
    flex: 0 0 60%;
    position: relative;
    padding-bottom: 33.75%; /* 60% width × 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-text {
    flex: 1;
}

.video-text p:last-child {
    margin-bottom: 0;
}

.webform-type-managed-file .checkmark {
  display: none !important;
}

/* Stack on mobile */
@media (max-width: 767px) {
  .webform-progress-tracker.progress-tracker {
    gap: 1px;
  }

  .webform-progress-tracker .progress-step {
    height: 18px;
  }
  .left-video-wide-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .video-container {
    flex: none;
    width: 100%;
    padding-bottom: 56.25%;
  }
}
