/* ===============================
   PANEL LAYOUT
=============================== */

.triangle-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

/* ===============================
   INPUT SECTION (LEFT)
=============================== */

.input-left.calc-section {
  position: relative;
  background: #ffffff;
  padding: 18px;
  padding-bottom: 190px; /* space reserved for triangle diagram */
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

/* Spacing between rows */
.input-left .row {
  margin-bottom: 14px;
}

/* ===============================
   MOVE TRIANGLE DIAGRAM BELOW INPUTS
   (CSS-ONLY, NO HTML CHANGE)
=============================== */

.shape-graphic {
  position: absolute;
  left: 18px;
  bottom: 18px;

  width: calc(60% - 18px);
  height: 140px;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

.shape-graphic svg {
  display: block;
}

/* ===============================
   RESULT SECTION (RIGHT)
=============================== */

.input-right-stack {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===============================
   RESULT BOX
=============================== */

.result-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.result-box h3 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.result-big {
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 14px;
}

.secondary-result {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  font-size: 14px;
  color: #475569;
}

.secondary-result strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 4px;
}

/* ===============================
   TRIG RESULT GRID
=============================== */

.trig-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  font-size: 15px;
}

.trig-grid strong {
  font-weight: 600;
  color: #1e293b;
}

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

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

  .shape-graphic {
    position: static;
    width: 100%;
    height: 140px;
    margin-top: 16px;
  }

  .input-left.calc-section {
    padding-bottom: 18px;
  }
}
