/* Thank-you / booking confirmation */
.nv-thanks {
  position: relative;
  padding: 56px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(225, 29, 72, 0.16), transparent 60%),
    radial-gradient(700px 420px at 92% 8%, rgba(251, 113, 133, 0.1), transparent 55%),
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 48%, #f8fafc 100%);
}

.nv-thanks__glow {
  position: absolute;
  inset: auto 20% -120px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(225, 29, 72, 0.18), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.nv-thanks__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.nv-thanks__success {
  margin-bottom: 18px;
}

.nv-thanks__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--nv-primary), var(--nv-primary-dark));
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.35);
  animation: nvThanksPop 0.7s var(--nv-ease) both;
}

.nv-thanks__check svg {
  animation: nvThanksDraw 0.55s 0.25s var(--nv-ease) both;
}

@keyframes nvThanksPop {
  from { opacity: 0; transform: scale(0.6); }
  60% { transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes nvThanksDraw {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.nv-thanks__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nv-primary-dark);
}

.nv-thanks__title {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.nv-thanks__lead {
  margin: 0 0 28px;
  max-width: 46ch;
  color: var(--nv-muted);
  font-size: 1.05rem;
}

/* Receipt ticket */
.nv-receipts {
  display: grid;
  gap: 18px;
}

.nv-receipt--template {
  display: none !important;
}

.nv-receipt__person-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.12);
  color: var(--nv-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nv-receipts__group-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(251, 113, 133, 0.08));
  border: 1px solid rgba(225, 29, 72, 0.2);
  font-weight: 600;
}

.nv-receipts__group-total strong {
  font-size: 1.2rem;
  color: var(--nv-primary-dark);
}

.nv-receipt {
  position: relative;
  background: #fff;
  border: 1px solid var(--nv-border);
  border-radius: 24px;
  box-shadow: var(--nv-shadow-lg);
  overflow: hidden;
  margin-bottom: 0;
  animation: nvThanksIn 0.55s 0.1s var(--nv-ease) both;
}

.nv-receipt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--nv-primary), #FB7185);
}

@keyframes nvThanksIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.nv-receipt__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.06), transparent 55%);
}

.nv-receipt__brand {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nv-primary-dark);
  margin-bottom: 4px;
}

.nv-receipt__label {
  font-size: 1.05rem;
}

.nv-receipt__ref {
  text-align: right;
}

.nv-receipt__ref span {
  display: block;
  font-size: 0.72rem;
  color: var(--nv-muted);
}

.nv-receipt__ref strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nv-receipt__body {
  padding: 8px 24px 10px;
}

.nv-receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.92rem;
}

.nv-receipt__row span {
  color: var(--nv-muted);
  flex: 0 0 38%;
}

.nv-receipt__row strong {
  text-align: right;
  color: var(--nv-ink);
  font-weight: 700;
  word-break: break-word;
}

.nv-receipt__row--total {
  border-bottom: 0;
  margin-top: 4px;
  padding-top: 16px;
  font-size: 1.05rem;
}

.nv-receipt__row--total strong {
  color: var(--nv-primary-dark);
  font-size: 1.25rem;
}

.nv-receipt__empty {
  margin: 0;
  padding: 18px 24px;
  color: var(--nv-muted);
  font-size: 0.92rem;
}

.nv-receipt.is-empty .nv-receipt__body {
  display: none;
}

.nv-receipt.is-empty .nv-receipt__empty {
  display: block;
}

.nv-receipt:not(.is-empty) .nv-receipt__empty {
  display: none;
}

.nv-receipt__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 20px;
  background: #f8fafc;
}

.nv-receipt__stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(225, 29, 72, 0.45);
  color: var(--nv-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  background: rgba(225, 29, 72, 0.08);
}

.nv-thanks__next h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.nv-thanks__steps {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: thanks;
}

.nv-thanks__steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--nv-border);
  counter-increment: thanks;
}

.nv-thanks__steps li::before {
  content: counter(thanks);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--nv-primary-dark);
  background: var(--nv-primary-soft);
}

.nv-thanks__step-copy {
  min-width: 0;
}

.nv-thanks__steps strong {
  display: block;
  margin-bottom: 2px;
}

.nv-thanks__steps span {
  display: block;
  color: var(--nv-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.nv-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nv-thanks__aside {
  position: sticky;
  top: calc(var(--nv-header-h) + 16px);
  animation: nvThanksIn 0.6s 0.18s var(--nv-ease) both;
}

.nv-thanks__media {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--nv-shadow-lg);
  min-height: 420px;
  background: #0f172a;
}

.nv-thanks__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s var(--nv-ease);
}

.nv-thanks__media:hover img {
  transform: scale(1.06);
}

.nv-thanks__media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
  color: #fff;
}

.nv-thanks__media figcaption span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.nv-thanks__media figcaption strong {
  font-size: 1.15rem;
}

.nv-thanks__trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.nv-thanks__trust > div {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--nv-border);
  box-shadow: var(--nv-shadow-sm);
}

.nv-thanks__trust strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.nv-thanks__trust span {
  font-size: 0.78rem;
  color: var(--nv-muted);
}

@media (max-width: 1023px) {
  .nv-thanks__grid {
    grid-template-columns: 1fr;
  }

  .nv-thanks__aside {
    position: static;
    order: -1;
  }

  .nv-thanks__media,
  .nv-thanks__media img {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .nv-thanks {
    padding: 36px 0 72px;
  }

  .nv-receipt__head,
  .nv-receipt__body,
  .nv-receipt__foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nv-receipt__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .nv-thanks__actions .nv-btn {
    width: 100%;
  }
}

@media print {
  .nv-header,
  .nv-footer,
  .nv-thanks__aside,
  .nv-thanks__actions,
  .nv-thanks__next,
  .nv-thanks__glow,
  .nv-mobile-book-bar,
  .nv-receipts__group-total,
  [data-nv-print] {
    display: none !important;
  }

  .nv-thanks {
    padding: 0;
    background: #fff;
  }

  .nv-thanks__success,
  .nv-thanks__eyebrow,
  .nv-thanks__title,
  .nv-thanks__lead {
    display: none !important;
  }

  .nv-receipt {
    box-shadow: none;
    break-inside: avoid;
  }

  /* Print only the clicked receipt */
  body.nv-printing-one .nv-receipt:not(.is-print-target) {
    display: none !important;
  }

  body.nv-printing-one .nv-receipt.is-print-target {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-thanks__check,
  .nv-thanks__check svg,
  .nv-receipt,
  .nv-thanks__aside {
    animation: none !important;
  }
}
