/* ============================================
   NOVARA — Offer popup (auto-opening enquiry)
   Paired with /new/js/new-offer-popup.js
   ============================================ */

.n-offer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow-y: auto;
  background: rgba(4, 20, 15, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out, ease);
}
.n-offer.is-open { display: flex; }
.n-offer.is-visible { opacity: 1; }
.n-offer * { box-sizing: border-box; }

body.n-offer-open { overflow: hidden; }

/* ---------- Card ---------- */
.n-offer__card {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border-radius: 22px;
  overflow: hidden;
  background: var(--forest-deep, #0D4438);
  border: 1px solid rgba(201, 162, 74, 0.22);
  box-shadow: 0 40px 90px rgba(4, 20, 15, 0.6);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.38s var(--ease-out, ease), opacity 0.38s var(--ease-out, ease);
}
.n-offer.is-visible .n-offer__card { transform: none; opacity: 1; }

/* ---------- Close ---------- */
.n-offer__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--forest-deep, #0D4438);
  background: var(--cream, #F7F1E6);
  border: none;
  box-shadow: 0 6px 18px rgba(4, 20, 15, 0.35);
  transition: transform 0.2s var(--ease-out, ease), background 0.2s ease;
}
.n-offer__close:hover {
  background: #fff;
  transform: rotate(90deg);
}

/* ---------- Left: form ---------- */
.n-offer__form-col {
  padding: 40px 36px 34px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(31, 135, 114, 0.28) 0%, transparent 60%),
    var(--forest-deep, #0D4438);
  min-width: 0;
}

.n-offer__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.14);
  border: 1px solid rgba(201, 162, 74, 0.35);
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #C9A24A);
}
.n-offer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #C9A24A);
  animation: n-offer-blink 2.2s ease infinite;
}
@keyframes n-offer-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.n-offer__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream, #F7F1E6);
}
.n-offer__title em {
  font-family: var(--font-stylish, Georgia, serif);
  font-style: italic;
  color: var(--gold, #C9A24A);
}
.n-offer__sub {
  margin-top: 8px;
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream-faint, rgba(247, 241, 230, 0.45));
}

.n-offer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.n-offer__field { min-width: 0; }
.n-offer__field--wide { grid-column: 1 / -1; }

.n-offer__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 162, 74, 0.75);
}
.n-offer__label span {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 300;
  color: var(--cream-faint, rgba(247, 241, 230, 0.45));
}

.n-offer__input,
.n-offer__textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(4, 20, 15, 0.55);
  border: 1px solid rgba(201, 162, 74, 0.2);
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--cream, #F7F1E6);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.n-offer__input::placeholder,
.n-offer__textarea::placeholder { color: rgba(247, 241, 230, 0.28); }
.n-offer__input:hover,
.n-offer__textarea:hover { border-color: rgba(201, 162, 74, 0.38); }
.n-offer__input:focus,
.n-offer__textarea:focus {
  border-color: rgba(201, 162, 74, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.1);
}
.n-offer__textarea { height: 78px; resize: none; line-height: 1.6; }

/* Phone: dialling-code select welded to the number input */
.n-offer__phone {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(4, 20, 15, 0.55);
  border: 1px solid rgba(201, 162, 74, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.n-offer__phone:focus-within {
  border-color: rgba(201, 162, 74, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.1);
}
.n-offer__code {
  flex: 0 0 96px;
  padding: 12px 24px 12px 12px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(201, 162, 74, 0.18);
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 13px;
  color: var(--cream, #F7F1E6);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23C9A24A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.n-offer__code option { background: var(--forest-deep, #0D4438); color: var(--cream, #F7F1E6); }
.n-offer__number {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: transparent;
  border: none;
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--cream, #F7F1E6);
  outline: none;
}
.n-offer__number::placeholder { color: rgba(247, 241, 230, 0.28); }

/* Inline errors — the form is novalidate so these are the only messages shown */
.n-offer__error {
  display: none;
  margin-top: 6px;
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 11px;
  line-height: 1.4;
  color: #f87171;
}
.n-offer__error.is-on { display: block; }
.n-offer__input.is-bad,
.n-offer__textarea.is-bad,
.n-offer__phone.is-bad { border-color: #ef4444; }

.n-offer__submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold, #C9A24A), var(--gold-warm, #E0BF72));
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--forest-deep, #0D4438);
  transition: filter 0.2s ease, transform 0.1s ease;
}
.n-offer__submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 45%;
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out, ease);
}
.n-offer__submit:hover { filter: brightness(1.06); }
.n-offer__submit:hover::before { left: 165%; }
.n-offer__submit:active { transform: scale(0.99); }

.n-offer__note {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 300;
  color: rgba(247, 241, 230, 0.3);
}

/* ---------- Right: offer art ---------- */
.n-offer__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 44px 32px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 8%, rgba(201, 162, 74, 0.3) 0%, transparent 62%),
    linear-gradient(165deg, var(--forest, #14695A) 0%, var(--forest-deep, #0D4438) 55%, var(--night, #04140f) 100%);
  border-left: 1px solid rgba(201, 162, 74, 0.18);
}
/* Soft rotating halo behind the badge */
.n-offer__art::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(201, 162, 74, 0.22), transparent 45%, rgba(31, 135, 114, 0.28), transparent 85%);
  filter: blur(30px);
  animation: n-offer-spin 22s linear infinite;
}
@keyframes n-offer-spin { to { transform: rotate(360deg); } }

