.night-sale-popup {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.night-sale-popup.is-open {
  display: flex;
}

.night-sale-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
}

.night-sale-popup__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: min(960px, 100%);
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.night-sale-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.night-sale-popup__close:hover {
  transform: scale(1.04);
  opacity: 0.92;
}

.night-sale-popup__media {
  min-height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
}

.night-sale-popup__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.night-sale-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
}

.night-sale-popup__title {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
}

.night-sale-popup__text {
  margin: 0 0 24px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.night-sale-popup__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.night-sale-popup__label {
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}

.night-sale-popup__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: #0f172a;
  font-size: 16px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.night-sale-popup__input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.night-sale-popup__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.night-sale-popup__submit:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.night-sale-popup__submit:disabled {
  cursor: not-allowed;
}

.night-sale-popup__status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.night-sale-popup__status--success {
  color: #15803d;
}

.night-sale-popup__status--error {
  color: #dc2626;
}

@media (max-width: 860px) {
  .night-sale-popup__dialog {
    grid-template-columns: 1fr;
  }

  .night-sale-popup__media {
    max-height: 280px;
  }

  .night-sale-popup__content {
    padding: 28px 22px 24px;
  }

  .night-sale-popup__title {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .night-sale-popup {
    padding: 12px;
  }

  .night-sale-popup__dialog {
    border-radius: 20px;
  }

  .night-sale-popup__content {
    padding: 24px 18px 20px;
  }

  .night-sale-popup__title {
    font-size: 24px;
  }

  .night-sale-popup__text {
    font-size: 15px;
  }
}
