/* FOFO application: page-specific presentation only. */
body:has(#fofo-form) {
  background: #08090a;
}

body:has(#fofo-form) .hdr {
  background: #090909;
  border-bottom: 1px solid #252528;
}

.fofo-hero {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  margin-top: 76px;
  padding-block: 35px 37px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #090607 url('../../img/fofo-form-background.png') center 53% / cover no-repeat;
  border-bottom: 1px solid #292327;
}

.fofo-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(5, 5, 6, .53) 0%, rgba(5, 5, 6, .25) 37%, transparent 74%);
}

.fofo-hero-inner {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.fofo-hero .lbl {
  color: #f34a53;
  font-size: 11px;
  letter-spacing: .11em;
}

.fofo-hero h1 {
  max-width: none;
  margin: 15px 0 16px;
  font-size: clamp(44px, 4.5vw, 64px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.042em;
}

.fofo-title-line {
  display: block;
  white-space: nowrap;
}

.fofo-hero p {
  width: min(100%, 465px);
  margin: 0;
  color: #e0d9d9;
  font-size: 15px;
  line-height: 1.5;
}

.fofo-section {
  padding-block: 0 84px;
  background: #08090a;
}

.fofo-shell {
  width: min(100%, 1060px);
  margin-inline: auto;
}

.fofo-shell form {
  padding-top: 17px;
}

.fofo-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-block: 17px 0;
  padding: 10px 18px;
  border: 1px solid #5b252b;
  border-radius: 3px;
  background: linear-gradient(90deg, #241216, #151013);
  color: #c5babb;
}

.fofo-notice > .bi {
  flex: none;
  color: #ec454e;
  font-size: 22px;
}

.fofo-notice-content {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 14px;
  line-height: 1.35;
}

.fofo-notice strong {
  color: #f5eded;
  font-size: 14px;
  font-weight: 700;
}

.fofo-notice-content > span {
  color: #baafb1;
  font-size: 12px;
}

.fofo-group {
  min-width: 0;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #2c2d30;
}

.fofo-group + .fofo-group {
  margin-top: 10px;
}

.fofo-group legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #f2f1f0;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.fofo-group legend span:first-child {
  flex: none;
  color: #ec303a;
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.05em;
}

.fofo-section-copy {
  margin: 2px 0 11px 45px;
  color: #85878b;
  font-size: 12px;
  line-height: 1.4;
}

.fofo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin-top: 13px;
}

.fofo-section-copy + .fofo-grid {
  margin-top: 0;
}

