/* Welcome offer popup */
body.welcome-popup-open {
  overflow: hidden;
}

.welcome-popup[hidden] {
  display: none;
}

.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.welcome-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 32, 0.72);
}

.welcome-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100vw - 32px));
  max-height: min(92dvh, 640px);
  overflow: auto;
  background: var(--ba-white);
  border-radius: var(--ba-radius-lg, 16px);
  box-shadow: 0 28px 80px rgba(8, 16, 32, 0.35);
  outline: none;
}

.welcome-popup__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ba-navy);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(12, 27, 58, 0.12);
}

.welcome-popup__layout {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  min-height: min(520px, 85dvh);
}

.welcome-popup__visual {
  position: relative;
  min-height: 100%;
  background: var(--ba-navy);
  overflow: hidden;
}

.welcome-popup__visual-media {
  position: absolute;
  inset: 0;
}

.welcome-popup__visual-media--mobile {
  display: none;
}

.welcome-popup__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-popup__visual-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: linear-gradient(180deg, transparent 35%, rgba(8, 16, 32, 0.55) 70%, rgba(8, 16, 32, 0.88) 100%);
  color: var(--ba-white);
}

.welcome-popup__logo {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.25rem);
  left: clamp(0.85rem, 2vw, 1.25rem);
  max-width: 140px;
}

.welcome-popup__logo-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.welcome-popup__visual-title {
  margin: 0 0 0.35rem;
  font-family: var(--ba-font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.welcome-popup__visual-sub {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

.welcome-popup__panel {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.15rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-popup__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ba-orange);
}

.welcome-popup__title {
  margin: 0 0 0.55rem;
  font-family: var(--ba-font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ba-navy);
}

.welcome-popup__title-accent {
  display: block;
  color: var(--ba-orange);
}

.welcome-popup__intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5a6578;
}

.welcome-popup__offer {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(242, 101, 34, 0.35);
  border-radius: 10px;
  background: #fff6f0;
}

.welcome-popup__offer-icon .ba-icon {
  width: 28px;
  height: 28px;
  color: var(--ba-orange);
}

.welcome-popup__offer-title {
  margin: 0 0 0.2rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ba-navy);
}

.welcome-popup__offer-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5a6578;
}

.welcome-popup__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ba-navy);
}

.welcome-popup__req {
  color: var(--ba-orange);
}

.welcome-popup__input {
  width: 100%;
  min-height: 48px;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.85rem;
  font-size: 16px;
  border: 1px solid #c5cdd8;
  border-radius: 8px;
}

.welcome-popup__input:focus {
  outline: 2px solid var(--ba-orange);
  outline-offset: 2px;
}

.welcome-popup__status {
  min-height: 1.25rem;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.welcome-popup__status.is-error {
  color: #b42318;
}

.welcome-popup__status.is-success {
  color: #027a48;
}

.welcome-popup__submit {
  width: 100%;
  min-height: 48px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.welcome-popup__legal {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #6b7280;
}

.welcome-popup__legal a {
  color: var(--ba-navy);
  font-weight: 700;
}

.welcome-popup__later {
  display: block;
  margin: 0.35rem auto 0;
  padding: 0.35rem 0.5rem;
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  text-decoration: underline;
}

.welcome-popup__success[hidden] {
  display: none;
}

.welcome-popup__success-title {
  margin: 0 0 0.65rem;
  font-family: var(--ba-font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-transform: uppercase;
  color: var(--ba-navy);
}

.welcome-popup__success-label {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ba-navy);
}

.welcome-popup__code {
  margin: 0 0 1rem;
  font-family: var(--ba-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ba-orange);
}

.welcome-popup__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.welcome-popup__copy,
.welcome-popup__tickets {
  min-height: 48px;
}

.welcome-popup__success-meta {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5a6578;
}

@media (max-width: 768px) {
  .welcome-popup__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .welcome-popup__visual {
    min-height: clamp(140px, 28dvh, 200px);
  }

  .welcome-popup__visual-media--desktop {
    display: none;
  }

  .welcome-popup__visual-media--mobile {
    display: block;
  }

  .welcome-popup__visual-overlay {
    padding: 1rem;
  }

  .welcome-popup__visual-title {
    font-size: 1.15rem;
  }

  .welcome-popup__visual-sub {
    font-size: 0.82rem;
  }

  .welcome-popup__panel {
    padding: 1.15rem 1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-popup__dialog {
    scroll-behavior: auto;
  }
}
