/* ══════════════════════════════════════════════════════════════
   Buy Direct page. Builds on the tokens and components in style.css
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────── */

.bd-hero {
  padding-bottom: clamp(3.4rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 82% 30%, rgba(212, 183, 136, 0.26), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(170, 84, 111, 0.35), transparent 40%),
    linear-gradient(130deg, #5e2f42, #8a4d68);
}

.bd-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.bd-hero-copy p {
  font-size: 1.08rem;
}

.bd-trust {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bd-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem 0.42rem 0.45rem;
  border: 1px solid rgba(255, 234, 223, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff6f1;
}

.bd-trust-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #4a2835;
  font-size: 0.8rem;
  font-weight: 700;
}

.bd-hero-cta {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.bd-hero-books {
  position: relative;
  height: 340px;
  perspective: 1200px;
}

.bd-hero-book {
  position: absolute;
  top: 50%;
  width: 185px;
  border-radius: 4px 8px 8px 4px;
  box-shadow:
    0 30px 50px rgba(30, 10, 18, 0.5),
    inset 4px 0 6px rgba(255, 255, 255, 0.15);
}

.bd-hero-book-back {
  left: 50%;
  transform: translate(-8%, -54%) rotate(7deg);
  animation: bdFloatBack 7s ease-in-out infinite;
}

.bd-hero-book-front {
  left: 50%;
  transform: translate(-82%, -46%) rotate(-6deg);
  animation: bdFloatFront 6.2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bdFloatFront {
  0%, 100% { transform: translate(-82%, -46%) rotate(-6deg); }
  50% { transform: translate(-82%, -50%) rotate(-5deg); }
}

@keyframes bdFloatBack {
  0%, 100% { transform: translate(-8%, -54%) rotate(7deg); }
  50% { transform: translate(-8%, -57%) rotate(8deg); }
}

.bd-hero-price {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: 4%;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.9;
  color: #4a2835;
  background: radial-gradient(circle at 30% 25%, #f3e3c4, var(--gold-400) 55%, var(--gold-500));
  box-shadow: 0 14px 30px rgba(30, 10, 18, 0.4), 0 0 0 6px rgba(212, 183, 136, 0.22);
  transform: rotate(-10deg);
}

.bd-hero-price small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Progress steps ─────────────────────────────── */

.bd-progress-wrap {
  position: sticky;
  top: 88px;
  z-index: 50;
  background: rgba(251, 243, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.bd-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0.9rem 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bd-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.bd-step + .bd-step::before {
  content: "";
  position: absolute;
  top: 16px;
  right: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: rgba(127, 47, 77, 0.16);
  transition: background 0.4s ease;
}

.bd-step.is-done + .bd-step::before,
.bd-step.is-done + .bd-step.is-active::before {
  background: linear-gradient(90deg, var(--wine-600), var(--gold-500));
}

.bd-step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid rgba(127, 47, 77, 0.25);
  background: #fff;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.35s ease;
}

.bd-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-700);
  transition: color 0.35s ease;
}

.bd-step.is-active .bd-step-num {
  border-color: var(--wine-600);
  background: linear-gradient(130deg, var(--wine-600), var(--wine-700));
  color: #fff;
  box-shadow: 0 0 0 5px rgba(154, 66, 98, 0.16);
}

.bd-step.is-active .bd-step-label {
  color: var(--wine-700);
}

.bd-step.is-done .bd-step-num {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: #fff;
  font-size: 0;
}

.bd-step.is-done .bd-step-num::after {
  content: "\2713";
  font-size: 0.95rem;
}

/* ── Shared section bits ────────────────────────── */

.bd-section {
  scroll-margin-top: 160px;
}

.bd-lead {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--ink-700);
  font-size: 1.04rem;
}

/* ── Step 1: Book cards ─────────────────────────── */

.bd-book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  max-width: 980px;
  margin: 0 auto;
}

.bd-book-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bd-book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.bd-book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.bd-book-card:has(.bd-book-radio:checked),
.bd-bundle-card:has(.bd-book-radio:checked),
.bd-book-card.is-selected,
.bd-bundle-card.is-selected {
  border-color: var(--wine-600);
  box-shadow: 0 0 0 4px rgba(194, 160, 108, 0.35), var(--shadow-soft);
}

.bd-book-card:has(.bd-book-radio:focus-visible),
.bd-bundle-card:has(.bd-book-radio:focus-visible) {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

.bd-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(127, 47, 77, 0.3);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
}

.bd-check::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  transform: scale(0);
  transition: transform 0.25s ease;
}

.is-selected > .bd-check {
  border-color: var(--wine-600);
  background: linear-gradient(130deg, var(--wine-600), var(--wine-700));
}

