/* =================================================================
   Groeniek - Pricing Calculator Component Styles
   ================================================================= */

:root {
  --pc-navy:       #1B2A4A;
  --pc-navy-hover: #2d3f65;
  --pc-green:      #2e6b4f;
  --pc-green-hover:#1e4d38;
  --pc-amber:      #c8860a;
  --pc-amber-bg:   #fef9ee;
  --pc-gold:       #f0a500;
}

/* ---------- Main installation type tabs ---------- */

.pc-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
}

.pc-tab {
  flex: 1;
  padding: 14px 12px;
  background: #fff;
  border: none;
  border-right: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
  line-height: 1.2;
  min-height: 44px;
}

.pc-tab:last-child { border-right: none; }
.pc-tab:hover { color: var(--fg); background: hsl(45 15% 96%); }
.pc-tab.active { background: var(--pc-navy); color: #fff; }

/* ---------- Sub-type tabs (warmtepomp / boiler / ventilatie) ---------- */

.pc-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pc-subtab {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
  min-height: 36px;
}

.pc-subtab:hover { border-color: var(--pc-navy); color: var(--pc-navy); }

.pc-subtab.active {
  background: var(--pc-navy);
  border-color: var(--pc-navy);
  color: #fff;
}

/* ---------- Controls row (toggles) ---------- */

.pc-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pc-toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-toggle-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.pc-toggle {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.pc-toggle-opt {
  padding: 7px 14px;
  background: #fff;
  border: none;
  border-right: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
  line-height: 1;
  min-height: 34px;
  white-space: nowrap;
}

.pc-toggle-opt:last-child { border-right: none; }
.pc-toggle-opt:hover { background: hsl(45 15% 95%); color: var(--fg); }
.pc-toggle-opt.active { background: var(--pc-navy); color: #fff; }

/* ---------- Airco unit counters ---------- */

.pc-airco {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--pc-amber-bg);
  border: 1px solid hsl(38 60% 85%);
  border-radius: 6px;
}

.pc-counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-counter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  min-width: 88px;
}

.pc-counter-ctrl {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.pc-counter-btn {
  width: 40px;
  background: #fff;
  border: none;
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
}

.pc-counter-btn:hover:not(:disabled) { background: hsl(45 15% 95%); color: var(--fg); }
.pc-counter-btn:disabled { color: var(--border); cursor: default; }

.pc-counter-val {
  width: 44px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-airco-note {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-amber);
  margin-top: 4px;
}

/* ---------- Category intro ---------- */

.pc-intro {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.pc-intro h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--pc-navy);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.pc-intro p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 760px;
}

.pc-intro-meta {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pc-intro-meta-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.pc-intro-meta-item strong { color: var(--fg); font-weight: 700; }

/* ---------- Pricing grid ---------- */

.pc-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

/* ---------- Tier card ---------- */

.pc-tier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pc-tier.pc-tier-featured {
  border: 2px solid var(--pc-navy);
}

/* Badge */
.pc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.pc-badge-popular {
  background: var(--pc-gold);
  color: var(--groeniek-blue-dark, #0f1f3d);
}

.pc-badge-allin {
  background: var(--pc-navy);
  color: #fff;
}

/* Tier name */
.pc-tier h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

/* Price block */
.pc-price-block {
  margin: 14px 0 18px;
}

.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
}

.pc-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}

.pc-price-per {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}

.pc-price-equiv {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.pc-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  background: #dcfce7;
  color: var(--pc-green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1.3;
}

.pc-yearly-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 10px;
  background: var(--pc-amber-bg);
  border: 1px solid hsl(38 60% 82%);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pc-amber);
  line-height: 1.4;
}

.pc-yearly-note svg { flex-shrink: 0; margin-top: 1px; }

/* Feature list */
.pc-features {
  list-style: none;
  margin-bottom: 18px;
  flex-grow: 1;
}

.pc-features li {
  font-size: 13px;
  padding: 7px 0;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.pc-features li:last-child { border-bottom: none; }

.pc-check {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--pc-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pc-dash {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-weight: 600;
  font-size: 14px;
}

/* Condition note */
.pc-condition {
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* CTA area */
.pc-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.pc-btn-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: var(--pc-navy);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background .15s;
  text-align: center;
}

.pc-btn-navy:hover { background: var(--pc-navy-hover); color: #fff; }

.pc-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: border-color .15s, color .15s;
  text-align: center;
}

.pc-btn-outline:hover { border-color: var(--pc-navy); color: var(--pc-navy); }

.pc-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--pc-green);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background .15s;
  text-align: center;
}

.pc-btn-wa:hover { background: var(--pc-green-hover); color: #fff; }

.pc-card-foot {
  font-size: 11px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* ---------- Multi-device discount note ---------- */

.pc-multi-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pc-multi-note-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--pc-navy);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-multi-note-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.pc-multi-note-body p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.pc-multi-note-body p:last-child {
  margin-bottom: 0;
  margin-top: 8px;
}

.pc-multi-note-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}

.pc-multi-note-body ul li {
  font-size: 13px;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pc-multi-note-body ul li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pc-green);
  position: relative;
  top: -1px;
}

.pc-multi-note-body ul li strong { color: var(--fg); font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .pc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .pc-tab { border-right: none; border-bottom: 1px solid var(--border); }
  .pc-tab:nth-child(odd) { border-right: 1px solid var(--border); }
  .pc-tab:nth-child(5) { grid-column: 1 / -1; border-bottom: none; }

  .pc-pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pc-controls { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pc-airco { flex-direction: column; gap: 14px; }
  .pc-multi-note { flex-direction: column; }
}
