/* Black Friday annual offer: pricing card + corner coupon */

:root {
  --bf-coral: #d97a61;
  --bf-coral-deep: #c2603f;
  --bf-ink: #0f172a;
  --bf-paper: #fffaf6;
}

/* ---------- Annual pricing card (contact page) ---------- */
/* Same card family as Monthly / 6 Months; the sale shows in the badge,
   the crossed-out price and a rubber-stamp "33% OFF". */
.contact-page__promo-card.bf-card {
  border-color: rgba(217, 122, 97, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 10px 28px rgba(15, 23, 42, 0.06),
    0 22px 50px rgba(217, 122, 97, 0.14);
}

.bf-card .contact-page__promo-card__badge {
  background: var(--bf-ink);
  border-color: var(--bf-ink);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
  letter-spacing: 0.12em;
}

.bf-card .contact-page__promo-card__badge-shine {
  display: none;
}

.contact-page__promo-card.bf-card h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.bf-card__was {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #94a3b8;
  -webkit-text-fill-color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: var(--bf-coral);
  text-decoration-thickness: 2px;
}

.contact-page__promo-card.bf-card p {
  padding-right: 84px;
}

.bf-card__stamp {
  position: absolute;
  right: -4px;
  bottom: -14px;
  display: grid;
  place-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2.5px solid var(--bf-coral);
  outline: 1px dashed rgba(217, 122, 97, 0.6);
  outline-offset: -8px;
  color: var(--bf-coral-deep);
  background: rgba(255, 250, 246, 0.85);
  text-align: center;
  line-height: 1;
  transform: rotate(-12deg);
}

.bf-card__stamp strong {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.bf-card__stamp small {
  margin-top: 2px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.bf-card .contact-page__promo-card__accent-line {
  width: 64px;
}

/* ---------- Annual option on the signup plan step ---------- */
.listing-submit-plan.bf-plan {
  position: relative;
  border-color: rgba(217, 122, 97, 0.55);
  background: var(--bf-paper);
}

.listing-submit-plan.bf-plan:has(input:checked) {
  border-color: var(--bf-coral);
  background: #fff3ee;
  box-shadow: 0 0 0 1px var(--bf-coral);
}

.listing-submit-plan.bf-plan .listing-submit-plan__body {
  padding-right: 76px;
}

.bf-plan__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: 2px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bf-ink);
}

.bf-plan__was {
  margin-left: 6px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration-color: var(--bf-coral);
  text-decoration-thickness: 2px;
}

.bf-plan__stamp {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-content: center;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  border-radius: 50%;
  border: 2px solid var(--bf-coral);
  outline: 1px dashed rgba(217, 122, 97, 0.6);
  outline-offset: -6px;
  color: var(--bf-coral-deep);
  text-align: center;
  line-height: 1;
  transform: rotate(-12deg);
}

.bf-plan__stamp strong {
  font-size: 1rem;
  font-weight: 900;
}

.bf-plan__stamp small {
  margin-top: 2px;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

/* ---------- Corner coupon (top right) ---------- */
.bf-corner {
  position: fixed;
  top: calc(var(--nav-height, 120px) + 8px);
  right: 20px;
  z-index: 990;
  display: flex;
  width: 380px;
  max-width: calc(100vw - 32px);
  border-radius: 16px;
  background: var(--bf-paper);
  border: 1px solid #f1d5cb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);
  font-family: var(--font-family, Inter, sans-serif);
  color: var(--bf-ink);
  animation: bf-corner-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bf-corner[hidden] {
  display: none;
}

/* Tear-off stub with the discount */
.bf-corner__stub {
  position: relative;
  flex: 0 0 92px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 14px 6px;
  border-radius: 15px 0 0 15px;
  color: #fff;
  background: var(--bf-coral);
  text-align: center;
  line-height: 1;
}

.bf-corner__stub strong {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.bf-corner__stub small {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

/* Perforation + notches between stub and body */
.bf-corner__stub::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: -1px;
  border-right: 2px dashed rgba(255, 250, 246, 0.9);
}

.bf-corner__body {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px 14px 16px;
}

.bf-corner__label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bf-ink);
}

.bf-corner__title {
  margin: 0;
  padding-right: 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bf-ink);
}

.bf-corner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.bf-corner__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.bf-corner__price b {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bf-corner__price s {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration-color: var(--bf-coral);
  text-decoration-thickness: 2px;
}

.bf-corner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: var(--brand-primary, #2563eb);
  transition: background 150ms ease;
}

.bf-corner__cta:hover {
  background: var(--brand-dark, #1e3a8a);
}

.bf-corner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.bf-corner__close:hover {
  color: var(--bf-ink);
  background: rgba(15, 23, 42, 0.06);
}

.bf-corner__close:focus-visible,
.bf-corner__cta:focus-visible {
  outline: 2px solid var(--bf-coral);
  outline-offset: 2px;
}

@keyframes bf-corner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .bf-corner {
    top: calc(var(--nav-height, 96px) + 4px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .bf-corner__stub {
    flex-basis: 74px;
  }

  .bf-corner__stub strong {
    font-size: 1.375rem;
  }

  .bf-corner__body {
    padding: 10px 12px;
  }

  .bf-corner__title {
    font-size: 0.8125rem;
  }

  .bf-corner__row {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-corner {
    animation: none;
  }
}
