/* ============================================================================
   qurban.css — Halaman Qurban Companion (fitur-kurban.md)
   Palet mengikuti design system muslimhub.css (deep green + emas).
   ========================================================================== */

/* ---- Hero phase banner ---------------------------------------------------- */
.qb-hero {
  border-radius: 18px;
  padding: 22px 18px;
  color: #fff;
  background: linear-gradient(135deg, #0b4a3a, #116350 55%, #0e7a55);
  position: relative;
  overflow: hidden;
}
.qb-hero::after {
  content: '';
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(247, 163, 51, .25), transparent 70%);
  pointer-events: none;
}
.qb-hero.eid {
  background: linear-gradient(135deg, #6d4400, #b8860b 55%, #d99a1f);
}
.qb-hero .qb-phase {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .18);
  padding: 4px 10px;
  border-radius: 999px;
}
.qb-hero h2 { margin: 10px 0 4px; font-size: 22px; }
.qb-hero p { margin: 0; opacity: .92; font-size: 13.5px; }
.qb-hero .hijri { font-size: 12.5px; opacity: .85; margin-top: 6px; }

/* ---- Countdown Idul Adha --------------------------------------------------- */
.qb-count {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.qb-count .cell {
  background: rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.qb-count b { display: block; font-size: 22px; }
.qb-count span { font-size: 11px; opacity: .85; }

/* ---- Kartu section --------------------------------------------------------- */
.qb-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6e2d8);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.qb-card > h3 {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qb-arab {
  font-size: 24px;
  line-height: 2;
  text-align: center;
  direction: rtl;
  margin: 6px 0;
}
.qb-latin { text-align: center; font-style: italic; color: var(--muted, #6b7); font-size: 13px; }
.qb-arti { text-align: center; font-size: 13.5px; margin-top: 4px; }
.qb-ref { text-align: center; font-size: 12px; color: var(--muted, #7a8); margin-top: 6px; }

/* ---- Daftar hewan ---------------------------------------------------------- */
.qb-animal {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 4px;
  border-top: 1px dashed var(--line, #eee);
}
.qb-animal:first-of-type { border-top: 0; }
.qb-animal .emo { font-size: 30px; text-align: center; }
.qb-animal b { font-size: 14.5px; }
.qb-animal .desc { font-size: 12.5px; color: var(--muted, #677); }
.qb-animal ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }
.qb-animal ul li { margin: 2px 0; }

/* ---- Tata cara langkah ------------------------------------------------------ */
.qb-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px dashed var(--line, #eee);
}
.qb-step:first-of-type { border-top: 0; }
.qb-step .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent, #0b4a3a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.qb-step b { font-size: 14px; }
.qb-step p { margin: 3px 0 0; font-size: 13px; color: var(--text2, #455); }

/* ---- Pembagian daging (bagan bar) ------------------------------------------- */
.qb-split-bar {
  display: flex;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0 10px;
}
.qb-split-bar .seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 60px;
}
.qb-split-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.qb-split-list li { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.qb-split-list .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }

/* ---- Progress dana ---------------------------------------------------------- */
.qb-progress {
  height: 12px;
  background: var(--line-soft, #eef1ee);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 4px;
}
.qb-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #0b4a3a, #12966c);
  border-radius: 999px;
  transition: width .4s ease;
}

/* ---- Checklist -------------------------------------------------------------- */
.qb-check { list-style: none; margin: 0; padding: 0; }
.qb-check li { margin: 4px 0; }
.qb-check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  background: var(--line-soft, #f5f4ef);
}
.qb-check label:has(input:checked) {
  background: color-mix(in srgb, var(--accent, #0b4a3a) 12%, transparent);
  text-decoration: line-through;
  opacity: .75;
}
.qb-check input { width: 18px; height: 18px; accent-color: var(--accent, #0b4a3a); margin-top: 1px; }

/* ---- Wizard planner ---------------------------------------------------------- */
.qb-wizard fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.qb-wizard legend { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.qb-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qb-opts.four { grid-template-columns: repeat(4, 1fr); }
.qb-opts label {
  border: 1.5px solid var(--line, #ddd);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  background: var(--card, #fff);
}
.qb-opts label:has(input:checked) {
  border-color: var(--accent, #0b4a3a);
  background: color-mix(in srgb, var(--accent, #0b4a3a) 10%, var(--card, #fff));
  font-weight: 600;
}
.qb-opts input { display: none; }
.qb-opts .emo { font-size: 22px; display: block; margin-bottom: 4px; }
.qb-input, .qb-input select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line, #ddd);
  border-radius: 10px;
  font-size: 14px;
  background: var(--card, #fff);
  color: inherit;
  margin-top: 4px;
}
.qb-part-row { display: grid; grid-template-columns: 1fr 110px 34px; gap: 8px; margin: 6px 0; }
.qb-part-row input { padding: 8px 10px; border: 1.5px solid var(--line, #ddd); border-radius: 10px; font-size: 13px; background: var(--card, #fff); color: inherit; }
.qb-part-row .rm {
  border: 0;
  background: #f2dede;
  color: #a33;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

/* ---- FAQ accordion ------------------------------------------------------------ */
.qb-faq details { border-top: 1px dashed var(--line, #eee); }
.qb-faq details:first-child { border-top: 0; }
.qb-faq summary {
  cursor: pointer;
  padding: 11px 4px;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.qb-faq summary::-webkit-details-marker { display: none; }
.qb-faq summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted, #889);
}
.qb-faq details[open] summary::after { content: '−'; }
.qb-faq .a { font-size: 13px; color: var(--text2, #456); padding: 0 4px 12px; }

/* ---- Reminder list ------------------------------------------------------------ */
.qb-remind { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.qb-remind li { padding: 8px 10px; border-radius: 10px; background: #fff7e8; color: #7a5b16; margin: 6px 0; }

/* ---- CTA besar ------------------------------------------------------------------ */
.qb-cta {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 13px;
  background: var(--accent, #0b4a3a);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}
.qb-cta.ghost {
  background: transparent;
  border: 1.5px solid var(--accent, #0b4a3a);
  color: var(--accent, #0b4a3a);
}
.qb-cta.danger { background: #b03a2e; }

@media (max-width: 480px) {
  .qb-opts.four { grid-template-columns: repeat(2, 1fr); }
  .qb-arab { font-size: 21px; }
}

/* ---- Kartu musim di beranda --------------------------------------------- */
.qb-season-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0b4a3a, #0e7a55);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
}
.qb-season-emo { font-size: 28px; flex: none; }
.qb-season-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qb-season-body b { font-size: 14.5px; }
.qb-season-body span:last-child { font-size: 12.5px; opacity: .9; }
.qb-season-cta { font-size: 13px; font-weight: 700; flex: none; }
