/* Cleaner, mobile-safe flight request modal. */
.qsb-modal-backdrop {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(.75rem, 3vw, 1.5rem);
}

.qsb-modal {
  display: flex;
  flex-direction: column;
  max-width: 620px;
  max-height: calc(100dvh - 3rem);
  overflow: hidden;
  border: 1px solid rgba(31, 111, 107, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(10, 22, 24, .3), 0 2px 8px rgba(10, 22, 24, .08);
}

.qsb-modal-header {
  flex: none;
  overflow: hidden;
  padding: 1.25rem 1.5rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, #2a7b76 0%, #1f6f6b 54%, #195552 100%);
}

.qsb-modal-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -118px;
  right: -76px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .035), 0 0 0 64px rgba(255, 255, 255, .025);
  pointer-events: none;
}

.qsb-modal-route {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 3rem);
  margin: 0 0 .7rem;
  padding: .3rem .6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .9);
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .075em;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.qsb-modal-title {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding-right: 2.75rem;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.62rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  text-shadow: 0 1px 1px rgba(10, 22, 24, .08);
}

.qsb-modal-close {
  z-index: 2;
  top: 1.05rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
}

.qsb-modal-close:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.qsb-modal-form {
  min-height: 0;
  padding: 1.25rem 1.5rem 1.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fff 0%, #fdfefd 100%);
}

.qsb-modal-fields,
.qsb-modal-row {
  gap: .85rem;
}

.qsb-mf {
  gap: .35rem;
}

.qsb-field-label {
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.qsb-opt {
  margin-left: .15rem;
  color: var(--color-ink-faint);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.qsb-modal-input {
  padding: .72rem .8rem;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fff;
  font-size: .9rem;
  box-shadow: inset 0 1px 0 rgba(15, 26, 28, .025);
}

.qsb-modal-input:hover {
  border-color: #b9c8ca;
}

.qsb-modal-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(31, 111, 107, .12);
}

.qsb-help {
  margin: -.05rem 0 .1rem;
  color: var(--color-ink-faint);
  font-size: .74rem;
  line-height: 1.45;
}

.qsb-modal-textarea {
  min-height: 84px;
  max-height: 150px;
  resize: vertical;
}

.qsb-modal-footer {
  gap: .45rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.qsb-submit-btn {
  width: auto;
  min-width: 260px;
  max-width: 100%;
  padding: .78rem 1.25rem;
  border-radius: 9px;
  font-size: .92rem;
  box-shadow: 0 5px 14px rgba(31, 111, 107, .22);
}

.qsb-modal-note {
  font-size: .7rem;
}

@media (max-width: 640px) {
  .qsb-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .qsb-modal {
    max-width: none;
    max-height: 100dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .qsb-modal-header {
    padding: 1.05rem 1.15rem .95rem;
  }

  .qsb-modal-route {
    margin-bottom: .6rem;
  }

  .qsb-modal-title {
    padding-right: 2.5rem;
    font-size: 1.3rem;
  }

  .qsb-modal-close {
    top: .9rem;
    right: 1rem;
  }

  .qsb-modal-form {
    padding: 1rem 1.15rem calc(1rem + env(safe-area-inset-bottom));
  }

  .qsb-modal-row {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .qsb-modal-fields {
    gap: .75rem;
  }

  .qsb-modal-input {
    font-size: 16px;
  }

  .qsb-modal-textarea {
    min-height: 72px;
  }

  .qsb-submit-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-height: 700px) and (min-width: 641px) {
  .qsb-modal-backdrop {
    padding: .5rem;
  }

  .qsb-modal {
    max-height: calc(100dvh - 1rem);
  }
}

/* Keep the complete hero message visible when the mobile copy wraps. */
@media (max-width: 768px) {
  .hero-v2 {
    height: auto;
  }

  .hero-container {
    height: auto;
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 7rem;
  }

  .hero-bg-img {
    object-position: 61% center;
  }
}
