/* ============================================================
   CHECKOUT — dark forest + bright leaf + gold + cream
   Layout follows teamfitarjun.com reference. Tokens and visual
   language inherited from funnel.css.
   ============================================================ */

/* === Top secure-checkout strip ============================== */
.secure-bar {
  position: relative;
  z-index: 12;
  background: linear-gradient(90deg, #1c3d14 0%, #2e6a1f 50%, #1c3d14 100%);
  border-bottom: 1px solid rgba(212, 175, 106, 0.35);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  flex-wrap: wrap;
}
.secure-bar .secure-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.secure-bar .secure-item .ico {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 106, 0.14);
  border: 1px solid rgba(212, 175, 106, 0.45);
  color: var(--gold-soft);
}
.secure-bar .sep { color: rgba(184, 230, 168, 0.5); }

@media (max-width: 600px) {
  .secure-bar { gap: 10px; font-size: 9px; letter-spacing: 0.14em; padding: 9px 14px; }
  .secure-bar .secure-item .ico { width: 18px; height: 18px; }
  .secure-bar .sep { display: none; }
}

/* === Page container ========================================= */
.checkout-page {
  position: relative;
  min-height: calc(100vh - 44px);
  padding: 56px 24px 160px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(85, 188, 64, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(212, 175, 106, 0.08), transparent 60%),
    var(--night);
  color: #F5F1E6;
  overflow: hidden;
}
.checkout-page::before {
  /* Faint grid texture (matches the funnel) */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 230, 168, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 230, 168, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 75%);
}
.checkout-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

/* === Header ================================================ */
.checkout-head {
  text-align: center;
  margin-bottom: 36px;
}
.checkout-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  background: rgba(212, 175, 106, 0.1);
  border: 1px solid rgba(212, 175, 106, 0.45);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.checkout-eyebrow .dot {
  font-size: 10px;
  line-height: 1;
  color: var(--gold);
}
.checkout-h1 {
  margin: 0 0 14px;
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: #F5F1E6;
}
.checkout-h1 .gold {
  font-style: italic;
  background: linear-gradient(180deg, #FFEDB8 0%, #F1D684 30%, #B0884A 70%, #8A6736 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.checkout-sub {
  max-width: 540px;
  margin: 0 auto;
  font-family: "Newsreader", serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245, 241, 230, 0.78);
}

/* === Card ================================================== */
.checkout-card {
  position: relative;
  background: rgba(184, 230, 168, 0.035);
  border-radius: 14px;
  padding: 32px 32px 28px;
  margin-bottom: 22px;
  box-shadow:
    0 0 0 1px rgba(85, 188, 64, 0.28),
    0 0 0 7px rgba(11, 26, 6, 0.5),
    0 0 0 8px rgba(212, 175, 106, 0.18),
    0 24px 60px -28px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(184, 230, 168, 0.08);
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  background: linear-gradient(180deg, #FFEDB8 0%, #F1D684 30%, #B0884A 70%, #8A6736 100%);
  color: #14140f;
  box-shadow:
    0 0 0 1px rgba(80, 56, 22, 0.45),
    0 4px 12px -4px rgba(212, 175, 106, 0.45),
    inset 0 1px 0 rgba(255, 255, 240, 0.5);
}
.step-title {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #F5F1E6;
}
.step-sub {
  margin: 4px 0 0;
  font-family: "Newsreader", serif;
  font-size: 14px;
  color: rgba(245, 241, 230, 0.6);
  line-height: 1.4;
}

/* === Form fields =========================================== */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.82);
  font-weight: 600;
}
.field label .req { color: var(--bad); margin-left: 2px; }
.field label .field-hint {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
  color: rgba(184, 230, 168, 0.7);
}

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  background: rgba(11, 26, 6, 0.55);
  border: 1px solid rgba(184, 230, 168, 0.22);
  border-radius: 8px;
  color: #F5F1E6;
  font-family: "Newsreader", serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: rgba(245, 241, 230, 0.35); }
.field input:hover,
.field select:hover {
  border-color: rgba(184, 230, 168, 0.45);
  background: rgba(11, 26, 6, 0.75);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(11, 26, 6, 0.85);
  box-shadow: 0 0 0 3px rgba(85, 188, 64, 0.18);
}

.phone-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}
.phone-group select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F5F1E6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* === Trust mini row inside card ============================ */
.trust-mini-row {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.trust-mini-row li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 8px;
  background: rgba(11, 26, 6, 0.55);
  border: 1px solid rgba(184, 230, 168, 0.18);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.78);
}
.trust-mini-row li svg { color: var(--accent); flex-shrink: 0; }