.is-selected > .bd-check::after {
  transform: scale(1);
}

.bd-book-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.4rem 2rem;
  background:
    radial-gradient(circle at 50% 110%, rgba(154, 66, 98, 0.22), transparent 60%),
    linear-gradient(160deg, #f8efeb, #f1dfd8);
}

.bd-book-cover img {
  height: 280px;
  width: auto;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 20px 44px rgba(58, 29, 39, 0.34), inset 3px 0 4px rgba(255, 255, 255, 0.2);
  transition: transform 0.5s ease;
}

.bd-book-card:hover .bd-book-cover img {
  transform: scale(1.04) rotate(-1deg);
}

.bd-book-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.6rem 1.7rem;
}

.bd-book-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
}

.bd-book-subtitle {
  margin-top: 0.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--wine-700);
}

.bd-book-desc {
  flex: 1;
  margin: 0.8rem 0 1.3rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.bd-book-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}

.bd-book-price,
.bd-bundle-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--wine-700);
  white-space: nowrap;
}

.bd-book-price small,
.bd-bundle-price small {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-700);
}

.bd-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 47, 58, 0.45);
  color: var(--wine-700);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.bd-select-on { display: none; }

.is-selected .bd-select-btn {
  border-color: transparent;
  background: linear-gradient(130deg, var(--wine-600), var(--wine-700));
  color: #fff;
  box-shadow: 0 10px 20px rgba(107, 47, 58, 0.26);
}

.is-selected .bd-select-idle { display: none; }
.is-selected .bd-select-on { display: inline; }
.is-selected .bd-select-on::before { content: "\2713\00a0"; }

/* Bundle */

.bd-bundle-card {
  position: relative;
  max-width: 980px;
  margin: 1.8rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 4rem 1.2rem 1.4rem;
  border: 2px dashed rgba(194, 160, 108, 0.7);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fffaf4, #fbefe6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bd-bundle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.bd-bundle-card.is-selected {
  border-style: solid;
}

.bd-bundle-card > .bd-check {
  top: 50%;
  transform: translateY(-50%);
}

.bd-bundle-covers {
  position: relative;
  width: 92px;
  height: 78px;
}

.bd-bundle-covers img {
  position: absolute;
  top: 0;
  width: 54px;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 8px 18px rgba(58, 29, 39, 0.3);
}

.bd-bundle-covers img:first-child {
  left: 0;
  transform: rotate(-8deg);
}

.bd-bundle-covers img:last-child {
  left: 34px;
  transform: rotate(6deg);
}

.bd-bundle-copy {
  display: grid;
  gap: 0.1rem;
}

.bd-bundle-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.bd-bundle-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}

.bd-bundle-text {
  font-size: 0.92rem;
  color: var(--ink-700);
}

/* ── Step 2: Form + summary ─────────────────────── */

.bd-details-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.8rem;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.bd-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.bd-field {
  display: grid;
  gap: 0.38rem;
  align-content: start;
}

.bd-field-full {
  grid-column: 1 / -1;
}

.bd-field label {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
}

.bd-req {
  color: var(--wine-600);
}

.bd-optional {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9b8a8f;
}

.bd-form input,
.bd-form select,
.bd-form textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(69, 35, 47, 0.2);
  border-radius: 10px;
  background: #fffdfb;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bd-form textarea {
  resize: vertical;
  min-height: 110px;
}

.bd-form input::placeholder,
.bd-form textarea::placeholder {
  color: #ad9ca1;
}

.bd-form input:focus,
.bd-form select:focus,
.bd-form textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194, 160, 108, 0.18);
}

.bd-select-wrap {
  position: relative;
}

.bd-select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--wine-700);
  border-bottom: 1.6px solid var(--wine-700);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.bd-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
}

.bd-hint {
  font-size: 0.82rem;
  color: #8a777d;
}

.bd-error {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b3263f;
}

.bd-field.has-error input,
.bd-field.has-error select {
  border-color: #c4475d;
  background: #fff8f8;
}

.bd-field.has-error .bd-error {
  display: block;
}

.bd-field.has-error .bd-hint {
  display: none;
}

.bd-field-label {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
}

.bd-captcha-field .g-recaptcha {
  min-height: 78px;
}

.bd-captcha-field.has-error .g-recaptcha > div {
  outline: 2px solid #c4475d;
  outline-offset: 2px;
  border-radius: 4px;
}

.bd-form-foot {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  margin-top: 0.4rem;
}

.bd-continue {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}

.bd-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.bd-continue:hover .bd-arrow {
  transform: translateX(4px);
}

.bd-secure-note {
  margin: 0;
  font-size: 0.84rem;
  color: #8a777d;
}

