/**
 * U-Home Design System — Bill -> Combo Recommender Styles
 * Dedicated stylesheet for the B1 U-Solar calculator widget
 */

/* ── HERO SECTION: SOLAR ENERGY YIELD & FINANCIAL FLOW ── */
.uh-hero-pricing-section {
  position: relative;
  background-color: #fffaf5;
  /* Kết hợp: Ánh sáng mặt trời Solar Amber + Vệt xanh sinh thái Eco Green + Sóng bức xạ quang điện */
  background-image:
    radial-gradient(ellipse at 85% -5%, rgba(255, 167, 36, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse at 12% 95%, rgba(18, 161, 80, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border-bottom: 1px solid #fed7aa40;
  overflow: hidden;
}

/* Watermark SVG biểu đồ hoàn vốn & sóng bức xạ mặt trời tinh tế góc phải */
.uh-hero-pricing-section::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -20px;
  width: 540px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 300' fill='none'%3E%3C!-- Solar Radiation Waves / Sunburst --%3E%3Ccircle cx='480' cy='20' r='140' stroke='%23ffa724' stroke-width='1.2' stroke-dasharray='4 4' opacity='0.16'/%3E%3Ccircle cx='480' cy='20' r='200' stroke='%23ffa724' stroke-width='1' stroke-dasharray='6 6' opacity='0.12'/%3E%3Ccircle cx='480' cy='20' r='260' stroke='%23ffa724' stroke-width='0.8' stroke-dasharray='8 8' opacity='0.08'/%3E%3C!-- Financial Growth / Savings ROI Wave --%3E%3Cpath d='M40 250 Q160 240 260 170 T480 80' stroke='url(%23ecoGrad)' stroke-width='2.5' opacity='0.22' stroke-linecap='round' fill='none'/%3E%3C!-- Shaded Area under ROI curve --%3E%3Cpath d='M40 250 Q160 240 260 170 T480 80 L480 290 L40 290 Z' fill='url(%23areaGrad)' opacity='0.05'/%3E%3C!-- Energy nodes / Savings Milestones --%3E%3Ccircle cx='160' cy='225' r='5' fill='%23ffa724' opacity='0.4'/%3E%3Ccircle cx='260' cy='170' r='6' fill='%2312a150' opacity='0.5'/%3E%3Ccircle cx='380' cy='118' r='6' fill='%2312a150' opacity='0.6'/%3E%3Ccircle cx='480' cy='80' r='8' fill='%23e4181f' opacity='0.7'/%3E%3Cdefs%3E%3ClinearGradient id='ecoGrad' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ffa724'/%3E%3Cstop offset='50%25' stop-color='%2312a150'/%3E%3Cstop offset='100%25' stop-color='%23e4181f'/%3E%3C/linearGradient%3E%3ClinearGradient id='areaGrad' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2312a150'/%3E%3Cstop offset='100%25' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* Nhãn watermark dùng HTML (font Be Vietnam Pro) thay cho <text> trong SVG, trùng khung 540x300 của ::after */
.uh-hero-watermark-labels {
  position: absolute;
  right: 3%;
  bottom: -20px;
  width: 540px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}

.uh-hero-watermark-label {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.uh-hero-watermark-label.is-roi {
  left: 230px;
  top: 145px;
  color: rgba(18, 161, 80, 0.4);
}

.uh-hero-watermark-label.is-save {
  left: 395px;
  top: 65px;
  color: rgba(228, 24, 31, 0.5);
}

.uh-hero-pricing-section > .container-1200 {
  position: relative;
  z-index: 1;
}

/* Fact cards styling riêng cho trang Báo Giá: Ấm áp năng lượng, tôn số liệu sinh lời */
.uh-hero-pricing-section .uh-fact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 167, 36, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.uh-hero-pricing-section .uh-fact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ffa724, #12a150);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.uh-hero-pricing-section .uh-fact-card:hover {
  border-color: rgba(255, 167, 36, 0.45);
}

.uh-hero-pricing-section .uh-fact-card:hover::before {
  opacity: 1;
}

.uh-hero-pricing-section .uh-fact-val {
  color: var(--uh-color-navy, #14202e);
}

.reco-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .reco-grid-layout {
    grid-template-columns: 420px 1fr;
    gap: 28px;
  }
}

.reco-control-panel {
  background: var(--uh-bg-surface-white);
  border: 1px solid var(--uh-color-border-light);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--uh-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reco-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--uh-color-border-light);
}

.reco-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--uh-color-primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uh-color-primary);
  font-weight: var(--uh-font-weight-extrabold);
  font-size: 14px;
  flex-shrink: 0;
}

