/* Review page css */
[class*="review-show-0"],
[class$="review-show-"],
[class*="review-show- "],
[class*="review-show-No"],
[class*="review-show-Non"] {
  display: none !important;
}
[class*=" review-show-\[webform"] {
    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-department:has(input[value="provincial"]) .checkmark {
  top: 0;
}

/* Less space above radio buttons and the text above */
fieldset.webform-composite-hidden-title {
  margin-top: 0px;
  margin-bottom: 0px;
}

[id^="edit-"][id*="address--wrapper"] {
  margin-top: 25px;
  legend {
    margin-top: 15px;
  }
}
/* ============================================================
   REPRISAL NEW Webform Wizard: ALL pages
   Machine name: reprisal_new
   - Left column: page content
   - Right column: video sidebar (video_sidebar_01..21)
   - Actions (Back/Next/Submit) stays on left
   ============================================================ */

/* Make every wizard page wrapper a 2-column grid */
.webform-submission-reprisal-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-reprisal-new-form [id^="edit-page-"] > * {
  grid-column: 1 !important;
}
/* Move ANY video sidebar to the RIGHT column, pinned to the top */
.webform-submission-reprisal-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-reprisal-new-form [id^="edit-video-sidebar-"] .video-sidebar-wrapper {
  margin: 0 !important;
  padding: 20px !important;
}
/* Keep action buttons on LEFT */
.webform-submission-reprisal-new-form #edit-actions,
.webform-submission-reprisal-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-reprisal-new-form #edit-actions button,
.webform-submission-reprisal-new-form .form-actions button {
  float: none !important;
  margin-right: 10px !important;
  margin-left: 0 !important;
  margin-top: 10px !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-reprisal-new-form #edit-page-03-no-disclosure ~ .form-actions .webform-button--next,
.webform-submission-reprisal-new-form #edit-page-03-no-disclosure ~ .form-actions [id*="next"] {
  display: none !important;
}
/* Page 08: Status = Other */
.webform-submission-reprisal-new-form #edit-page-08-status-other ~ .form-actions .webform-button--next,
.webform-submission-reprisal-new-form #edit-page-08-status-other ~ .form-actions [id*="next"] {
  display: none !important;
}
/* Page 10: CAF Jurisdiction */
.webform-submission-reprisal-new-form #edit-page-10-caf ~ .form-actions .webform-button--next,
.webform-submission-reprisal-new-form #edit-page-10-caf ~ .form-actions [id*="next"] {
  display: none !important;
}
/* Page 11: CSIS/CSE Jurisdiction */
.webform-submission-reprisal-new-form #edit-page-11-csis-cse ~ .form-actions .webform-button--next,
.webform-submission-reprisal-new-form #edit-page-11-csis-cse ~ .form-actions [id*="next"] {
  display: none !important;
}
/* Optional: tighten headings */
.webform-submission-reprisal-new-form [id^="edit-page-"] h2,
.webform-submission-reprisal-new-form [id^="edit-page-"] h3 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
/* Optional: tighten paragraphs and lists */
.webform-submission-reprisal-new-form [id^="edit-page-"] p {
  margin: 0 0 8px 0 !important;
}
.webform-submission-reprisal-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) {
  .webform-submission-reprisal-new-form [id^="edit-page-"] {
    display: block !important;
  }
  .webform-submission-reprisal-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: 0px;
  }

  .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%;
  }
}
