/* ============================================================
   Bitumen Calculator WordPress Plugin — Scoped Styles
   All selectors prefixed with .bc-wrap
   ============================================================ */

.bc-wrap *, .bc-wrap *::before, .bc-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  max-width: 100%;
}

/* ── HERO ──────────────────────────────────────────────────── */
.bc-hero {
  background: #1e293b;
  color: #fff;
  padding: 56px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bc-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(251,146,60,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.bc-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(251,146,60,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.bc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251,146,60,0.15);
  border: 1px solid rgba(251,146,60,0.4);
  color: #fb923c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.bc-badge-dot {
  width: 7px; height: 7px;
  background: #fb923c;
  border-radius: 50%;
  animation: bc-pulse 2s infinite;
}
@keyframes bc-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}
.bc-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.bc-hero h1 span { color: #fb923c; }
.bc-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.bc-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fb923c;
  color: #431907;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
  position: relative;
  z-index: 1;
}
.bc-hero-btn:hover { background: #f97316; transform: translateY(-1px); }
.bc-hero-btn svg { width: 18px; height: 18px; transition: transform .15s; }
.bc-hero-btn:hover svg { transform: translateX(3px); }

/* ── MAIN CONTENT WRAPPER ──────────────────────────────────── */
.bc-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── CALCULATOR SECTION ─────────────────────────────────────── */
.bc-calc-section {
  padding: 48px 20px;
  background: #fff;
}
.bc-calc-section .bc-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .bc-calc-section .bc-content {
    grid-template-columns: 420px 1fr;
    align-items: start;
  }
}

/* ── UNIT TOGGLE ────────────────────────────────────────────── */
.bc-unit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.bc-unit-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bc-unit-toggle {
  display: flex;
  background: #1e293b;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.bc-unit-btn {
  padding: 6px 18px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.bc-unit-btn.bc-active {
  background: #fb923c;
  color: #431907;
}
.bc-unit-btn:not(.bc-active):hover { color: #e2e8f0; }

/* ── INPUT CARD ─────────────────────────────────────────────── */
.bc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.bc-card-top-bar {
  height: 4px;
  background: #fb923c;
}
.bc-card-head {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 24px;
}
.bc-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 16px;
}
.bc-card-title svg { color: #fb923c; }
.bc-card-body { padding: 24px; }

/* ── SECTION WITHIN CARD ─────────────────────────────────────── */
.bc-sec {
  margin-bottom: 28px;
}
.bc-sec:last-child { margin-bottom: 0; }
.bc-sec-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.bc-sec-label svg { width: 14px; height: 14px; }

/* ── GRID ───────────────────────────────────────────────────── */
.bc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bc-span2 { grid-column: span 2; }

/* ── FIELD ──────────────────────────────────────────────────── */
.bc-field { display: flex; flex-direction: column; gap: 5px; }
.bc-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.bc-input-wrap { position: relative; }
.bc-input {
  width: 100%;
  padding: 9px 40px 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -moz-appearance: textfield;
}
.bc-input::-webkit-outer-spin-button,
.bc-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bc-input:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251,146,60,.12);
}
.bc-input-unit {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  pointer-events: none;
}
.bc-input-prefix {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
}
.bc-input.has-prefix { padding-left: 28px; }

.bc-select {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.bc-select:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251,146,60,.12);
}

