/* Load Lato Font (local) */
@font-face {
    font-family: 'Open Sans';
    src: url('../font/Open_Sans/OpenSansRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}



/* Container */
.hcc-wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 12px;
  font-family: 'Open Sans', sans-serif !important;
}

/*.hcc-card {
  background: #FCEDE5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 14px rgba(17,24,39,.06);
}*/
.hcc-title {
    margin: 0 0 4px;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #190b05 !important;
    font-family: 'Lato', sans-serif !important;
	text-align: center;
}
.hcc-sub { margin: 0 0 22px; color: #6B7280; text-align: center}

/* Grid */
.hcc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hcc-span-2 { grid-column: 1 / -1; }

/* Fields */
.hcc-label { display:block; margin:0 0 12px; font-size:16px; color:#000000 !important; font-weight: 600; }

.hcc-input, .hcc-select {
  width:100%; padding:8px 14px !important; background:#fff; border:1px solid #FFB99A !important; border-radius:10px !important; font-size:16px; outline:none;
}
.hcc-input:focus, .hcc-select:focus {
  border-color:#F97316; box-shadow:0 0 0 3px rgba(249,115,22,.15);
}
.hcc-checkbox { display:flex; align-items:center; gap:10px; font-size:14px; color:#374151; }
.hcc-checkbox input { width:16px; height:16px; }

/* Toggle */
.hcc-toggle { display:flex; gap:10px; }
.hcc-toggle-btn {
  border:1px solid #EAD7CF; background:#CC5A29 !important; border-radius:999px; padding:10px 16px; cursor:pointer;
}
.hcc-toggle-btn.is-active { border-color:#F97316; background:#56160C !important;  box-shadow:0 0 0 3px rgba(249,115,22,.15); }

/* CTA */
.hcc-actions { display:flex; justify-content:flex-end; margin-top:8px; }
.hcc-btn {
  background:#CC5A29; color:#fff; border:none; border-radius:12px; padding:14px 22px; font-weight:600; cursor:pointer;
}
.hcc-btn:hover { background:#56160C; }

/* Results panel */
.hcc-results {
  background:#CC5A29; color:#fff; border-radius:12px; padding:18px; box-shadow: 0 4px 10px rgba(10,10,10,.25);
}
.hcc-results h3 { color:#fff; margin-top:0; }

/* Charts section */
.hcc-charts { margin-top: 28px; }

@media (max-width: 768px){
  .hcc-grid { grid-template-columns: 1fr; }
  .hcc-actions { justify-content:stretch; }
  .hcc-btn { width:100%; }
}

/* === Results cards (Figma style) === */
.hcc-results-grid { display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-top:16px; }
.hcc-kpi { background:#3D7E1A; color:#fff; border-radius:12px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; }
.hcc-kpi .hcc-kpi-title { font-weight:700; font-size:18px; }
.hcc-kpi .hcc-kpi-sub { font-size:14px; opacity:.9; margin-top:4px; }
.hcc-kpi .hcc-kpi-pill { background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.35); padding:10px 14px; border-radius:10px; }

.hcc-panel { border-radius:12px; overflow:hidden; color:#fff; }
.hcc-panel--orange { background:#F26A21; }
.hcc-panel--blue { background:#2F66AF; }
.hcc-panel-header { font-weight:700; padding:14px 18px; }
.hcc-panel-body { padding:0 0 8px 0; }
.hcc-row { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border-top:1px solid rgba(255,255,255,.3); }
.hcc-row:first-child { border-top:none; }
.hcc-row .label { opacity:.95; }
.hcc-row .value { font-variant-numeric: tabular-nums; }

.hcc-total { font-weight:800; padding:14px 18px; border-top:1px solid rgba(255,255,255,.45); display:flex; justify-content:space-between; align-items:center; }

/* Headings + chart cards */
.hcc-section-title { font-size:34px; line-height:1.2; font-weight:800; color:#111827; margin:34px 0 16px; max-width:760px; }
.hcc-chart-card { background:#fff; border-radius:14px; box-shadow:0 6px 20px rgba(0,0,0,.08); padding:16px; }
.hcc-chart-grid { display:grid; grid-template-columns: 1.1fr 1fr; gap:24px; align-items:start; margin-top: 30px; }
.hcc-chart-grid .hcc-chart-card { margin-top:12px; }
.hcc-chart-stack { margin-top:22px; }
@media (max-width: 992px){
  .hcc-results-grid, .hcc-chart-grid { grid-template-columns: 1fr; }
}

/* Toggle visual refinements */
.hcc-toggle-btn { transition: all .15s ease; }
.hcc-toggle-btn.is-active { background:#F97316; color:#fff; border-color:#F97316; }
.hcc-toggle-btn:not(.is-active):hover { border-color:#F97316; box-shadow:0 0 0 3px rgba(249,115,22,.12); }

/* Form card subtle outer container */
/*.hcc-wrap .hcc-card { background:#FCEDE5; }*/

/* === Figma page scaffolding === */
.hcc-figma-section {
  padding: 28px 0;
}
.hcc-figma-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 28px;
  border-radius: 6px;
}

/* KPI exact look */
.hcc-kpi { background:#3D7E1A; color:#fff; border-radius:10px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.hcc-kpi .hcc-kpi-title { font-weight:700; font-size:22px; }
.hcc-kpi .hcc-kpi-sub { font-size:15px; opacity:.95; }
.hcc-kpi .hcc-kpi-pill { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.65); padding:12px 16px; border-radius:10px; font-weight:700; }

/* Panels with strong colors */
.hcc-panel { border-radius:10px; overflow:hidden; color:#fff; box-shadow:0 3px 12px rgba(0,0,0,.14); }
.hcc-panel--orange { background:#F26A21; }
.hcc-panel--blue { background:#3B6FB9; }
.hcc-panel-header { font-weight:800; padding:18px 20px; font-size:24px; }
.hcc-row { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-top:1px solid rgba(255,255,255,.35); font-size:16px; }
.hcc-total { font-weight:800; padding:18px 20px; border-top:1px solid rgba(255,255,255,.55); display:flex; justify-content:space-between; align-items:center; font-size:20px; }
.hcc-row .value, .hcc-total span:last-child { letter-spacing:.2px; }

/* Charts in rounded white cards */
.hcc-chart-card { background:#fff; border-radius:14px; box-shadow:0 8px 24px rgba(0,0,0,.08); padding:14px; }

.hcc-section-title { font-size:40px; font-weight:800; line-height:1.2; color:#111; margin:36px 0 10px; }
@media (max-width: 992px){
  .hcc-section-title { font-size:28px; }
  .hcc-figma-container { padding:18px; }
}

.hcc-kpi--in-panel {
  margin-bottom: 16px;
  max-width: 100%;
}

.hcc-toggle button {
    border-color: #FFB99A;
    padding: 6px 30px 6px 30px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
}

.hcc-toggle button:hover, .hcc-actions button:hover, .hcc-actions:focus  {
    background-color: #56160C;
}

.hcc-actions button {
    background-color: #CC5A29;
    padding: 10px 35px 10px 35px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    border-color: #FFB99A;
}

.hcc-actions button#btn-back {
	background-color: blue !important
}

/* === Modal Styles === */
.hcc-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.hcc-modal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  max-width: 900px;       /* limit width */
  width: 90%;             /* responsive */
  min-height: 480px;
  animation: fadeIn .25s ease-in-out;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* Left side = form with soft peach background */
.hcc-modal-left {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff2ea;
  color: #111827;
}

/* Right side = image with orange gradient overlay */
.hcc-modal-right {
  position: relative;
  overflow: hidden;
}

.hcc-modal-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Orange gradient overlay */
.hcc-modal-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,242,234,0.85) 0%,   /* soft peach near form side */
    rgba(253,111,47,0.45) 40%,   /* warm orange mid blend */
    rgba(249,115,22,0.25) 100%   /* lighter orange fade out */
  );
  pointer-events: none;
}

/* Close button */
.hcc-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  z-index: 10;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.hcc-modal-close:hover { color: #000; }

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .hcc-modal-split {
    grid-template-columns: 1fr;
    max-width: 95%;
    min-height: auto;
  }
  .hcc-modal-right {
    display: none;
  }
}

/* Page overlay for loading */
.hcc-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  top:0; left:0; right:0; bottom:0;
  background: rgba(255,242,234,0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #F97316;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #FFB99A;
  border-top: 5px solid #F97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Form Field Spacing */
.hcc-modal-left .hcc-field {
    margin-bottom: 16px; /* Adjust this value to control the space between fields */
}

.hcc-modal-left .hcc-field label {
    margin-bottom: 8px; /* Adjust this value to control the space between label and input */
}

/* Other modal styles (for clarity) */
.hcc-modal-left {
    padding: 20px;
    width: 100%;
}

.hcc-modal-left input, .hcc-modal-left select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #FFB99A;
}

.hcc-modal-left button {
    margin-top: 12px;
    padding: 12px;
    background-color: #CC5A29;
    color: #fff;
    border-radius: 10px;
    width: 100%;
}

/* Two column layout */
.two-col { width:100%; border-collapse:collapse; margin-bottom:20px; }
.two-col td { vertical-align:top; padding:0px; border-style: hidden; }
.col-left { width: 60%; } 
.col-right { width: 40%; }

/* Lists (no image bullets) */
.custom-list { list-style: none; padding-left: 0px; margin: 0; }
.custom-list li { margin-bottom: 8px; font-size: 15px; color: #333; }
.col-right .custom-list li { text-align: end; }

/* Comparison table */
.comparison-table { width:100%; border-collapse:collapse; margin-top:25px; }
.comparison-table th, .comparison-table td {
	border:1px solid #ddd;
	padding:12px 10px;
	text-align:center;
	font-size:14px;
}
.comparison-table th { background:#f7f7f7; font-weight:600; }
.comparison-table .irewa { background:#228b22; color: white}     /* soft green */
.comparison-table .heatpump { background:#cc0000; color: white }  /* soft orange */
.comparison-table .highlight-row { background:#CC5A29; color:#fff; font-weight:700; }
.comparison-table .savings { font-size:18px; font-weight:700; }

/* Blur effect */
.blur-cell {
	color: transparent;
	text-shadow: 0 0 10px rgba(0,0,0,0.45);
	user-select: none;
	filter: blur(1px);
}

/* Section titles & data rows */
.calculation-title { font-weight:700; margin:25px 0 12px; font-size:16px; }
.data-row { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; }
.highlight-green { color:#2e7d32; font-weight:600; }

/* Summary cards */
.hcc-highlight {
	background:#2e7d32; color:#fff; padding:15px; border-radius:8px; margin-bottom:16px;
}
.hcc-summary {
	background:#CC5A29; color:#fff; padding:15px; border-radius:8px;
}
.hcc-summary h4 { margin:0 0 8px 0; color:#fff; }

/* Divider that could use an asset image (optional) */
.section-divider {
	height: 10px;
	background: url('${IREWA_CALC.assets_url}images/divider.png') center/contain no-repeat;
	margin: 18px 0;
}

/* Responsive */
@media (max-width: 900px) {
	.comparison-table th, .comparison-table td { font-size:13px; padding:10px; }
}

@media (max-width: 640px) {
	.two-col td { display:block; width:100%; padding:10px 0 0 0; }
	.two-col tr { border-style:hidden; }
	.col-left, .col-right { width:100%; }
	.data-row { flex-direction: column; align-items: flex-start; }
	.comparison-table th, .comparison-table td { font-size:12px; padding:8px; }
	.comparison-table .savings { font-size:16px; }
}

@media (max-width: 420px) {
	.custom-list li { font-size:14px; }
	.calculation-title { font-size:15px; }
	.hcc-summary, .hcc-highlight { padding:12px; }
}

