/* ============================================================
   LUXOR — Contact Form Page
   Desktop: dark bg + auto-scrolling gallery masked by 2 ovals
   Mobile : panel slides in from the right, 14px gap on the left
   ============================================================ */

.form-page {
  margin: 0;
  min-height: 100vh;
  background: #191a1f;
  font-family: var(--font-family-primary);
  overflow-x: hidden;
}

.form-page footer {
  background: #191a1f;
  position: relative;
  z-index: 10;
}

/* header.form-header-wrap is the <header> tag that wraps menu-overlay;
   app.css's "header .menu-overlay" rules give it position:fixed + clip-path hidden by default */
.form-header-wrap {
  position: static; /* don't create stacking context that clips children */
}

/* Overlay must sit above the form card (z-index:20) */
.form-header-wrap .menu-overlay {
  z-index: 50;
}

/* ---------- DESKTOP BACKGROUND GALLERY ---------- */
.form-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #191a1f;
}

.form-gallery {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.form-gallery .swiper-wrapper {
  /* linear, continuous motion */
  transition-timing-function: linear !important;
  align-items: center;
}

.form-gallery .swiper-slide {
  width: auto;
  height: 70vh;
}

.form-gallery .swiper-slide img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Two ovals that cover the gallery edges with the bg color */
.form-bg__oval {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 130vw;
  height: 300px;
  background: #191a1f;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 80px 60px #191a1f;
}

.form-bg__oval--top    { top: -200px; }
.form-bg__oval--bottom { bottom: -200px; }

/* subtle darkening so the white card pops */
.form-bg__tint {
  position: absolute;
  inset: 0;
  background: rgba(25, 26, 31, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* ---------- HEADER ---------- */
.form-header-bar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
}

.form-header__logo svg { display: block; }

.form-header-bar .logo {
  display: flex;
  width: 234px;
  padding: 6px 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  text-decoration: none;
}

.form-header__menu {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 22px;
  border-radius: 40px;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.45px;
  text-decoration: none;
}

.form-header__burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.form-header__burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- FORM CARD ---------- */
.form-card {
  position: relative;
  z-index: 20;
  width: 636px;
  max-width: calc(100% - 32px);
  margin: 68px auto 40px;
  background: #fff;
  border-radius: 16px;
  padding: 9px 12px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.form-card__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.form-card__back,
.form-card__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
}

.form-card__back {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f3f3f3;
}
.form-card__back:hover { background: #e9e9e9; }
.form-card__close { width: 24px; height: 24px; opacity: 0.8; }
.form-card__close:hover { opacity: 1; }

.form-card__heading {
  width: 100%;
  max-width: 501px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #212121;
}

.form-card__title {
  margin: 0;
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-card__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.4px;
}

/* ---------- THE FORM ---------- */
.lux-form {
  width: 100%;
  max-width: 494px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.lux-form__inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* floating-label inputs */
.lux-input { position: relative; }

.lux-input input {
  width: 100%;
  height: 48px;
  padding: 14px 22px;
  border: 1px solid var(--color-border-medium, #d3d3d3);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #212121;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}
.lux-input input:focus { border-color: var(--color-accent-primary); }

.lux-input label {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #212121;
  pointer-events: none;
  transition: 0.18s ease;
  background: #fff;
  padding: 0 4px;
}
.lux-input .req { color: var(--color-accent-primary); font-weight: 700; }

.lux-input input:focus + label,
.lux-input input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
}

/* ---------- options (radio) ---------- */
.lux-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lux-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #212121;
  letter-spacing: 0.4px;
  width: max-content;
}
.lux-check input { position: absolute; opacity: 0; pointer-events: none; }

.lux-check__box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #f3f3f3;
  flex-shrink: 0;
  position: relative;
  transition: 0.15s ease;
}
.lux-check input:checked + .lux-check__box {
  background: var(--color-accent-primary);
}
.lux-check input:checked + .lux-check__box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- group / label ---------- */
.lux-form__group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lux-form__label {
  margin: 0;
  font-size: 16px;
  color: #212121;
  letter-spacing: 0.4px;
}

/* ---------- select ---------- */
.lux-select {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--color-border-medium, #d3d3d3);
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
}
.lux-select__star { color: var(--color-accent-primary); font-size: 18px; line-height: 1; }
.lux-select select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #212121;
  letter-spacing: 0.4px;
  appearance: none;
  cursor: pointer;
}
.lux-select__arrow { display: inline-flex; pointer-events: none; }
.lux-select select.placeholder { color: #9e9e9e; }
.lux-select select option { color: #212121; }

/* ---------- textarea ---------- */
.lux-textarea textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  overflow: hidden;
  border: 1px solid var(--color-border-medium, #d3d3d3);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  color: #212121;
  letter-spacing: 0.4px;
  box-sizing: border-box;
  outline: none;
}
.lux-textarea textarea:focus { border-color: var(--color-accent-primary); }
.lux-textarea textarea::placeholder { color: #212121; }

/* ---------- file ---------- */
.lux-file { display: flex; flex-direction: column; gap: 14px; }

.lux-file__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  background: #f8f8f8;
  border-radius: 20px;
  padding: 3px 3px 3px 16px;
  cursor: pointer;
}
.lux-file__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #212121;
  letter-spacing: 0.4px;
}
.lux-file__btn {
  height: 34px;
  min-width: 106px;
  border: none;
  border-radius: 20px;
  background: #1f1f1f;
  color: #c3c3c3;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.lux-file__btn:hover { color: #fff; }

.lux-file__note {
  margin: 0;
  font-size: 12px;
  line-height: 14px;
  color: #919191;
  letter-spacing: 0.4px;
}

.lux-file__chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  width: max-content;
  max-width: 100%;
  background: #f8f8f8;
  border-radius: 4px;
  padding: 8px 14px;
}
.lux-file__chip[hidden] { display: none; }
.lux-file__chip-icon { display: inline-flex; }
.lux-file__chip-name {
  font-size: 16px;
  color: #000;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lux-file__chip-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  padding: 0;
}

/* ---------- submit / privacy ---------- */
.lux-form__submit {
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 40px;
  background: var(--color-accent-primary);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.lux-form__submit:hover {
  box-shadow: 0 2px 12px 0 rgba(255, 120, 38, 0.8);
}
.lux-form__submit:active { filter: brightness(0.95); }

.lux-form__privacy {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #212121;
  letter-spacing: 0.4px;
}
.lux-form__privacy svg { flex-shrink: 0; margin-top: 1px; }
.lux-form__privacy a { color: #ff6500; text-decoration: underline; }

/* ============================================================
   MOBILE  (< 760px) — panel slides in from the right
   ============================================================ */
@media (max-width: 759px) {
  .form-bg,
  .form-header-bar { display: none; }

  .form-page { background: #2e2e2e; }

  .form-card {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 14px;            /* never covers the full screen */
    width: auto;
    max-width: none;
    margin: 0;
    border-radius: 16px 0 0 16px;
    padding: 24px 20px 40px;
    gap: 24px;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);

    /* entry animation */
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
  }

  .form-card.form-open {
    transform: translateX(0);
    opacity: 1;
  }

  .form-card__top { justify-content: flex-end; }
  .form-card__back { display: none; }      /* close (×) handles back on mobile */

  .form-card__heading { text-align: left; }
  .form-card__title { font-size: 24px; }

  .lux-form { max-width: none; }
  .lux-options { gap: 18px; }
}
