/* Tax Deed Wealth Challenge — shared styles for the static (Cloudflare Pages) build */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0a0a0a; color: #fff; font-family: 'Inter', -apple-system, sans-serif; overflow-x: hidden; }
a { text-decoration: none; }

/* Page background used by order + thank-you pages (replaces the GHL page bg) */
body.tdwc-order {
  background:
    radial-gradient(ellipse 60% 420px at 30% 0%, rgba(215,252,0,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 380px at 75% 0%, rgba(215,252,0,0.07) 0%, transparent 70%),
    #0a0a0a;
  background-repeat: no-repeat;
}
.tdwc-order-bottom *, .tdwc-order-bottom *::before, .tdwc-order-bottom *::after { margin: 0; padding: 0; }
.tdwc-order-bottom { font-family: 'Inter', -apple-system, sans-serif; }

/* ---------- Opt-in popup form (replica of the GHL form) ---------- */
.tdwc-of { margin-top: 8px; padding: 22px 18px 24px; background: #121212; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; box-shadow: 0 4px 0 rgba(255,255,255,0.04); }
.tdwc-of-label { display: block; font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.tdwc-of-label span { color: #d7fc00; }
.tdwc-of-input {
  display: block; width: 100%; height: 52px; margin: 0 0 22px; padding: 0 15px;
  background: #1c1c1c; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px;
  color: #fff; font: 400 16px 'Inter', sans-serif; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.tdwc-of-input::placeholder { color: rgba(255,255,255,0.4); }
.tdwc-of-input:focus { border-color: #d7fc00; box-shadow: 0 0 0 3px rgba(215,252,0,0.12); }
.tdwc-of-email { position: relative; }
.tdwc-of-email svg { position: absolute; left: 13px; top: 18px; pointer-events: none; }
.tdwc-of-email .tdwc-of-input { padding-left: 37px; }
.tdwc-of-submit {
  display: block; width: 100%; height: 55px; margin-top: 10px; border: 0; border-radius: 100px;
  background: #d7fc00; color: #0a0a0a; font: 800 13px 'Inter', sans-serif; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.tdwc-of-submit:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(215,252,0,0.35); }
.tdwc-of-submit:disabled { opacity: .75; cursor: wait; }
.tdwc-of-demo { margin: 14px 0 0; text-align: center; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* ---------- Checkout (replica of the GHL order form + Stripe element) ---------- */
.tdwc-co-section { padding: 0 24px 72px; background: #0a0a0a; }
.tdwc-co {
  max-width: 560px; margin: 0 auto; padding: 44px 40px 48px;
  background: #141414; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.tdwc-co-title { margin: 0; text-align: center; font: 400 26px 'Bebas Neue', sans-serif; letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.tdwc-co-sub { margin: 6px 0 32px; text-align: center; font-size: 11px; color: rgba(255,255,255,0.6); }
.tdwc-co-input {
  display: block; width: 100%; height: 44px; margin: 0 0 20px; padding: 0 13px;
  background: #0d0d0d; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px;
  color: #fff; font: 400 14px 'Inter', sans-serif; outline: none;
}
.tdwc-co-input::placeholder { color: rgba(255,255,255,0.4); }
.tdwc-co-input:focus { border-color: #d7fc00; }
.tdwc-co-paylabel { display: flex; align-items: center; gap: 20px; margin: 12px 0 34px; }
.tdwc-co-paylabel span { font: 400 14px 'Bebas Neue', sans-serif; letter-spacing: 1.5px; color: #d7fc00; text-transform: uppercase; }
.tdwc-co-paylabel i { flex: 1; height: 1px; background: rgba(255,255,255,0.5); }
.tdwc-co-thead, .tdwc-co-item, .tdwc-co-srow { display: grid; grid-template-columns: 1fr 70px 80px; align-items: center; }
.tdwc-co-thead { padding: 0 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.tdwc-co-thead span:nth-child(n+2) { text-align: right; }
.tdwc-co-item {
  grid-template-columns: 22px 1fr 50px 80px; gap: 6px; margin: 20px 8px 0; padding: 18px 14px;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; cursor: pointer;
}
.tdwc-co-item input { accent-color: #2563eb; width: 14px; height: 14px; }
.tdwc-co-item-name { font: 400 14px 'Bebas Neue', sans-serif; letter-spacing: .8px; color: #fff; }
.tdwc-co-item-qty { text-align: center; font-size: 11px; color: rgba(255,255,255,0.35); }
.tdwc-co-item-price { text-align: right; font: 400 19px 'Bebas Neue', sans-serif; color: #d7fc00; letter-spacing: .5px; }
.tdwc-co-divider { display: flex; align-items: center; gap: 4px; margin: 18px 8px 12px; font-size: 11px; color: #fff; white-space: nowrap; }
.tdwc-co-divider::before, .tdwc-co-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.5); }
.tdwc-co-summary { margin: 0 8px; padding: 6px 16px 20px; background: #0d0d0d; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; }
.tdwc-co-srow { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 11px; font-weight: 600; color: #fff; }
.tdwc-co-srow span:nth-child(2) { text-align: center; }
.tdwc-co-srow span:nth-child(3) { text-align: right; }
.tdwc-co-shead { padding: 14px 0 20px; font: 400 12px 'Bebas Neue', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.tdwc-co-shead span:first-child { text-align: center; }
.tdwc-co-total { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.tdwc-co-total span:first-child { font: 400 14px 'Bebas Neue', sans-serif; letter-spacing: .8px; text-transform: uppercase; }
.tdwc-co-total span:last-child { font: 400 24px 'Bebas Neue', sans-serif; color: #d7fc00; letter-spacing: .5px; }

.tdwc-co-tabs { display: grid; grid-template-columns: repeat(4, 1fr) 30px; gap: 6px; margin: 20px 8px 6px; }
.tdwc-co-tab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 46px;
  padding: 6px 9px; background: #fff; border: 1px solid #e0e0e0; border-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  font: 500 11px 'Inter', sans-serif; color: #30313d; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden;
}
.tdwc-co-tab.active { border: 2px solid #0570de; color: #0570de; }
.tdwc-co-tab-more { align-items: center; padding: 4px 0; }
.tdwc-co-ico { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 3px; background: #ccc; color: #fff; font-size: 9px; font-weight: 800; }
.tdwc-co-ico-txt { width: auto; background: none; color: #f90; font-size: 8px; padding: 0; }

.tdwc-co-flabel { display: block; margin: 8px 8px 4px; font-size: 11px; color: rgba(255,255,255,0.32); }
.tdwc-co-wfield { position: relative; margin: 0 8px; background: #fff; border: 1px solid #e0e0e0; border-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.tdwc-co-wfield input, .tdwc-co-wfield select {
  width: 100%; height: 38px; padding: 0 10px; border: 0; background: transparent; outline: none;
  font: 400 13px 'Inter', sans-serif; color: #30313d; border-radius: 5px; appearance: auto;
}
.tdwc-co-wfield input::placeholder { color: #8a8f99; }
.tdwc-co-wfield:focus-within { border-color: #0570de; box-shadow: 0 0 0 3px rgba(5,112,222,0.25); }
.tdwc-co-brands { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 3px; pointer-events: none; }
.tdwc-co-brands b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 16px; border-radius: 2px; color: #fff; font-size: 6px; font-weight: 800; }
.tdwc-co-grid { display: grid; grid-template-columns: 1fr 1fr; }
.tdwc-co-grid > div { min-width: 0; }
.tdwc-co-grid > div:nth-child(odd) .tdwc-co-wfield, .tdwc-co-grid > div:nth-child(odd) .tdwc-co-flabel { margin-right: 4px; }
.tdwc-co-grid > div:nth-child(even) .tdwc-co-wfield, .tdwc-co-grid > div:nth-child(even) .tdwc-co-flabel { margin-left: 4px; }
.tdwc-co-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 16px); height: 42px; margin: 16px 8px 0;
  border: 0; border-radius: 4px; background: #d7fc00; color: #0a0a0a; font: 500 14px 'Inter', sans-serif; cursor: pointer;
  transition: box-shadow .2s ease;
}
.tdwc-co-submit:hover { box-shadow: 0 0 28px rgba(215,252,0,0.35); }
.tdwc-co-submit:disabled { opacity: .8; cursor: wait; }
.tdwc-co-demo { margin: 14px 0 0; text-align: center; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.3); }

@media (max-width: 560px) {
  .tdwc-co-section { padding: 0 16px 56px; }
  .tdwc-co { padding: 32px 14px 36px; }
  .tdwc-co-tabs { grid-template-columns: repeat(2, 1fr); }
  .tdwc-co-tab-more { display: none; }
}

/* ---------- Thank-you demo toast ---------- */
.tdwc-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 20px; background: #141414; border: 1px solid rgba(215,252,0,0.4); border-radius: 100px;
  color: #d7fc00; font: 700 11px 'Inter', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; text-align: center;
  transition: opacity .25s ease, transform .25s ease;
}
.tdwc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* VIP curriculum recap: stack on phones (GHL handled this in its mobile editor) */
@media (max-width: 640px) {
  .tdwc-recap-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .tdwc-recap-line { display: none; }
}