@media (min-width: 681px) {
  .fofo-location-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .fofo-location-row > .fofo-grid {
    margin-top: 0;
  }

  .fofo-location-row > .fofo-grid:first-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .fofo-location-row > #fofo-location-selects {
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fofo-grid[hidden],
.fofo-conditional[hidden] {
  display: none !important;
}

.fofo-conditional {
  padding: 18px;
  border: 1px solid #372e31;
  border-left: 2px solid var(--red);
  background: #101012;
}

.fofo-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.fofo-wide {
  grid-column: 1 / -1;
}

.fofo-field label,
.fofo-label {
  color: #e5e3e2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.fofo-field em,
.fofo-label em {
  color: #f54a54;
  font-style: normal;
}

.fofo-control {
  position: relative;
  min-width: 0;
}

.fofo-control > .bi {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  color: #929496;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.fofo-field input:not([type="radio"]),
.fofo-field select,
.fofo-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 10px 13px;
  border: 1px solid #383b3f;
  border-radius: 4px;
  outline: 0;
  background: #131619;
  color: #edeceb;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .18s ease, background-color .18s ease;
}

.fofo-control > input,
.fofo-control > select {
  padding-left: 39px !important;
}

/* Scope both the input and the library's detached mobile country selector. */
.fofo-phone {
  width: 100%;
  color: #edeceb;
  font-size: 15px;
  --iti-country-selector-bg: #131619;
  --iti-border-color: #383b3f;
  --iti-hover-color: #292d31;
  --iti-icon-color: #a6aaae;
}

.fofo-phone .iti__country-selector {
  z-index: 1060;
  max-width: calc(100vw - 48px);
}

.fofo-phone input.iti__search-input {
  min-height: 47px;
  padding: 10px 38px;
  border: 0;
  background: #131619;
  color: #edeceb;
  font: inherit;
}

.fofo-phone .iti__selected-country:focus-visible {
  outline: 2px solid #e33b44;
  outline-offset: -2px;
}

.fofo-field input::placeholder,
.fofo-field textarea::placeholder {
  color: #777b7e;
  opacity: 1;
}

.fofo-field textarea {
  resize: vertical;
}

.fofo-field input[type="file"] {
  padding: 9px 12px;
}

.fofo-field select option {
  background: #131619;
  color: #edeceb;
}

.fofo-field input:not(:disabled):hover,
.fofo-field select:not(:disabled):hover,
.fofo-field textarea:not(:disabled):hover {
  border-color: #606267;
}

.fofo-field input:focus-visible,
.fofo-field select:focus-visible,
.fofo-field textarea:focus-visible {
  border-color: #e33b44;
  outline: 2px solid rgba(227, 59, 68, .38);
  outline-offset: 1px;
  background: #181b1e;
}

.fofo-field input:disabled,
.fofo-field select:disabled {
  color: #888b8e;
  cursor: not-allowed;
}

.fofo-field .is-invalid {
  border-color: #ff6e73 !important;
}

.fofo-hint {
  color: #9b9da0;
  font-size: 12px;
  line-height: 1.35;
}

.fofo-error {
  min-height: 1em;
  color: #ff8589;
  font-size: 13px;
  line-height: 1.35;
}

.fofo-error:empty:not([aria-live]) {
  display: none;
}

.fofo-error[aria-live]:empty {
  min-height: 0;
}

.fofo-error[data-email-status="validating"] {
  color: #bcbec1;
}

.fofo-error[data-email-status="valid"] {
  color: #8cdda4;
}

.fofo-email-field .fofo-email-control > input {
  padding-right: 44px;
}

.fofo-email-indicator {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.fofo-email-indicator > .bi,
.fofo-email-indicator::before {
  display: none;
}

.fofo-email-indicator > .bi {
  font-size: 17px;
  line-height: 1;
}

.fofo-email-indicator::before {
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  border: 2px solid #b7bbbe;
  border-top-color: transparent;
  border-radius: 50%;
  content: '';
  animation: fofo-email-spin .8s linear infinite;
}

.fofo-email-field:has(#fofo-email-feedback[data-email-status="validating"]) .fofo-email-indicator::before,
.fofo-email-field:has(#fofo-email-feedback[data-email-status="valid"]) .fofo-email-valid-icon,
.fofo-email-field:has(#fofo-email-feedback[data-email-status="invalid"]) .fofo-email-invalid-icon,
.fofo-email-field:has(#email.is-invalid):not(:has(#fofo-email-feedback[data-email-status="unavailable"])) .fofo-email-invalid-icon,
.fofo-email-field:has(#fofo-email-feedback[data-email-status="unavailable"]) .fofo-email-unavailable-icon {
  display: block;
}

.fofo-email-field:has(#fofo-email-feedback[data-email-status="valid"]) #email {
  border-color: #36b86d;
}

.fofo-email-valid-icon {
  color: #4ad47f;
}

.fofo-email-field:has(#fofo-email-feedback[data-email-status="valid"]) #fofo-email-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fofo-email-field:has(#fofo-email-feedback[data-email-status="invalid"]) #email {
  border-color: #e95860;
}

.fofo-email-invalid-icon {
  color: #f26770;
}

.fofo-email-field:has(#fofo-email-feedback[data-email-status="unavailable"]) #email {
  border-color: #ba9357 !important;
}

.fofo-email-unavailable-icon,
.fofo-error[data-email-status="unavailable"] {
  color: #dfb575;
}

@keyframes fofo-email-spin {
  to { transform: rotate(360deg); }
}

.fofo-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.fofo-radios label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid #383b3f;
  border-radius: 4px;
  background: #131619;
  cursor: pointer;
}

.fofo-radios label:hover,
.fofo-radios label:has(input:checked) {
  border-color: #c73640;
}

.fofo-radios input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.fofo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 24px;
}

.fofo-actions p {
  flex: 1 0 100%;
  margin: 0 0 5px;
  color: #afb0b2;
  font-size: 13px;
}

.fofo-actions .cta {
  min-height: 48px;
  justify-content: center;
}

.fofo-actions .cta:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.fofo-actions .cta:disabled::before {
  display: none;
}

.fofo-actions .cta.red:disabled:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .fofo-hero {
    min-height: 272px;
    background-position: 58% center;
  }

  .fofo-hero::before {
    background: linear-gradient(90deg, rgba(5, 5, 6, .72), rgba(5, 5, 6, .4) 57%, rgba(5, 5, 6, .08));
  }
}

@media (max-width: 680px) {
  .fofo-hero {
    min-height: 206px;
    padding-block: 25px 27px;
    background-position: 72% center;
  }

  .fofo-hero::before {
    background: linear-gradient(90deg, rgba(5, 5, 6, .8), rgba(5, 5, 6, .59) 72%, rgba(5, 5, 6, .38));
  }

  .fofo-hero .lbl {
    font-size: 9px;
  }

  .fofo-hero h1 {
    margin-block: 13px 12px;
    font-size: clamp(27px, 7.5vw, 36px);
  }

  .fofo-hero p {
    max-width: 340px;
    font-size: 12px;
    line-height: 1.4;
  }

  .fofo-section {
    padding-bottom: 66px;
  }

  .fofo-notice {
    align-items: flex-start;
    min-height: 0;
    margin-block: 12px 0;
    padding: 10px 12px;
    gap: 10px;
  }

  .fofo-notice > .bi {
    font-size: 19px;
  }

  .fofo-notice-content {
    display: block;
  }

  .fofo-notice-content > span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
  }

  .fofo-group {
    padding-block: 0 18px;
  }

  .fofo-group legend {
    gap: 11px;
    font-size: clamp(17px, 4.7vw, 20px);
  }

  .fofo-group legend span:first-child {
    font-size: 20px;
  }

  .fofo-section-copy {
    display: none;
  }

  .fofo-section-copy + .fofo-grid {
    margin-top: 15px;
  }

  .fofo-location-row > .fofo-grid:first-child {
    margin-top: 15px;
  }

  .fofo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .fofo-conditional {
    padding: 14px;
  }

  .fofo-field label,
  .fofo-label {
    font-size: 13px;
  }

  .fofo-field input:not([type="radio"]),
  .fofo-field select,
  .fofo-field textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .fofo-radios label {
    min-height: 48px;
  }

  .fofo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fofo-actions p {
    grid-column: 1 / -1;
  }

  .fofo-actions .cta {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-inline: 9px;
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .fofo-hero h1 {
    font-size: 26px;
  }

  .fofo-group legend {
    font-size: 16px;
  }

  .fofo-radios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .fofo-radios label {
    justify-content: center;
    gap: 5px;
    padding-inline: 7px;
    font-size: 12px;
    white-space: nowrap;
  }

  .fofo-radios input {
    width: 16px;
    height: 16px;
  }

  body:has(#fofo-form) .menu {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(#fofo-form) .menu nav a {
    gap: 10px;
    font-size: 32px;
  }

  body:has(#fofo-form) footer .row {
    column-gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fofo-field input,
  .fofo-field select,
  .fofo-field textarea {
    transition: none;
  }

  .fofo-email-indicator::before {
    animation: none;
    border-style: dotted;
  }
}