.reco-input-focus {
  transition: var(--uh-transition-fast);
}

.reco-input-focus:focus-within {
  border-color: var(--uh-color-primary) !important;
  box-shadow: 0 0 0 3px var(--uh-color-primary-subtle) !important;
}

.reco-pill-btn {
  padding: 8px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: var(--uh-font-weight-bold);
  cursor: pointer;
  transition: var(--uh-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.reco-pill-btn:hover {
  transform: translateY(-1px);
}

.reco-result-card {
  background: var(--uh-bg-card-gradient);
  border: 1.5px solid var(--uh-color-border-subtle);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--uh-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reco-stat-box {
  background: #ffffff;
  border: 1px solid var(--uh-color-border-light);
  border-radius: 14px;
  padding: 14px 16px;
  transition: var(--uh-transition-fast);
}

.reco-stat-box:hover {
  border-color: var(--uh-color-primary-border);
}

@media (max-width: 640px) {
  .reco-control-panel,
  .reco-result-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

/* ── TRANG CHỦ: CÔNG CỤ CHỌN GÓI (mức tiền điện → combo + tiền điện tiết kiệm) ── */
.uh-reco-section {
  position: relative;
  padding: 72px 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(20, 32, 46, 0.78) 0%, rgba(20, 32, 46, 0.88) 100%),
    url('../images/bess/bess-factory-pylontech.jpg') center / cover no-repeat,
    #14202e;
}

.uh-reco-head {
  text-align: center;
  margin-bottom: 32px;
}

.uh-reco-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: #ffffff;
}

.uh-reco-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.uh-reco-left,
.uh-reco-right {
  background: #ffffff;
  color: #14202e;
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}

.uh-reco-right {
  border: 2px solid #e4181f;
  display: flex;
  flex-direction: column;
}

.uh-reco-left-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 16px;
}

.uh-reco-tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.uh-reco-tier-btn {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  min-height: 48px;
  padding: 0 18px;
  color: #14202e;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.uh-reco-tier-btn:hover {
  border-color: #e4181f;
}

.uh-reco-tier-btn.is-on {
  color: #ffffff;
  background: #e4181f;
  border-color: #e4181f;
}

.uh-reco-field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.uh-reco-select-box {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #14202e;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
}

.uh-reco-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 6px;
  color: #14202e;
  background: #ffa724;
  margin-bottom: 14px;
}

.uh-reco-combo-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
}

.uh-reco-combo-note {
  font-size: 15px;
  color: #4a5a6b;
  margin: 0 0 18px;
}

.uh-reco-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.uh-reco-opt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
}

.uh-reco-opt.is-avocado {
  background: #fff8f3;
  border: 1px solid rgba(228, 24, 31, 0.12);
}

.uh-reco-opt.is-pylontech {
  background: #f4f8fd;
  border: 1px solid rgba(30, 83, 153, 0.15);
}

.uh-reco-opt-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: zoom-in;
}

.uh-reco-opt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.uh-reco-opt-img:hover img {
  transform: scale(1.12);
}

.uh-reco-opt-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.uh-reco-opt.is-avocado .uh-reco-opt-brand {
  color: #e4181f;
}

.uh-reco-opt.is-pylontech .uh-reco-opt-brand {
  color: #1e5399;
}

.uh-reco-opt-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.uh-reco-save-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
}

.uh-reco-save-label {
  font-size: 14px;
  color: #4a5a6b;
}

.uh-reco-save-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #12a150;
  font-variant-numeric: tabular-nums;
}

.uh-reco-save-value small {
  font-size: 16px;
  font-weight: 800;
}

.uh-reco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.uh-reco-zalo-btn {
  color: #1e5399;
  background: #ffffff;
  border: 2px solid #1e5399;
  border-radius: 999px;
}

.uh-reco-zalo-btn:hover {
  color: #ffffff;
  background: #1e5399;
}

.uh-reco-foot {
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7a8c;
  margin: auto 0 0;
}

@media (max-width: 860px) {
  .uh-reco-section {
    padding: 48px 0;
  }
  .uh-reco-title {
    font-size: 26px;
  }
  .uh-reco-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .uh-reco-opts {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Mobile: đã có slider chọn giá ở hero nên ẩn card chọn mức tiền điện */
  .uh-reco-left {
    display: none;
  }
}
