/* =====================================================
   calculator-hocl.css
   HOCl Dilution Calculator – Page-specific styling
   Overrides only — shared base lives in components.css
===================================================== */

/* ---------- Page Spacing ---------- */
.calculator-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ---------- Hero Refinement ---------- */
.calculator-hero h1 {
  max-width: 700px;
  color: #0b0c0f;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.1;
}

.calculator-hero .subtitle {
  margin: 6px 0 14px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.4;
}

.calculator-hero .note {
  color: var(--color-warning);
}

/* ---------- Calculator Card Emphasis ---------- */
.calculator-card {
  border-top: 4px solid var(--color-primary);
}

.form-group label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.form-group input::placeholder {
  color: #9aa0a6;
}

/* ---------- Inline Inputs ---------- */
.input-inline input {
  flex: 1;
}

.input-inline select {
  min-width: 110px;
}

/* ---------- Action Buttons ---------- */
.form-actions {
  justify-content: flex-start;
}

.form-actions button {
  min-width: 120px;
}

.form-feedback {
  margin-top: var(--space-3);
  padding: 10px 12px;
  border: 1px solid #f1d3d3;
  border-radius: 10px;
  background: #fff8f8;
  color: #7a1f1f;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* ---------- Result Card ---------- */
.result-card {
  border-top: 4px solid var(--color-primary);
}

.result-card h2 {
  font-size: var(--font-size-lg);
}

.results-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.results-list span {
  color: var(--color-primary);
}

/* ---------- Safety Box ---------- */
.result-card .safety-box {
  margin-top: var(--space-5);
  background-color: #fff7e6;
}

/* ---------- Mobile Refinement ---------- */
@media (max-width: 480px) {
  .results-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}