/* Summary */

.bd-summary {
  position: sticky;
  top: 180px;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 183, 136, 0.25), transparent 45%),
    linear-gradient(150deg, #653548, var(--charcoal-900) 60%, #8c4d68);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.bd-summary-label {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.bd-summary-covers {
  position: relative;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bd-summary-covers img {
  height: 170px;
  width: auto;
  border-radius: 3px 5px 5px 3px;
  box-shadow: 0 16px 30px rgba(20, 6, 12, 0.5);
  animation: bdPop 0.4s ease;
}

.bd-summary-covers.is-both img:first-child {
  transform: rotate(-7deg) translateX(22px);
}

.bd-summary-covers.is-both img:last-child {
  transform: rotate(6deg) translateX(-22px);
  position: relative;
  z-index: 1;
}

@keyframes bdPop {
  from { opacity: 0; scale: 0.9; }
  to { opacity: 1; scale: 1; }
}

.bd-summary-empty {
  display: grid;
  place-items: center;
  width: 120px;
  height: 170px;
  padding: 0.8rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.bd-summary-title {
  margin: 1rem 0 0.2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.bd-summary-format {
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: rgba(255, 244, 240, 0.72);
}

.bd-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 244, 240, 0.8);
}

.bd-summary-total strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-400);
}

.bd-summary-change {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 244, 240, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bd-summary-change:hover {
  color: #fff;
}

/* ── Step 3: Payment ────────────────────────────── */

.bd-payment-section {
  position: relative;
  color: #fff;
  scroll-margin-top: 160px;
  background:
    radial-gradient(circle at 82% 8%, rgba(194, 160, 108, 0.2), transparent 42%),
    radial-gradient(circle at 10% 96%, rgba(170, 84, 111, 0.3), transparent 40%),
    linear-gradient(128deg, #5a2c3e, var(--charcoal-900) 54%, #84475f);
}

.bd-payment-section.is-revealed {
  animation: bdReveal 0.7s ease both;
}

@keyframes bdReveal {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.bd-payment-section h2 {
  color: #fff;
}

.bd-lead-light {
  color: rgba(255, 244, 240, 0.85);
}

.bd-lead-light strong {
  color: var(--gold-400);
}

.bd-pay-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.8rem;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.bd-pay-main {
  display: grid;
  gap: 1.2rem;
}

.bd-amount-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fffaf3, #f6e6d4);
  color: var(--ink-900);
  box-shadow: var(--shadow-soft);
}

.bd-amount-label {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.bd-amount {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--wine-700);
}

.bd-amount small {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-700);
}

.bd-amount-book {
  text-align: right;
}

.bd-amount-book p:last-child {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-900);
}

.bd-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.bd-method {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

.bd-method p {
  color: rgba(255, 244, 240, 0.86);
  margin-bottom: 0.7rem;
}

.bd-method-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.bd-method-head h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}

.bd-method-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #4a2835;
  font-weight: 700;
  font-size: 1.05rem;
}

.bd-amount-inline {
  color: var(--gold-400);
}

.bd-method-note {
  margin: 0.8rem 0 0 !important;
  font-size: 0.84rem;
  color: rgba(255, 244, 240, 0.65) !important;
}

.bd-copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bd-copy-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.bd-copy-btn {
  flex: 0 0 auto;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold-400);
  color: #4a2835;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bd-copy-btn:hover {
  background: #e4cba2;
  transform: translateY(-1px);
}

.bd-bank {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.bd-bank div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.bd-bank dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  align-self: center;
}

.bd-bank dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bd-bank-copy div {
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  padding: 0.65rem 0.6rem 0.65rem 0.9rem;
}

.bd-bank-copy div:first-child {
  padding-right: 0.9rem;
}

.bd-bank-copy dd {
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.bd-reference {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(212, 183, 136, 0.6);
  background: rgba(212, 183, 136, 0.08);
}

.bd-reference-label {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.bd-reference-text {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: rgba(255, 244, 240, 0.8);
}

/* Order card */

.bd-order-card {
  position: sticky;
  top: 180px;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-soft);
}

.bd-order-title {
  margin-bottom: 0.9rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
}

.bd-order-list {
  margin: 0;
  display: grid;
}

.bd-order-list div {
  display: grid;
  gap: 0.05rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line-soft);
}

.bd-order-list dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9b8a8f;
}

.bd-order-list dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bd-order-list .bd-order-total dd {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  color: var(--wine-700);
}

.bd-edit-btn {
  margin-top: 0.8rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wine-700);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Payment complete */

