/* ============================================================
   Pet Adoption Cost Calculator – Styles
   ============================================================ */

.calc-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.pet-card {
  max-width: 620px;
  display: block;
}

/* ── Step blocks ── */
.step-block {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.step-block:last-child { border-bottom: none; }
.step-block.hidden { display: none; }

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Animal grid ── */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.animal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.animal-btn:hover { border-color: var(--green-main); background: var(--green-pale); }
.animal-btn.selected { border-color: var(--green-dark); background: var(--green-light); }

.animal-icon { font-size: 1.6rem; line-height: 1; }
.animal-name { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }

/* ── Breed grid ── */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.breed-btn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: all 0.15s;
}
.breed-btn:hover { border-color: var(--green-main); background: var(--green-pale); }
.breed-btn.selected { border-color: var(--green-dark); background: var(--green-light); }

.breed-btn-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.breed-btn-examples {
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Source grid ── */
.source-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.source-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: all 0.15s;
  width: 100%;
}
.source-btn:hover { border-color: var(--green-main); background: var(--green-pale); }
.source-btn.selected { border-color: var(--green-dark); background: var(--green-light); }

.source-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.source-btn strong { display: block; font-size: 0.92rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.source-desc { font-size: 0.82rem; color: var(--text-muted); }

/* ── Selection summary ── */
.selection-summary {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 5px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

/* ── Cost cards ── */
.cost-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cost-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  text-align: center;
}
.cost-card.highlight {
  border-color: var(--green-dark);
  background: var(--green-pale);
}

.cost-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.cost-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}
.cost-value.large { font-size: 1.8rem; }
.cost-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Breakdown section ── */
.breakdown-section {
  margin-bottom: 1.25rem;
}

.breakdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f4f0;
  font-size: 0.87rem;
  color: var(--text-mid);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row strong { color: var(--text-dark); }

/* ── Affordability block ── */
.afford-block {
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.afford-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.afford-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.afford-symbol {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-mid);
}

.afford-row input {
  width: 140px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
}
.afford-row input:focus { border-color: var(--green-dark); }

.afford-month {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.verdict-box {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  display: none;
}
.verdict-box.yes { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; display: block; }
.verdict-box.no  { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; display: block; }

/* ── Restart button ── */
.restart-btn {
  padding: 0.65rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--green-dark);
  border-radius: 5px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.restart-btn:hover { background: var(--green-dark); color: #fff; }

/* ── SEO section ── */
.seo-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.seo-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.65rem;
}
.seo-section h2:first-child { margin-top: 0; }

.seo-section p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 0.85rem;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin: 0.75rem 0 1.25rem;
}
.seo-table th, .seo-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}
.seo-table th {
  background: var(--green-pale);
  font-weight: 600;
  color: var(--text-dark);
}
.seo-table tr:nth-child(even) td { background: #fafcfa; }

.seo-list {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-mid);
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.seo-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Side panel cards ── */
.pet-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
}

.pet-info-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.pet-tips {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1;
}
.pet-tips li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f4f0;
  line-height: 1.45;
}
.pet-tips li:last-child { border-bottom: none; }

.pet-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.pet-cost-table th, .pet-cost-table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  text-align: left;
}
.pet-cost-table th {
  background: var(--green-pale);
  font-weight: 600;
}
