/* General Wrapper */
.concrete-calculator-wrapper {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Tabs */
.calculator-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 10px;
}
.tab-button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  background: #f4f4f4;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  color: black;
}
.tab-button:hover {
  background: #e2e2e2;
}
.tab-button.active {
  background-color: #007c3f;
  color: white;
  font-weight: bold;
}

/* Sections */
.calculator-section {
  display: none;
  border-top: 2px solid #007c3f;
  padding-top: 20px;
  gap: 20px;
  align-items: flex-start;
}
.calculator-section.active {
  display: flex;
  flex-wrap: wrap;
}

/* Image */
.image-side {
  flex: 1 1 300px;
  margin-bottom: 20px;
}
.image-side img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Form */
.form-side {
  flex: 2 1 500px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-side label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
select.unit {
  width: 70px;
  padding: 5px;
  color: black;
  background-color: white;
}
input[type="number"] {
  flex: 1;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: black;
  background-color: white;
}

/* Button */
.calculate-btn {
  margin-top: 10px;
  background: #007c3f;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.calculate-btn:hover {
  background: #005e30;
}

/* Result */
.result-area {
  margin-top: 15px;
  color: green;
  font-weight: bold;
  font-size: 16px;
}

/* Weight Result Wrapper */
.weight-result-box {
  margin-top: 15px;
}

/* Weight Result Box (Styled Box) */
.weight-box {
  display: flex;
  background: #202b3a;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-top: 10px;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.weight-left,
.weight-right {
  flex: 1 1 250px;
}
.weight-heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}
.weight-value {
  font-size: 28px;
  font-weight: bold;
  color: #f59e0b;
}
.weight-sub {
  font-size: 16px;
  margin: 6px 0 10px;
  color: #d1d5db;
}
.bag-line {
  font-size: 16px;
  margin-bottom: 6px;
}
.bag-line span {
  color: #ffffff;
}
.bag-line strong {
  color: #34d399;
  margin-left: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .calculator-section {
    flex-direction: column;
  }
  .image-side {
    margin-right: 0;
    margin-bottom: 15px;
  }
}