/* === Fractal Water ROI Calculator === */
.fw-calc {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border: 2px solid #1A569A;
  border-radius: 12px;
  padding: 32px;
  margin: 30px 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
.fw-calc-title {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A569A;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}
.fw-calc-subtitle {
  color: #5C5C5C;
  text-align: center;
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.fw-calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.fw-calc-field {
  display: flex;
  flex-direction: column;
}
.fw-calc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 4px;
}
.fw-calc-field input {
  padding: 10px 12px;
  border: 1px solid #DDEAF5;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}
.fw-calc-field input:focus {
  outline: none;
  border-color: #1A569A;
  box-shadow: 0 0 0 3px rgba(26, 86, 154, 0.15);
}
.fw-calc-product-select {
  grid-column: 1 / -1;
}
.fw-calc-product-select label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 4px;
  display: block;
}
.fw-calc-product-select select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDEAF5;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}
.fw-calc-btn {
  grid-column: 1 / -1;
  background: #1A569A;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.fw-calc-btn:hover {
  background: #2272C3;
}
.fw-calc-results {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #DDEAF5;
}
.fw-calc-results h4 {
  font-family: 'Montserrat', sans-serif;
  color: #1A569A;
  text-align: center;
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.fw-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.fw-calc-result-card {
  background: #fff;
  border: 1px solid #DDEAF5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.fw-calc-result-card.fw-calc-total {
  background: #1A569A;
  border-color: #1A569A;
}
.fw-calc-total .fw-calc-result-value,
.fw-calc-total .fw-calc-result-label {
  color: #fff !important;
}
.fw-calc-result-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1D6A3E;
}
.fw-calc-result-value span {
  font-size: 0.75rem;
  font-weight: 400;
  color: #5C5C5C;
}
.fw-calc-total .fw-calc-result-value span {
  color: rgba(255,255,255,0.7) !important;
}
.fw-calc-result-label {
  font-size: 0.8rem;
  color: #5C5C5C;
  margin-top: 4px;
}
.fw-calc-payback {
  margin: 16px 0;
}
.fw-calc-payback-inner {
  background: #E2F0E8;
  border-left: 4px solid #1D6A3E;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  line-height: 1.8;
  font-size: 0.95rem;
}
.fw-calc-disclaimer {
  font-size: 0.78rem;
  color: #888;
  text-align: center;
  margin-top: 12px;
}
.fw-calc-disclaimer a {
  color: #1A569A;
}

/* Product recommendation cards */
.fw-product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.fw-product-card {
  background: #fff;
  border: 2px solid #DDEAF5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fw-product-card:hover {
  border-color: #1A569A;
  box-shadow: 0 4px 16px rgba(26, 86, 154, 0.15);
}
.fw-product-card.fw-recommended {
  border-color: #1A569A;
  position: relative;
}
.fw-product-card.fw-recommended::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1A569A;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
}
.fw-product-card h4 {
  font-family: 'Montserrat', sans-serif;
  color: #1A569A;
  margin: 0 0 8px;
}
.fw-product-card .fw-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1D6A3E;
  margin: 8px 0;
}
.fw-product-card ul {
  text-align: left;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #5C5C5C;
}
.fw-product-card .fw-card-btn {
  display: inline-block;
  background: #1A569A;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
  transition: background 0.2s;
}
.fw-product-card .fw-card-btn:hover {
  background: #2272C3;
  color: #fff;
}

/* Research citation cards */
.fw-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.fw-research-card {
  background: #F5F7FA;
  border-left: 4px solid #1A569A;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}
.fw-research-card .fw-stat {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1D6A3E;
}
.fw-research-card .fw-study {
  font-size: 0.85rem;
  color: #5C5C5C;
  margin-top: 4px;
}
.fw-research-card .fw-study a {
  color: #1A569A;
}

/* Static savings table */
.fw-savings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.fw-savings-table th {
  background: #1A569A;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.fw-savings-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #DDEAF5;
}
.fw-savings-table tr:nth-child(even) td {
  background: #F5F7FA;
}
.fw-savings-table .fw-highlight {
  font-weight: 700;
  color: #1D6A3E;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .fw-calc { padding: 20px 16px; }
  .fw-calc-inputs { grid-template-columns: 1fr; }
  .fw-calc-grid { grid-template-columns: 1fr 1fr; }
  .fw-product-cards { grid-template-columns: 1fr; }
  .fw-research-grid { grid-template-columns: 1fr; }
  .fw-calc-result-value { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .fw-calc-grid { grid-template-columns: 1fr; }
}
