/* BDStall — pages/ac-tools.css  (BTU + AC Bill calculators) */

.act-page {
  background: #F7F6F2;
  min-height: 60vh;
  padding: 24px 16px 56px;
}

.act-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ── */
.act-header { margin-bottom: 20px; }

.act-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.act-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #EAF8EE;
  border: 1px solid #B9EDD0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #149A49;
  margin-top: 2px;
}

.act-icon-wrap--orange {
  background: #FFF3E0;
  border-color: #FFD080;
  color: #D97000;
}

.act-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1C1C1A;
  margin: 0 0 5px;
}

.act-subtitle {
  font-size: 0.9375rem;
  color: #6B6558;
  margin: 0;
  line-height: 1.5;
}

/* ── Layout ── */
.act-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

@media (max-width: 860px) { .act-layout { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   FORM CARD
   ══════════════════════════════════════ */
.act-form-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #E8E8E4;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 480px) { .act-form-card { padding: 16px; gap: 18px; } }

.act-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1C1C1A;
  margin-bottom: 10px;
}

.act-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #149A49;
  color: white;
  font-size: 0.6875rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Option grids ── */
.act-options { display: grid; gap: 8px; }
.act-options--2col    { grid-template-columns: repeat(2, 1fr); }
.act-options--3col    { grid-template-columns: repeat(3, 1fr); }
.act-options--grid4   { grid-template-columns: repeat(4, 1fr); }
.act-options--grid5   { grid-template-columns: repeat(5, 1fr); }
.act-options--grid6   { grid-template-columns: repeat(6, 1fr); }
.act-options--hours   { grid-template-columns: repeat(5, 1fr); gap: 6px; }

@media (max-width: 640px) {
  .act-options--grid4  { grid-template-columns: repeat(4, 1fr); }
  .act-options--grid5  { grid-template-columns: repeat(3, 1fr); }
  .act-options--grid6  { grid-template-columns: repeat(3, 1fr); }
  .act-options--hours  { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 380px) {
  .act-options--grid4 { grid-template-columns: repeat(2, 1fr); }
  .act-options--hours { grid-template-columns: repeat(3, 1fr); }
}

/* ── Option card ── */
.act-opt { cursor: pointer; }

.act-opt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 2px solid #E8E8E4;
  background: #FAFAF9;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
  user-select: none;
  min-height: 56px;
}

.act-opt-card:hover { border-color: #B9EDD0; background: #F4FBF7; }

.act-opt-card.selected {
  border-color: #149A49;
  background: #F4FBF7;
  box-shadow: 0 0 0 3px rgba(20,154,73,0.12);
}

.act-opt-card--tall   { padding: 14px 10px; gap: 6px; min-height: 80px; }
.act-opt-card--compact { padding: 8px 4px; min-height: 48px; }

.act-opt-title { font-size: 0.8125rem; font-weight: 700; color: #1C1C1A; line-height: 1.2; }
.act-opt-sub   { font-size: 0.6875rem; color: #9B978E; line-height: 1; }
.act-opt-icon  { font-size: 1.5rem; line-height: 1; }
.act-opt-icon-sm { font-size: 1.1rem; line-height: 1; }
.act-opt-card.selected .act-opt-title { color: #0D7A3E; }

/* ══════════════════════════════════════
   RESULT CARD
   ══════════════════════════════════════ */
.act-result-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #E8E8E4;
  padding: 28px 24px;
  text-align: center;
  position: sticky;
  top: 80px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) { .act-result-card { position: static; min-height: 200px; } }

/* Idle */
.act-result-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.act-result-idle-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #F0EFE9;
  border: 1px solid #E0DED8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0ACA4;
}

.act-result-idle-text {
  font-size: 0.875rem;
  color: #9B978E;
  max-width: 240px;
  line-height: 1.5;
  margin: 0;
}

.act-progress { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.act-progress-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #E0DED8;
  transition: background 0.2s;
}
.act-progress-dot.filled { background: #149A49; }

/* Show state */
.act-result-show {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.act-result-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9B978E;
}

.act-result-main {
  font-size: 3rem;
  font-weight: 900;
  color: #149A49;
  line-height: 1;
  letter-spacing: -0.02em;
}

.act-result-sub {
  font-size: 1rem;
  font-weight: 600;
  color: #6B6558;
}

.act-result-divider {
  width: 40px;
  height: 2px;
  background: #ECEAE4;
  border-radius: 2px;
  margin: 4px 0;
}

.act-result-tips {
  font-size: 0.8125rem;
  color: #6B6558;
  line-height: 1.5;
  max-width: 240px;
  margin: 0;
}

.act-disclaimer {
  font-size: 0.75rem;
  color: #B0ACA4;
  line-height: 1.5;
  max-width: 240px;
  margin: 0;
}

.act-browse-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #149A49;
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 4px;
}
.act-browse-btn:hover { background: #0D7A3E; color: white; }

/* ══════════════════════════════════════
   AC BILL — result grid
   ══════════════════════════════════════ */
.acb-bill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.acb-bill-card {
  border-radius: 10px;
  border: 2px solid #E8E8E4;
  padding: 14px 10px;
  text-align: center;
}

.acb-bill-card--regular {
  border-color: #E0DED8;
  background: #FAFAF9;
}

.acb-bill-card--inverter {
  border-color: #B9EDD0;
  background: #F4FBF7;
}

.acb-bill-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9B978E;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.acb-bill-card--inverter .acb-bill-label { color: #149A49; }

.acb-save-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  background: #149A49;
  color: white;
  border-radius: 3px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.acb-bill-amount {
  font-size: 1.75rem;
  font-weight: 900;
  color: #1C1C1A;
  line-height: 1;
  letter-spacing: -0.02em;
}

.acb-bill-card--inverter .acb-bill-amount { color: #0D7A3E; }

.acb-bill-unit {
  font-size: 0.6875rem;
  color: #9B978E;
  margin-top: 3px;
}

.acb-saving-note {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0D7A3E;
  margin: 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   INFO SECTION
   ══════════════════════════════════════ */
.act-info {
  background: white;
  border-radius: 12px;
  border: 1px solid #E8E8E4;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 600px) { .act-info { padding: 16px; } }

.act-info-text { flex: 1; min-width: 260px; }

.act-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1C1C1A;
  margin: 0 0 10px;
}

.act-info-text p {
  font-size: 0.875rem;
  color: #6B6558;
  line-height: 1.7;
  margin: 0 0 8px;
}
.act-info-text p:last-child { margin-bottom: 0; }

.act-info-bn {
  color: #9B978E !important;
  font-size: 0.8125rem !important;
  border-top: 1px dashed #E8E8E4;
  padding-top: 8px;
  margin-top: 8px !important;
}

.act-info-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.act-info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #F7F6F2;
  border: 1px solid #E0DED8;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1C1C1A;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.act-info-link:hover { background: #EAF8EE; border-color: #B9EDD0; color: #0D7A3E; }
