/* =========================================
   AThetalife • calculator.css (v1.0)
   Purpose: Layout & style for the life expectancy calculator
   ========================================= */

.calculator-main {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) var(--space-8);
}

.calc-section {
  margin-bottom: var(--space-7);
}

.calc-section h1,
.calc-section h2 {
  margin-bottom: var(--space-3);
}

.section-lead {
  color: var(--muted);
  margin-bottom: var(--space-5);
  max-width: 60ch;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-3, 16px);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}

.field {
  margin-bottom: var(--space-4);
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.field input,
.field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-2, 10px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.field-help {
  margin-top: 0.25rem;
  font-size: var(--fs-300);
  color: var(--muted);
}

.required {
  color: var(--accent-red, #d9534f);
  margin-left: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Sections toggling */
.is-hidden {
  display: none;
}

/* Results */
#results-card p {
  margin-bottom: var(--space-3);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
