/* Florida Construction Talent — definitive mobile consent + language switcher fix */

/* Consent row: prevent the general .field input width rule from consuming the row. */
.field.full > label.checkbox,
.field > label.checkbox {
  box-sizing: border-box;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  color: var(--navy) !important;
  font-size: .96rem !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
  cursor: pointer;
}

.field.full > label.checkbox > input[type="checkbox"],
.field > label.checkbox > input[type="checkbox"] {
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  accent-color: var(--orange);
}

.field.full > label.checkbox > span,
.field > label.checkbox > span {
  box-sizing: border-box;
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
}

.field.full > label.checkbox .required-label,
.field > label.checkbox .required-label {
  display: inline-flex !important;
  margin: 0 7px 2px 0 !important;
  vertical-align: .08em;
}

/* The mobile navigation previously hid the flag because it hid all of .header-cta. */
@media (max-width: 980px) {
  .header-inner {
    gap: 10px !important;
  }

  .header-cta {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: auto !important;
  }

  .header-cta > .btn {
    display: none !important;
  }

  .header-cta .language-switcher {
    display: inline-flex !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
  }

  .header-cta .language-option {
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    place-items: center !important;
    text-decoration: none !important;
  }

  .menu-toggle {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 680px) {
  .field.full > label.checkbox,
  .field > label.checkbox {
    gap: 12px !important;
    font-size: 1rem !important;
    line-height: 1.48 !important;
  }

  .field.full > label.checkbox > input[type="checkbox"],
  .field > label.checkbox > input[type="checkbox"] {
    flex-basis: 24px !important;
  }

  .header-inner {
    gap: 8px !important;
  }

  .header-cta .language-switcher {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  .menu-toggle {
    width: 46px !important;
    height: 46px !important;
  }
}
