/*
 * Sign-up, the newsletter and brochure landing pages' opening (2 Oct deck):
 * eyebrow, title and text on the left, the form card on the right, and the
 * airport picture behind, faded into the page. Desktop values are the 1440
 * design's; tablets and phones are adapted, as the design has no phone
 * version of these pages.
 */

.signup {
  position: relative;
  overflow: hidden;
  min-height: 741px;
  background: var(--airnav-color-canvas);
}

/* The picture, at its designed place on the 1440 frame, with the design's
   white fades over it: four rectangles along its edges (::after) and a blurred
   white ellipse behind the text (::before). */
.signup__art {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.signup__picture {
  position: absolute;
  top: -76px;
  left: calc(50% - 720px);
  width: 1440px;
  max-width: none;
  height: auto;
}

.signup--brochure .signup__picture {
  top: 0;
  width: 1356px;
}

/* Figma's Rectangles 36-39, white to clear, on the 1440 frame, which starts
   80px above this section (behind the header):
   - left (38): 198px wide, white at the frame's left edge;
   - right (39): from 1012px to the frame's right edge, white there;
   - top (36): 181px tall; what shows below the header fades from white at this
     section's top to clear 101px down (measured from the export);
   - bottom (37): 661px to 800px, white there, where the frame and the picture end. */
.signup__art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #ffffff calc(50% - 720px), rgba(255, 255, 255, 0) calc(50% - 522px)),
    linear-gradient(270deg, #ffffff calc(50% - 720px), rgba(255, 255, 255, 0) calc(50% - 292px)),
    linear-gradient(180deg, #ffffff 0, rgba(255, 255, 255, 0) 101px),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 581px, #ffffff 720px);
}

/* Figma's Ellipse 68: on the 1440 frame at left -156px, top 50px (30px above
   this section), 887 x 471, white at 95%, layer blur 100 (CSS blur 50px).
   Placed from the text's left edge, so it stays behind the words on narrower
   screens; at 1440 and wider that is the frame's place. Above the rectangles,
   as in Figma. */
.signup__art::before {
  position: absolute;
  z-index: 1;
  top: -30px;
  left: calc(max(var(--airnav-gutter), (100% - var(--airnav-content-max)) / 2) - 236px);
  width: 887px;
  height: 471px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  content: "";
  filter: blur(50px);
}

/* The brochure page's: left -166px, top 80px (this section's top), 648 x 478, white at 90%. */
.signup--brochure .signup__art::before {
  top: 0;
  left: calc(max(var(--airnav-gutter), (100% - var(--airnav-content-max)) / 2) - 246px);
  width: 648px;
  height: 478px;
  background: rgba(255, 255, 255, 0.9);
}

.signup__layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 59px 0 64px;
}

.signup__copy {
  max-width: 640px;
}

.signup__eyebrow,
.signup__title,
.signup__text {
  margin: 0;
}

.signup__eyebrow {
  color: var(--airnav-color-green);
  font: 700 16px/22px var(--airnav-font-body);
  text-transform: uppercase;
}

.signup__title {
  margin-top: 12px;
  color: var(--airnav-color-forest);
  font: 400 80px/1.1 var(--airnav-font-display);
  letter-spacing: -1.6px;
}

.signup__title .airnav-highlight {
  color: var(--airnav-color-green);
}

.signup__text {
  margin-top: 28px;
  color: rgba(17, 32, 27, 0.7);
  font: 400 18px/25px var(--airnav-font-body);
}

/* The brochure page's design sets its text smaller than the newsletter page's. */
.signup--brochure .signup__text {
  font-size: 14px;
  line-height: 19px;
}

.signup__form {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 412px;
  flex-direction: column;
  width: 412px;
  padding: 32px 32px 33px;
  border: 1px solid rgba(17, 32, 27, 0.1);
  border-radius: var(--airnav-radius-card);
  background: var(--airnav-color-canvas);
  box-shadow: 0 24px 60px rgba(14, 58, 47, 0.12);
}

.signup__label {
  display: block;
  padding: 0;
  margin: 0 0 8px;
  color: #4c5754;
  font: 600 14px/19px var(--airnav-font-body);
}

.signup__input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  margin: 0 0 19px;
  border: 1px solid #d3d6d5;
  border-radius: 6px;
  background: var(--airnav-color-canvas);
  color: var(--airnav-color-ink);
  font: 400 14px/20px var(--airnav-font-body);
}

.signup__input::placeholder {
  color: #9aa19f;
}

.signup__input:focus,
.signup__interest input:focus-visible {
  outline: 2px solid var(--airnav-color-teal);
  outline-offset: 2px;
}

.signup__interests {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.signup__interest + .signup__interest {
  margin-top: 9px;
}

.signup__interest {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #d3d6d5;
  border-radius: 6px;
  color: var(--airnav-color-ink);
  font: 600 14px/19px var(--airnav-font-body);
  cursor: pointer;
}

.signup__interest input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--airnav-color-green);
  cursor: pointer;
}

.signup__honeypot {
  position: absolute !important;
  left: -9999px !important;
}

/* Invisible unless Cloudflare asks the visitor to click: then it takes its own room above the button. */
.signup__turnstile {
  margin-top: 0;
}

.signup__submit {
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 19px;
  padding: 12px 24px;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.signup__submit[data-submitting="true"] {
  cursor: wait;
}

.signup__note {
  margin: 16px 0 0;
  color: #2f3c37;
  font: 400 11px/16px var(--airnav-font-body);
  text-align: center;
}

.signup__note.airnav-contact-form__confirmation {
  color: var(--airnav-color-green);
  font-size: 14px;
  line-height: 20px;
}

.signup__note.airnav-contact-form__error {
  color: #b42318;
  font-size: 14px;
  line-height: 20px;
}

@media (min-width: 701px) and (max-width: 1100px) {
  .signup__layout {
    flex-direction: column;
    align-items: stretch;
    padding: 56px 0 64px;
  }

  .signup__title {
    font-size: 64px;
    letter-spacing: -1.28px;
  }

  .signup__form {
    flex-basis: auto;
    width: min(100%, 560px);
  }
}

@media (max-width: 700px) {
  .signup {
    min-height: 0;
  }

  .signup__picture,
  .signup--brochure .signup__picture {
    top: -40px;
    left: 50%;
    width: 900px;
    transform: translateX(-38%);
  }

  /* Phones: the text lies over the picture, so it gets the white the desktop
     ellipse gives it (95% newsletter, 90% brochure), fading to white at the
     form (Alan, 2 Oct: "more white, only for mobile"). */
  .signup__art::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.95) 280px, #ffffff 440px);
  }

  .signup--brochure .signup__art::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0.9) 280px, #ffffff 440px);
  }

  /* The phone fade above already keeps the text clear. */
  .signup__art::before {
    display: none;
  }

  .signup__layout {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 40px 0 48px;
  }

  .signup__eyebrow {
    font-size: 14px;
    line-height: 19px;
  }

  .signup__title {
    font-size: 40px;
    letter-spacing: -0.8px;
  }

  .signup__text {
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .signup__form {
    flex-basis: auto;
    width: 100%;
    padding: 24px;
  }
}