/* ── COST TOGGLE ────────────────────────────────────────────── */
.bc-cost-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}
.bc-cost-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bc-toggle-switch {
  width: 40px; height: 22px;
  background: #e2e8f0;
  border-radius: 999px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.bc-toggle-switch.bc-on { background: #fb923c; }
.bc-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bc-toggle-switch.bc-on::after { transform: translateX(18px); }

.bc-cost-body {
  display: none;
  padding-top: 14px;
}
.bc-cost-body.bc-visible { display: block; }
.bc-cost-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

/* ── RESULTS COLUMN ─────────────────────────────────────────── */
.bc-results-col { display: flex; flex-direction: column; gap: 14px; }

.bc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  border: 2px dashed #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  min-height: 320px;
}
.bc-empty-icon {
  width: 72px; height: 72px;
  background: rgba(251,146,60,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.bc-empty-icon svg { color: #fb923c; width: 36px; height: 36px; }
.bc-empty-state h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.bc-empty-state p { font-size: 14px; color: #64748b; max-width: 280px; }

/* primary result card */
.bc-result-primary {
  background: #1e293b;
  color: #fff;
  border-radius: 14px;
  padding: 28px 28px;
  position: relative;
  overflow: hidden;
  display: none;
}
.bc-result-primary::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(251,146,60,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.bc-rp-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-rp-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.bc-rp-num {
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.04em;
}
.bc-rp-unit { font-size: 1.3rem; font-weight: 700; color: #fb923c; }

/* secondary 2x2 grid */
.bc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bc-result-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 18px;
}
.bc-rc-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bc-rc-label svg { width: 13px; height: 13px; }
.bc-rc-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.bc-rc-num {
  font-size: 1.6rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.bc-rc-unit { font-size: 13px; font-weight: 600; color: #94a3b8; }

/* cost result */
.bc-result-cost {
  background: #fb923c;
  color: #431907;
  border-radius: 14px;
  padding: 22px 24px;
  display: none;
}
.bc-rc-cost-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-rc-cost-num {
  font-size: 2.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.bc-hiw {
  padding: 64px 20px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.bc-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: #0f172a;
  margin-bottom: 10px;
}
.bc-section-sub {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 40px;
}
.bc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}
.bc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bc-step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fb923c;
  color: #fb923c;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(251,146,60,.2);
}
.bc-step h4 { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.bc-step p  { font-size: 13px; color: #64748b; }

.bc-formula-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .bc-formula-grid { grid-template-columns: 1fr 1fr; }
}
.bc-formula-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
}
.bc-formula-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-fx-badge {
  width: 28px; height: 28px;
  background: rgba(251,146,60,.12);
  border-radius: 6px;
  color: #fb923c;
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bc-formula-list { list-style: none; }
.bc-formula-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.bc-formula-list li:last-child { border-bottom: 0; }
.bc-formula-list .bc-fl-label { color: #64748b; }
.bc-formula-list .bc-fl-val { font-family: monospace; font-weight: 700; font-size: 12px; color: #0f172a; }
.bc-formula-card p { font-size: 13px; color: #64748b; line-height: 1.7; margin-bottom: 10px; }

/* ── WHAT IS BITUMEN ────────────────────────────────────────── */
.bc-what {
  padding: 64px 20px;
  background: #fff;
}
.bc-what-intro {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 48px;
}
.bc-mix-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #0f172a;
  margin-bottom: 24px;
}
.bc-mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.bc-mix-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow .2s;
}
.bc-mix-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.bc-mix-card h4 { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.bc-mix-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.bc-mix-row:last-child { border-bottom: 0; }
.bc-mix-row span:first-child { color: #64748b; }
.bc-mix-row span:last-child { font-weight: 700; font-family: monospace; }
.bc-mix-row .bc-highlight { color: #fb923c; }
.bc-mix-best {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* ── FAQs ───────────────────────────────────────────────────── */
.bc-faq {
  padding: 64px 20px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}
.bc-faq-list {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.bc-faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.bc-faq-item:last-child { border-bottom: 0; }
.bc-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: background .15s;
}
.bc-faq-q:hover { background: #f8fafc; }
.bc-faq-chevron {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform .25s;
}
.bc-faq-item.bc-open .bc-faq-chevron { transform: rotate(180deg); }
.bc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.bc-faq-a-inner {
  padding: 0 24px 18px;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
}
.bc-faq-a-inner ul {
  margin: 8px 0 0 20px;
}
.bc-faq-a-inner li { margin-bottom: 4px; }


/* ── RESPONSIVE TWEAKS ──────────────────────────────────────── */
@media (max-width: 480px) {
  .bc-grid-2 { grid-template-columns: 1fr; }
  .bc-span2 { grid-column: span 1; }
  .bc-result-grid { grid-template-columns: 1fr; }
  .bc-cost-grid { grid-template-columns: 1fr; }
}
