/* ============================================
   STEEL WEIGHT CALCULATOR - BuildCostMate
   ============================================ */

/* ===== Input with Unit ===== */
.input-with-unit {
  display: flex;
  gap: 10px;
  align-items: center;
}
.input-with-unit input {
  flex: 1;
  margin-top: 0;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: white;
  color: #333;
  font-size: 16px;
  transition: border-color 0.3s;
}
.input-with-unit input:focus {
  outline: none;
  border-color: #2a5f8f;
  box-shadow: 0 0 8px rgba(42, 95, 143, 0.25);
}
.input-with-unit select {
  flex: 1;
  margin-top: 0;
  padding: 12px 12px;
  min-width: 100px;
  background: white;
  color: #333;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.3s;
}
.input-with-unit select:focus {
  outline: none;
  border-color: #2a5f8f;
  box-shadow: 0 0 8px rgba(42, 95, 143, 0.25);
}
.input-with-unit select option {
  background: white;
  color: #333;
}

/* ===== Results Grid ===== */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}
.result-card {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
.result-card .label {
  font-size: 14px;
  color: #aaa;
}
.result-card .value {
  font-size: 24px;
  font-weight: bold;
}
.result-card .unit {
  font-size: 12px;
  color: #aaa;
}

/* ===== Shape Input Toggle ===== */
.shape-inputs {
  display: none;
}
.shape-inputs.active {
  display: block;
}

/* ===== Wastage ===== */
.wastage-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wastage-row select {
  flex: 2;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: white;
  color: #333;
  font-size: 16px;
}
.wastage-row select:focus {
  outline: none;
  border-color: #2a5f8f;
  box-shadow: 0 0 8px rgba(42, 95, 143, 0.25);
}
.wastage-row input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: white;
  color: #333;
  font-size: 16px;
  display: none;
}
.wastage-row input.visible {
  display: block;
}
.wastage-row input:focus {
  outline: none;
  border-color: #2a5f8f;
  box-shadow: 0 0 8px rgba(42, 95, 143, 0.25);
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 600px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .input-with-unit {
    flex-direction: column;
    align-items: stretch;
  }

  .input-with-unit select {
    width: 100%;
    min-width: unset;
  }

  .wastage-row {
    flex-direction: column;
    align-items: stretch;
  }
}