/* =====================================================
   CONSTRUIQ – Calculator Pro Styles
   Base UI for technical + custom estimators
   ===================================================== */

/* ---------- GLOBAL CARD ---------- */
.card {
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  color: #fff;
}

/* ---------- PANEL ---------- */
.cp-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- HEAD ---------- */
.cp-custom-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cp-custom-sub {
  font-size: 12px;
  opacity: .65;
}

/* ---------- INPUTS ---------- */
.cp-input,
.cp-custom-input,
.cp-panel input,
.cp-panel textarea,
.cp-panel select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  outline: none;
}

.cp-panel input:focus,
.cp-panel textarea:focus,
.cp-panel select:focus {
  border-color: rgba(0,170,255,.6);
  background: rgba(255,255,255,.08);
}

/* ---------- BUTTONS ---------- */
.cp-btn {
  background: linear-gradient(135deg,#1a6cff,#00b4ff);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.cp-btn.secondary {
  background: rgba(255,255,255,.1);
}

.cp-btn:hover {
  opacity: .9;
}

/* ---------- CHECKLIST ---------- */
.cp-custom-row {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px;
  margin-top: 8px;
}

.cp-custom-grid {
  display: grid;
  grid-template-columns: auto 1fr 120px 120px;
  gap: 10px;
  align-items: center;
}

.cp-custom-row input[type="checkbox"] {
  transform: scale(1.2);
}

/* ---------- TOTALS ---------- */
.cp-custom-totals {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.cp-custom-totals .grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}

.cp-custom-totals .k {
  font-size: 12px;
  opacity: .65;
}

.cp-custom-totals .v {
  font-size: 18px;
  font-weight: 800;
}

/* ---------- RESULTS (ENGINE) ---------- */
.results {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
}

.results strong {
  font-size: 20px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .cp-custom-grid {
    grid-template-columns: auto 1fr 1fr;
  }

  .cp-custom-totals .grid {
    grid-template-columns: 1fr;
  }
}