/* =========================================================
   RFLIGHTS CONTACT MODAL
   ========================================================= */

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: grid;
  place-items: center;

  padding: 24px;

  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(5px);

  opacity: 0;
  transition: opacity .18s ease;
}

.contact-modal.is-open {
  opacity: 1;
}

.contact-modal-panel {
  position: relative;

  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  box-sizing: border-box;
  padding: 34px 38px 30px;

  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(7, 14, 24, .98),
      rgba(12, 8, 24, .98)
    );

  box-shadow:
    0 24px 70px rgba(0, 0, 0, .6),
    0 0 28px rgba(38, 144, 255, .10);
}

.contact-modal-close {
  position: absolute;
  top: 13px;
  right: 15px;

  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: inherit;

  font: inherit;
  font-size: 30px;
  line-height: 1;

  cursor: pointer;
  opacity: .72;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, .08);
}

.contact-modal-title {
  margin: 4px 42px 12px;
  text-align: center;
}

.contact-modal-intro {
  max-width: 570px;
  margin: 0 auto 26px;

  text-align: center;
  line-height: 1.55;
}

.contact-modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-modal-field {
  display: flex;
  flex-direction: column;
  gap: 7px;

  margin-bottom: 18px;
}

.contact-modal-field label {
  font-weight: 700;
}

.contact-modal-field input,
.contact-modal-field textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;

  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;

  background: rgba(0, 0, 0, .30);
  color: inherit;

  font: inherit;
  outline: none;
}

.contact-modal-field input:focus,
.contact-modal-field textarea:focus {
  border-color: rgba(255, 255, 255, .68);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.contact-modal-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-modal-honeypot {
  position: fixed !important;
  top: -10000px !important;
  left: -10000px !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-modal-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-modal-submit {
  min-height: 44px;
  padding: 10px 24px;

  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 9px;

  background: rgba(255, 255, 255, .12);
  color: inherit;

  font: inherit;
  font-weight: 800;
  letter-spacing: .04em;

  cursor: pointer;
}

.contact-modal-submit:hover,
.contact-modal-submit:focus-visible {
  background: rgba(255, 255, 255, .20);
}

.contact-modal-submit:disabled {
  cursor: wait;
  opacity: .55;
}

.contact-modal-status {
  margin: 0;
  line-height: 1.4;
}

.contact-modal-status.is-success,
.contact-modal-status.is-error {
  font-weight: 700;
}

.contact-modal-social {
  margin-top: 30px;
  padding-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, .12);

  text-align: center;
}

.contact-modal-social > p {
  margin: 0;
}

.contact-modal-social .footer-socials {
  margin-top: 14px;
}

@media (max-width: 600px) {
  .contact-modal {
    padding: 12px;
  }

  .contact-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);

    padding: 30px 20px 24px;
    border-radius: 14px;
  }

  .contact-modal-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-modal-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .contact-modal-submit {
    width: 100%;
  }

  .contact-modal-status {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal {
    transition: none;
  }
}
