/* ===================================================
   Cebu Budget Calculator — Styles v1.1.0
   Font: Inter (loaded directly in shortcode HTML)
   =================================================== */

:root {
  --cbc-green:      #8DC63F;
  --cbc-green-dark: #7ab535;
  --cbc-dark:       #1B3D2E;
  --cbc-white:      #ffffff;
  --cbc-font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cbc-section,
.cbc-section *,
.cbc-section h2,
.cbc-section p,
.cbc-section span,
.cbc-section a,
.cbc-section input,
.cbc-section div {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  box-sizing: border-box;
}

.cbc-section {
  padding: 80px 0 96px;
  background-color: var(--cbc-dark);
  overflow: hidden;
}

.cbc-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.cbc-header {
  text-align: center;
  margin-bottom: 52px;
}

.cbc-eyebrow {
  display: block;
  color: var(--cbc-green);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cbc-title {
  color: var(--cbc-white) !important;
  font-size: clamp(28px, 4vw, 46px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.cbc-subtitle {
  color: rgba(255,255,255,0.55) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  max-width: 600px;
  margin: 0 auto !important;
}

/* ---- Cards ---- */
.cbc-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

/* ---- Budget display ---- */
.cbc-budget-display {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.cbc-label {
  color: rgba(255,255,255,0.45) !important;
  font-size: 12px !important;
  margin: 0 0 4px !important;
}

.cbc-budget-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cbc-usd {
  color: var(--cbc-white) !important;
  font-size: clamp(40px, 7vw, 64px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.cbc-usd-unit {
  color: rgba(255,255,255,0.35) !important;
  font-size: 17px !important;
}

.cbc-php {
  color: rgba(255,255,255,0.35) !important;
  font-size: 13px !important;
  margin: 6px 0 0 !important;
}

/* ---- Tier pill ---- */
.cbc-tier-pill {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: 1px solid;
  transition: all 0.35s ease;
  white-space: nowrap;
}

.cbc-tier-basic       { background: #f1f5f9; color: #475569 !important; border-color: #e2e8f0; }
.cbc-tier-modest      { background: #dcfce7; color: #15803d !important; border-color: #bbf7d0; }
.cbc-tier-comfortable { background: #d1fae5; color: #065f46 !important; border-color: #a7f3d0; }
.cbc-tier-premium     { background: #ecfccb; color: #3f6212 !important; border-color: #d9f99d; }
.cbc-tier-luxury      { background: #fef3c7; color: #92400e !important; border-color: #fde68a; }

/* ---- Slider ---- */
.cbc-slider-wrap { position: relative; }

.cbc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
}

.cbc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cbc-green);
  border: 3px solid var(--cbc-dark);
  box-shadow: 0 0 0 2px var(--cbc-green);
  cursor: pointer;
  transition: transform 0.15s;
}

.cbc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.cbc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cbc-green);
  border: 3px solid var(--cbc-dark);
  cursor: pointer;
}

.cbc-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255,255,255,0.28) !important;
  font-size: 11px !important;
}

/* ---- Allocation bar ---- */
.cbc-alloc-card { padding: 24px 32px; }

.cbc-alloc-label {
  color: rgba(255,255,255,0.4) !important;
  font-size: 10px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px !important;
}

.cbc-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
}

.cbc-bar-seg {
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.cbc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
}

.cbc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
  color: rgba(255,255,255,0.45) !important;
}

.cbc-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Category grid ---- */
.cbc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 900px) { .cbc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cbc-grid { grid-template-columns: 1fr; } }

.cbc-cat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 20px;
  transition: background 0.25s, border-color 0.25s;
  animation: cbcFadeUp 0.35s ease both;
}

.cbc-cat-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(141,198,63,0.3);
}

@keyframes cbcFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cbc-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cbc-cat-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbc-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(141,198,63,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cbc-cat-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--cbc-green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cbc-cat-name {
  color: var(--cbc-white) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.cbc-cat-pct {
  color: rgba(255,255,255,0.28) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.cbc-cat-desc {
  color: rgba(255,255,255,0.52) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  margin: 0 0 14px !important;
}

.cbc-cat-example {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--cbc-green) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* ---- Footer ---- */
.cbc-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 24px 28px;
}

.cbc-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.cbc-info-icon {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.28);
  flex-shrink: 0;
  margin-top: 2px;
}

.cbc-disclaimer p {
  color: rgba(255,255,255,0.32) !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

.cbc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--cbc-green);
  color: var(--cbc-dark) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 10px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.cbc-cta-btn:hover {
  background: var(--cbc-green-dark);
  color: var(--cbc-dark) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.cbc-cta-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--cbc-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .cbc-card { padding: 20px; }
  .cbc-footer-row { flex-direction: column; align-items: flex-start; }
  .cbc-cta-btn { width: 100%; justify-content: center; }
}
