/* ===============================
   INPUT PANEL – 2 COLUMN LAYOUT
=============================== */

.input-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

/* ===============================
   LEFT: INPUT SECTION
=============================== */

.input-form.calc-section {
  grid-column: 1;
  padding: 22px;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;

  /* OVERRIDE main.css card spacing */
  margin: 0;
  box-shadow: none;
}

/* Force 1-column inputs */
.form-grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ===============================
   RIGHT: RESULT SECTION
=============================== */

.results-box.calc-section {
  grid-column: 2;
  padding: 22px;
  background: #f8fafc;
  display: flex;
  align-items: center;

  /* OVERRIDE main.css card spacing */
  margin: 0;
  box-shadow: none;
}

/* ===============================
   RESULT TITLE
=============================== */

.results-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 18px;
}

/* ===============================
   RESULT GRID – FIXED ORDER
=============================== */

.stat-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 14px;
  column-gap: 18px;
  font-size: 14px;
}

/* --- ROI (TOP) --- */
.stat-grid > div:nth-child(3) { grid-row: 1; }
#roiValue {
  grid-row: 1;
  font-size: 28px;
  font-weight: 800;
  color: #2563eb;
}

/* Divider */
#roiValue::after {
  content: "";
  display: block;
  height: 1px;
  background: #e2e8f0;
  margin-top: 10px;
}

/* --- Net Profit --- */
.stat-grid > div:nth-child(1) { grid-row: 2; }
#profitValue {
  grid-row: 2;
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
}

/* --- Total Cost --- */
.stat-grid > div:nth-child(5) { grid-row: 3; }
#totalCost {
  grid-row: 3;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 900px) {
  .input-panel {
    grid-template-columns: 1fr;
  }

  .input-form.calc-section {
    grid-column: 1;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .results-box.calc-section {
    grid-column: 1;
    background: #ffffff;
  }

  #roiValue {
    font-size: 24px;
  }
}