.n-offer__art > * { position: relative; z-index: 1; }

.n-offer__art-head {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cream, #F7F1E6);
}
.n-offer__art-head em {
  font-family: var(--font-stylish, Georgia, serif);
  font-style: italic;
  color: var(--gold-warm, #E0BF72);
}

.n-offer__badge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 20px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold, #C9A24A), var(--gold-warm, #E0BF72));
  box-shadow: 0 18px 40px rgba(201, 162, 74, 0.3);
  transform: rotate(-3deg);
  animation: n-offer-float 4.5s ease-in-out infinite;
}
@keyframes n-offer-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-7px); }
}
.n-offer__badge-num {
  font-family: var(--font-display, Georgia, serif);
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest-deep, #0D4438);
}
.n-offer__badge-num sup { font-size: 26px; }
.n-offer__badge-off {
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--forest-deep, #0D4438);
}

.n-offer__ribbon {
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(4, 20, 15, 0.4);
  border: 1px solid rgba(201, 162, 74, 0.35);
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-warm, #E0BF72);
}

.n-offer__art-note {
  max-width: 250px;
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream-dim, rgba(247, 241, 230, 0.72));
}

.n-offer__perks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  max-width: 250px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 162, 74, 0.16);
}
.n-offer__perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-small, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 300;
  color: var(--cream-faint, rgba(247, 241, 230, 0.45));
}
.n-offer__perk b {
  color: var(--gold, #C9A24A);
  font-weight: 600;
}

/* ---------- Tablet: art becomes a strip on top ---------- */
@media (max-width: 900px) {
  .n-offer { padding: 18px; }
  .n-offer__card {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .n-offer__art {
    order: -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 62px 18px 22px;
    text-align: left;
    border-left: none;
    border-bottom: 1px solid rgba(201, 162, 74, 0.18);
  }
  .n-offer__art::after { width: 220px; height: 220px; right: -40px; }
  .n-offer__art-head { font-size: 17px; }
  .n-offer__badge {
    padding: 10px 16px;
    gap: 5px;
    transform: none;
    animation: none;
  }
  .n-offer__badge-num { font-size: 32px; }
  .n-offer__badge-num sup { font-size: 15px; }
  .n-offer__badge-off { font-size: 14px; }
  .n-offer__ribbon,
  .n-offer__art-note,
  .n-offer__perks { display: none; }
  .n-offer__form-col { padding: 26px 22px 28px; }
}

/* ---------- Phone: full-screen sheet ---------- */
@media (max-width: 560px) {
  .n-offer { padding: 0; align-items: stretch; }
  .n-offer__card {
    max-width: none;
    min-height: 100%;
    border: none;
    border-radius: 0;
    grid-template-rows: auto 1fr;
  }
  .n-offer__art {
    padding: 16px 60px 16px 18px;
    padding-top: calc(16px + env(safe-area-inset-top));
  }
  .n-offer__close {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
  }
  .n-offer__form-col { padding: 22px 18px calc(26px + env(safe-area-inset-bottom)); }
  .n-offer__grid { grid-template-columns: 1fr; }
  /* 16px stops iOS zooming the viewport when a field takes focus */
  .n-offer__input,
  .n-offer__textarea,
  .n-offer__code,
  .n-offer__number { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .n-offer,
  .n-offer__card,
  .n-offer__close { transition: none; }
  .n-offer__art::after,
  .n-offer__badge,
  .n-offer__dot { animation: none; }
}
