/* assets/css/checkout.css
   Checkout V2 — PyDenBarber
   - Visual premium, limpo e conversivo
   - Compatível com Bootstrap + seu template (main.css)
*/

/* =========================
  Tokens / base
========================= */
:root{
  --ck-radius: 18px;
  --ck-radius-sm: 12px;

  --ck-border: rgba(0,0,0,.10);
  --ck-border-soft: rgba(0,0,0,.06);

  --ck-bg: #ffffff;
  --ck-bg-soft: rgba(0,0,0,.02);

  --ck-text: rgba(0,0,0,.86);
  --ck-muted: rgba(0,0,0,.62);

  --ck-primary: #0d6efd;
  --ck-primary-soft: rgba(13,110,253,.08);

  --ck-shadow: 0 10px 24px rgba(0,0,0,.10);
  --ck-shadow-soft: 0 8px 18px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

.section-subtitle { color: rgba(255, 255, 255, .78); }
.form-note { font-size: .92rem; color: var(--ck-muted); }
.smallcaps { font-variant: all-small-caps; letter-spacing: .08em; }
.list-tight li { margin-bottom: 6px; }
.list-tight i { color: rgba(25,135,84,.95); }

/* Reduce hero height a bit */
.hero-checkout { min-height: 56vh; }

/* =========================
  Badges
========================= */
.badge-soft{
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);
  color: rgba(0,0,0,.76);
}

.badge-discount{
  background: rgba(25,135,84,.14);
  color: #198754;
  border: 1px solid rgba(25,135,84,.32);
}

/* =========================
  Cards / wrappers
========================= */
.wizard-wrap{
  border-radius: var(--ck-radius);
  border: 1px solid var(--ck-border);
  background: var(--ck-bg);
  padding: 18px;
}

.wizard-wrap hr{
  border-top: 1px solid var(--ck-border-soft);
  opacity: 1;
}

.checkout-box{
  padding: 14px;
  background: var(--ck-bg-soft);
  border: 1px solid var(--ck-border-soft);
  border-radius: var(--ck-radius-sm);
}

/* Sticky summary (right column) */
.builder-sticky{
  position: sticky;
  top: 92px;
}

/* =========================
  Stepper buttons (top)
========================= */
#stepBtn1, #stepBtn2, #stepBtn3, #stepBtn4{
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

#stepBtn2[disabled],
#stepBtn3[disabled],
#stepBtn4[disabled]{
  opacity: .55;
  cursor: not-allowed;
}

/* =========================
  Templates: Plan cards
========================= */
#plansGrid .wizard-wrap{
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

#plansGrid .wizard-wrap:hover{
  transform: translateY(-2px);
  box-shadow: var(--ck-shadow-soft);
  border-color: rgba(0,0,0,.14);
}

#plansGrid .wizard-wrap .btn{
  border-radius: 12px;
  font-weight: 800;
}

/* Recommended plan emphasis (Profissional) */
#plansGrid .badge-discount{
  border-radius: 999px;
  padding: 8px 12px;
}

#plansGrid .badge-soft{
  border-radius: 999px;
  padding: 7px 10px;
}

/* Cycle buttons */
#cycleMonthlyBtn, #cycleAnnualBtn{
  border-radius: 999px;
  font-weight: 800;
}

/* =========================
  Modules (grid cards)
========================= */
.module-card{
  border-radius: 16px;
  border: 1px solid var(--ck-border);
  background: var(--ck-bg);
  overflow: hidden;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.module-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--ck-shadow);
  border-color: rgba(0,0,0,.14);
}

.module-card .body{
  padding: 14px 14px 12px;
}

.module-card .title{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.module-card .title i{
  font-size: 1.25rem;
  color: rgba(13,110,253,.95);
}

.module-card h4{
  font-size: 1.02rem;
  margin: 0;
  color: var(--ck-text);
}

.module-card p{
  margin: 0 0 10px 0;
  color: var(--ck-muted);
  font-size: .95rem;
}

.module-card .meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.price-pill{
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-weight: 900;
  white-space: nowrap;
  font-size: .92rem;
}

.module-card .actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-mini{
  padding: 7px 10px;
  border-radius: 12px;
  font-weight: 900;
  font-size: .90rem;
}

/* Search input cosmetics */
#modulesSearch{
  border-radius: 14px;
}

#modulesSort{
  border-radius: 14px;
}

/* =========================
  Summary blocks (left + right)
========================= */
.summary-items{
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--ck-border-soft);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.02);
}

.summary-item{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .95rem;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,.14);
}

.summary-item:last-child{ border-bottom: none; }

.summary-line{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
}

.summary-line strong{ white-space: nowrap; }

/* Primary CTA buttons (general) */
.btn.btn-primary.btn-lg,
#btnPrimaryContinue,
#btnToStep2,
#btnToStep3,
#btnToStep4,
#btnCreateAccount{
  border-radius: 14px;
  font-weight: 900;
}

.btn.btn-outline-secondary,
.btn.btn-outline-primary{
  border-radius: 14px;
  font-weight: 800;
}

/* =========================
  Step sections spacing
========================= */
#step2, #step3, #step4{ scroll-margin-top: 110px; }

/* =========================
  Modal / toast small refinements
========================= */
.modal-content{
  border-radius: 18px;
}

.toast{
  border-radius: 14px;
  border: 1px solid var(--ck-border);
}

/* =========================
  Mobile refinements
========================= */
@media (max-width: 991.98px){
  .builder-sticky{
    position: static;
    top: auto;
  }

  .wizard-wrap{
    padding: 16px;
  }
}

@media (max-width: 575.98px){
  #stepBtn1, #stepBtn2, #stepBtn3, #stepBtn4{
    width: 100%;
    justify-content: center;
  }

  .module-card .meta{
    flex-direction: column;
    align-items: flex-start;
  }

  .module-card .actions{
    width: 100%;
    justify-content: flex-start;
  }
}

/* =========================
  Accessibility / focus
========================= */
:focus-visible{
  outline: 3px solid rgba(13,110,253,.35);
  outline-offset: 2px;
  border-radius: 12px;
}