.bd-complete {
  position: relative;
  max-width: 1040px;
  margin: 2.6rem auto 0;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 22px;
  text-align: center;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 183, 136, 0.35), transparent 55%),
    linear-gradient(170deg, #fffaf4, #f6e7dd);
  box-shadow: 0 30px 60px rgba(20, 6, 12, 0.35);
  border: 1px solid rgba(212, 183, 136, 0.6);
}

.bd-complete-badge {
  width: 62px;
  height: 62px;
  margin: -4.6rem auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 4px solid #fffaf4;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(20, 6, 12, 0.3);
}

.bd-complete h2 {
  color: var(--wine-700) !important;
}

.bd-complete p {
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  color: var(--ink-700);
}

.bd-complete p a {
  color: var(--wine-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bd-email-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.bd-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(127, 47, 77, 0.25);
  color: var(--wine-700);
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(58, 29, 39, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bd-email-chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
}

.bd-complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.bd-btn-gold {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(130deg, var(--wine-600), var(--wine-700));
  box-shadow: 0 12px 24px rgba(107, 47, 58, 0.3);
}

.bd-btn-ghost {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  background: transparent;
  color: var(--wine-700);
  border-color: rgba(107, 47, 58, 0.45);
  font-family: inherit;
}

.bd-btn-ghost:hover {
  border-color: var(--gold-500);
}

.bd-complete-note {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-size: 0.86rem !important;
  color: #8a777d !important;
}

/* Timeline */

.bd-timeline {
  list-style: none;
  max-width: 1040px;
  margin: 2.4rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.bd-timeline li {
  padding: 1.3rem 1.3rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.bd-timeline-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold-400);
  color: var(--gold-400);
  font-weight: 700;
}

.bd-timeline h3 {
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
  color: #fff;
}

.bd-timeline p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 244, 240, 0.75);
}

/* Toast */

.bd-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 500;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bd-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 980px) {
  .bd-progress-wrap {
    top: 88px;
  }

  .bd-hero-grid,
  .bd-details-grid,
  .bd-pay-grid {
    grid-template-columns: 1fr;
  }

  .bd-hero-books {
    height: 280px;
  }

  .bd-hero-book {
    width: 150px;
  }

  .bd-summary,
  .bd-order-card {
    position: static;
  }

  .bd-summary {
    order: -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.2rem;
    text-align: left;
    align-items: center;
  }

  .bd-summary-label,
  .bd-summary-total,
  .bd-summary-change {
    grid-column: 1 / -1;
  }

  .bd-summary-covers {
    grid-row: span 2;
    height: 120px;
    min-width: 90px;
  }

  .bd-summary-covers img {
    height: 112px;
  }

  .bd-summary-empty {
    width: 80px;
    height: 112px;
    font-size: 0.72rem;
  }

  .bd-summary-title {
    margin-top: 0;
    align-self: end;
  }

  .bd-summary-format {
    align-self: start;
  }
}

@media (max-width: 760px) {
  .bd-book-grid,
  .bd-timeline {
    grid-template-columns: 1fr;
  }

  .bd-bundle-card {
    grid-template-columns: auto 1fr;
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    gap: 0.9rem 1rem;
  }

  .bd-bundle-card > .bd-check {
    top: 1rem;
    transform: none;
  }

  .bd-bundle-price {
    grid-column: 1;
  }

  .bd-bundle-card .bd-select-btn {
    grid-column: 2;
    justify-self: end;
  }

  .bd-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bd-progress-wrap {
    top: 80px;
  }

  .bd-steps {
    padding: 0.7rem 0;
  }

  .bd-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .bd-step + .bd-step::before {
    top: 13px;
    right: calc(50% + 18px);
    width: calc(100% - 36px);
  }

  .bd-step-label {
    font-size: 0.68rem;
  }

  .bd-hero-books {
    height: 240px;
  }

  .bd-hero-book {
    width: 128px;
  }

  .bd-hero-price {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    right: 2%;
  }

  .bd-book-cover {
    padding: 1.8rem 1.4rem;
  }

  .bd-book-cover img {
    height: 230px;
  }

  .bd-book-foot {
    flex-wrap: wrap;
  }

  .bd-amount-book {
    text-align: left;
  }

  .bd-complete-badge {
    margin-top: -3.8rem;
  }

  .bd-form-foot {
    justify-items: stretch;
  }

  .bd-bank-copy div {
    grid-template-columns: 1fr auto;
  }

  .bd-bank-copy dt {
    grid-column: 1 / -1;
  }
}

/* The reCAPTCHA widget is a fixed 304px; shrink it on very narrow phones. */
@media (max-width: 380px) {
  .bd-captcha-field .g-recaptcha {
    transform: scale(0.88);
    transform-origin: 0 0;
    min-height: 70px;
  }
}