/* === Order summary ========================================= */
.order-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 22px;
  margin-bottom: 0;
}
.order-line { flex: 1; }
.order-name {
  margin: 0 0 4px;
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #F5F1E6;
}
.order-meta {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.55);
}
.order-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.order-price .strike {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(245, 241, 230, 0.45);
  text-decoration: line-through;
  text-decoration-color: rgba(245, 241, 230, 0.45);
}
.order-price .now {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 22px;
  border-top: 1px solid rgba(184, 230, 168, 0.22);
}
.order-total .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.72);
  font-weight: 600;
}
.order-total .amt {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFEDB8 0%, #F1D684 30%, #B0884A 70%, #8A6736 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.checkout-finetext {
  text-align: center;
  margin: 28px auto 0;
  max-width: 540px;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 241, 230, 0.5);
}
.finetext-link {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 106, 0.4);
  transition: color .2s ease, border-color .2s ease;
}
.finetext-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* === Sticky pay bar ========================================= */
.pay-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: linear-gradient(180deg, #1c3d14 0%, #122a0c 100%);
  border-top: 1.5px solid var(--gold);
  box-shadow:
    0 -30px 80px -10px rgba(0, 0, 0, 0.85),
    0 -1px 0 rgba(212, 175, 106, 0.35),
    inset 0 1px 0 rgba(212, 175, 106, 0.25);
  padding: 14px 22px 14px;
}
.pay-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.pay-guarantee {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.7);
  text-align: center;
}
.pay-guarantee .seal {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(184, 230, 168, 0.18);
  border: 1px solid rgba(184, 230, 168, 0.5);
  position: relative;
  flex-shrink: 0;
}
.pay-guarantee .seal::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23b8e6a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7.2 5.8 10 11 4.2'/></svg>") center / 9px no-repeat;
}

.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: linear-gradient(180deg, #FFEDB8 0%, #F1D684 30%, #B0884A 70%, #8A6736 100%);
  border: 1px solid rgba(80, 56, 22, 0.55);
  border-radius: 999px;
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: #1a1004;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow:
    0 14px 30px -8px rgba(176, 136, 74, 0.55),
    inset 0 1px 0 rgba(255, 255, 240, 0.5);
  white-space: nowrap;
}
.pay-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px -10px rgba(176, 136, 74, 0.65),
    inset 0 1px 0 rgba(255, 255, 240, 0.55);
}
.pay-btn .ar {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(26, 16, 4, 0.18);
  border: 1px solid rgba(26, 16, 4, 0.35);
  align-items: center;
  justify-content: center;
  color: #1a1004;
}

/* === Mobile ================================================ */
@media (max-width: 640px) {
  .checkout-page { padding: 32px 16px 180px; }
  .checkout-card { padding: 24px 18px 22px; border-radius: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .phone-group { grid-template-columns: 110px 1fr; }
  .trust-mini-row { grid-template-columns: 1fr 1fr; }
  .step-num { width: 32px; height: 32px; font-size: 16px; }
  .step-title { font-size: 19px; }
  .order-row { flex-direction: column; gap: 10px; align-items: flex-start; }
  .order-price { flex-direction: row; align-items: baseline; gap: 10px; }
  .order-price .now { font-size: 22px; }
  .pay-btn { font-size: 15px; padding: 14px 22px; }
  .pay-bar { padding: 12px 14px 14px; }
}

/* === Accepted payment methods row ============================= */
.pay-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 0;
  border: none;
}
.pay-methods-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.5);
  font-weight: 600;
}
.pay-methods-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 480px;
}
.pay-methods .pm {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  background: #FFFFFF;
  border: 1px solid rgba(184, 230, 168, 0.32);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 6px -2px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.pay-methods .pm svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 56px;
}

@media (max-width: 520px) {
  .pay-methods-list {
    grid-template-columns: repeat(3, 1fr);
    max-width: 280px;
    gap: 6px;
  }
  .pay-methods .pm { height: 32px; }
}

/* === Form error banner ====================================== */
.checkout-error {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(184, 92, 80, 0.12);
  border: 1px solid rgba(184, 92, 80, 0.55);
  border-radius: 8px;
  font-family: "Newsreader", serif;
  font-size: 14px;
  color: #f3c8c0;
  text-align: center;
}

/* === Disabled state on pay button =========================== */
.pay-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}
