form .form-disclaimer-small {
  p {
    font-size: 0.8rem;
    color: #535459;
  }
  h3 {
    font-size: 1rem;
    color: #535459;
    font-style: normal
  }
}

@media (max-width: 768px) {
  .form-item-age-us label {
    max-width: 75vw;
  }
}

form {
  color: #535459;
  label {
    color: #535459;
  }

  div.input-decorator {
    color: #535459;
    padding: 10px 0;
  }
  .describe-you label {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 17px;
  }

  a {
    text-decoration: underline;
  }
}

.text-count-wrapper {
  padding-top: 0.5rem;
}

form div#edit-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

form .form-actions:after {
  display: flex;
  align-items: center;
  line-height: 1.0;
  font-weight: normal;
  text-transform: none;
  speak: none;
  font-variant: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f054";
  font-family: icomoon;
  font-size: 16px;
  color: rgb(255, 255, 255);
  position: relative;
  left: -6%;
}

@media (max-width: 1024px) {
  form .form-actions:after {
    left: -10%;
  }
}

@media (max-width: 768px) {
  form .form-actions:after {
    left: -6%;
  }
}

@media (max-width: 480px) {
  form .form-actions:after {
    left: -12%;
  }
}

.semi-bold {
  font-weight: 600;
}

form .form-type-checkbox label.form-required {
  padding-top: 8px;
}

form .form-type-checkbox label.i-also-care {
  margin-left: 16px;
  line-height: 2;
}

@media (min-width: 1023px) and (max-width: 1700px) {
  .spark-container {
    height: unset;
    flex-wrap: wrap;
    padding-top: 50px;

    .spark-polaroids-desktop {
      display: none;
    }

    .content-container {
      padding-right: unset;
      margin-left: 4rem;
      margin-right: 4rem;

      #spark-block-form-wrapper {
        margin-bottom: 46px;
      }
    }

    .spark-polaroids-mobile {
      display:block;
    }

    .image-text {
      text-align: center;
    }
  }
}

.coh-modal {
  z-index: 99;
}

/* Force errors inside flex checkbox wrappers onto their own row */
.stay-updated-form-wrapper .custom-error-layout {
  flex-wrap: wrap;
  gap: 0;
}
.stay-updated-form-wrapper .custom-error-layout .custom-error {
  flex-basis: 100%;
}

/* Stay Connected form — inline validation errors */
.stay-updated-form-wrapper .custom-error {
  color: #D00;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.stay-updated-form-wrapper label {
  margin-bottom: 0;
}

/* Suppress Cohesion's red border box on form-item wrappers — errors are shown via .custom-error text */
.stay-updated-form-wrapper .form-item.error,
.stay-updated-form-wrapper .form-item--error {
  border: none;
  box-shadow: none;
  outline: none;
}

.stay-updated-form-wrapper .js-webform-type-checkbox .custom-error .error-text {
  padding-left: 38px;
}


/* Stay Connected form */
#edit-required-text p {
  margin-bottom: 0;
}

#edit-required-text p::after {
  content: "*";
  color: #DA0004;
}

@media (max-width: 768px) {
  #edit-name .js-form-item-last-name {
    padding-top: 1.25rem;
  }

  #edit-name .js-form-item-first-name {
    padding-bottom: 1.25rem;
  }
}

@media (min-width: 768px) {
  .stay-updated-form-wrapper #edit-name .webform-section-wrapper {
    display: flex;
    gap: 1.5rem;
  }
  .stay-updated-form-wrapper #edit-name .webform-section-wrapper > * {
    flex: 1;
    min-width: 0;
  }
}

/* Empty placeholder section no longer needed for two-column email layout */
.stay-updated-form-wrapper #edit-empty {
  display: none;
}

.stay-updated-form-wrapper .form-header-row,
.stay-updated-form-wrapper .js-form-type-checkboxes,
.stay-updated-form-wrapper .js-form-type-radios,
.stay-updated-form-wrapper .js-form-type-checkbox {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.stay-updated-form-wrapper .js-form-type-checkboxes,
.stay-updated-form-wrapper .js-form-type-radios {
  gap: 1.5rem;
}

/* Individual checkbox options inside a group should not get section-level padding */
.stay-updated-form-wrapper .js-form-type-checkboxes .js-form-type-checkbox {
  padding-top: 0;
  padding-bottom: 0;
}

.stay-updated-form-wrapper .js-form-type-textfield > label,
.stay-updated-form-wrapper .js-form-type-email > label {
  text-transform: uppercase;
}

.stay-updated-form-wrapper .js-form-type-checkboxes > label,
.stay-updated-form-wrapper .js-form-type-radios > label {
  font-weight: bold;
}

/* Take the real (opacity:0) inputs out of flow */
.stay-updated-form-wrapper .js-form-type-radio input[type="radio"],
.stay-updated-form-wrapper .js-form-type-checkbox input[type="checkbox"] {
  position: absolute;
}

/* Radios: flex so the circle vertically centers with the label text */
.stay-updated-form-wrapper .js-form-type-radio label.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.stay-updated-form-wrapper .js-form-type-radio label.option::before {
  flex-shrink: 0;
  position: relative;
  background-color: #fff;
  border-color: var(--ssa-color-palette-midnight-gray);
}

.stay-updated-form-wrapper .js-form-type-radio label.option::after {
  top: 50%;
  transform: translateY(-50%);
}

/* Checkboxes: block layout so inline content (including <a> tags) flows as normal text.
   ::before is absolutely positioned; padding-left reserves the space for it. */
.stay-updated-form-wrapper .js-form-type-checkbox label.option {
  display: block;
  padding-left: calc(26px + 0.75rem);
  padding-top: 0;
  position: relative;
  min-height: 26px;
}

.stay-updated-form-wrapper .js-form-type-checkbox label.option::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  margin-top: 0.8rem;
}

.stay-updated-form-wrapper .js-form-type-checkbox label.option::after {
  top: 0.1em;
  left: 0;
  margin-top: 0.8rem;
}

.red-asterisk::after {
  content: "*";
  margin-left: 0rem;
  color: rgba(255, 0, 4, 1);
  font-size: 17px;
}

/* DONI-454: visible :focus-visible indicator on the Stay Updated form's
   custom-styled checkbox/radio controls. The native <input> is opacity:0
   and the visible UI is the adjacent label.option::before pseudo; without
   this rule keyboard users see no focus ring and the controls appear to
   be skipped during tab navigation (WCAG 2.4.7 Focus Visible). */
.stay-updated-form-wrapper input[type="checkbox"]:focus-visible + label.option::before,
.stay-updated-form-wrapper input[type="radio"]:focus-visible + label.option::before {
  outline: 2px solid var(--ssa-color-palette-brand-color-dark, #3f2a56);
  outline-offset: 2px;
}

