/* ===========================
   Harvest Hounds — calculator.css
   =========================== */

/* --- Calculator Hero --- */
.calc-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.calc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.calc-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.calc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,32,22,0.82) 0%, rgba(107,76,53,0.65) 60%, rgba(44,32,22,0.5) 100%);
}
.calc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 3.5rem 2rem;
  margin-left: clamp(1.5rem, 8vw, 10rem);
  color: #fff;
}
.calc-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin: 1rem 0 0.75rem;
  line-height: 1.15;
}
.calc-hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.65;
}

/* --- Calculator Section Layout --- */
.calc-section {
  background: var(--cream);
  padding: 4rem 0 5rem;
}
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* --- Input Panel --- */
.calc-panel {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.calc-panel-header {
  background: var(--earth-brown);
  color: #fff;
  padding: 1.75rem 2rem;
}
.calc-step-badge {
  display: inline-block;
  background: var(--harvest-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}
.calc-panel-header h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.calc-panel-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

/* --- Form Fields --- */
.calc-field {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
}
.calc-field:last-of-type { border-bottom: none; }
.calc-field > label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.calc-field > label i { color: var(--harvest-orange); }
.calc-field > label .optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.78rem;
  margin-left: 0.25rem;
}
.calc-field > label .weight-display {
  margin-left: auto;
  background: var(--harvest-orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

/* --- Inputs --- */
.calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--warm-white);
  transition: var(--transition);
  outline: none;
}
.calc-input:focus {
  border-color: var(--harvest-orange);
  box-shadow: 0 0 0 3px rgba(212,114,42,0.15);
}
.calc-select-wrap { position: relative; }
.calc-select { appearance: none; cursor: pointer; padding-right: 2.5rem; }
.calc-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--harvest-orange);
  pointer-events: none;
  font-size: 0.85rem;
}

/* --- Age Radio Cards --- */
.calc-age-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.age-radio { position: relative; cursor: pointer; }
.age-radio input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.age-radio label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
  text-align: center;
}
.age-radio.selected label,
.age-radio label:hover {
  border-color: var(--harvest-orange);
  background: rgba(212,114,42,0.06);
}
.age-icon { font-size: 1.5rem; }
.age-radio label strong { font-size: 0.82rem; color: var(--text-dark); }
.age-radio label span { font-size: 0.72rem; color: var(--text-light); }
.age-radio.selected label strong { color: var(--harvest-orange); }

/* --- Weight Slider --- */
.calc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.slider-label-min, .slider-label-max {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}
.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--harvest-orange) 0%, var(--harvest-orange) var(--fill-pct, 0%), var(--border-light) var(--fill-pct, 0%), var(--border-light) 100%);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--harvest-orange);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(212,114,42,0.4);
  cursor: pointer;
  transition: transform 0.15s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--harvest-orange);
  border: 3px solid #fff;
  cursor: pointer;
}
.weight-size-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
}
.size-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--harvest-orange);
  flex-shrink: 0;
  transition: background 0.3s;
}

/* --- Activity Buttons --- */
.activity-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.activity-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.4rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-medium);
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.3;
}
.activity-btn i { font-size: 1.1rem; color: var(--text-light); margin-bottom: 0.1rem; }
.activity-btn small { font-weight: 400; font-size: 0.68rem; color: var(--text-light); }
.activity-btn:hover,
.activity-btn.active {
  border-color: var(--harvest-orange);
  background: rgba(212,114,42,0.07);
  color: var(--harvest-orange);
}
.activity-btn.active i { color: var(--harvest-orange); }

/* --- Toggle Group (Neuter) --- */
.toggle-group {
  display: flex;
  gap: 0.5rem;
}
.toggle-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-medium);
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.toggle-btn.active {
  border-color: var(--sage-green);
  background: rgba(122,158,126,0.1);
  color: var(--sage-dark);
}

/* --- Submit button inside panel --- */
.calc-submit-btn {
  margin: 1.5rem 2rem 2rem;
  width: calc(100% - 4rem);
  font-size: 1rem;
  padding: 1rem;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--radius-md);
}

/* ========================
   RESULTS PANEL
   ======================== */
.calc-results-panel {
  position: sticky;
  top: 90px;
}

/* --- Idle State --- */
.calc-idle {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  padding-bottom: 2rem;
}
.idle-graphic { position: relative; }
.idle-graphic img.idle-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.idle-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--harvest-orange);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  white-space: nowrap;
}
.calc-idle h3 {
  font-size: 1.3rem;
  padding: 1.25rem 1.75rem 0.4rem;
  color: var(--text-dark);
}
.calc-idle p {
  font-size: 0.875rem;
  color: var(--text-medium);
  padding: 0 1.75rem 1rem;
  line-height: 1.65;
}
.idle-features {
  padding: 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.idle-features div {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.idle-features i { color: var(--sage-green); }

/* --- Results State --- */
.calc-results {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.results-header {
  background: linear-gradient(135deg, var(--earth-brown), var(--harvest-orange-dark));
  padding: 1.5rem 2rem;
  color: #fff;
}
.results-dog-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.results-badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.result-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
}
.result-badge.green { background: rgba(122,158,126,0.35); }

/* --- Metric Cards --- */
.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border-light);
}
.result-card {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border-light);
}
.result-card:last-child { border-right: none; }
.result-card.primary { background: rgba(212,114,42,0.04); }
.result-card.highlight { background: rgba(122,158,126,0.06); }
.result-card-icon { font-size: 1.3rem; color: var(--harvest-orange); margin-bottom: 0.4rem; }
.result-card.highlight .result-card-icon { color: var(--sage-green); }
.result-card-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}
.result-card.highlight .result-card-value { color: var(--sage-dark); }
.result-card-label { font-size: 0.72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.result-card-sub { font-size: 0.72rem; color: var(--text-light); margin-top: 0.2rem; }

/* --- Feeding Schedule --- */
.feeding-schedule {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.feeding-schedule h4, .pack-duration h4, .monthly-estimate .monthly-label,
.recommended-meal h4, .calorie-breakdown h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.feeding-schedule h4 i { color: var(--harvest-orange); }
.pack-duration h4 i { color: var(--sage-green); }
.recommended-meal h4 i { color: #F59E0B; }
.calorie-breakdown h4 i { color: #EF4444; }
.schedule-item {
  display: grid;
  grid-template-columns: 70px 1fr 80px 65px;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.schedule-time { font-size: 0.75rem; font-weight: 700; color: var(--text-medium); }
.schedule-bar-wrap {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}
.schedule-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--harvest-orange), var(--harvest-orange-light));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  min-width: 8%;
}
.schedule-amount { font-size: 0.78rem; font-weight: 700; color: var(--harvest-orange); text-align: right; }
.schedule-label { font-size: 0.7rem; color: var(--text-light); }

/* --- Pack Duration --- */
.pack-duration {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.pack-item {
  display: grid;
  grid-template-columns: 45px 1fr 80px;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.pack-size { font-size: 0.78rem; font-weight: 700; color: var(--text-medium); }
.pack-bar-wrap {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}
.pack-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-green), var(--sage-light));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  min-width: 2%;
}
.pack-days { font-size: 0.78rem; font-weight: 700; color: var(--sage-dark); text-align: right; }

/* --- Monthly Estimate --- */
.monthly-estimate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
}
.monthly-left, .monthly-right {
  padding: 1.25rem 1.5rem;
}
.monthly-right { border-left: 1px solid var(--border-light); }
.monthly-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--harvest-orange);
  margin: 0.25rem 0;
}
.monthly-value.green { color: var(--sage-dark); }
.monthly-sub { font-size: 0.72rem; color: var(--text-light); line-height: 1.4; }

/* --- Recommended Meal --- */
.recommended-meal {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.rec-meal-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.rec-meal-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
}
.rec-meal-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-meal-tag {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #fff;
  line-height: 1.3;
}
.rec-meal-tag.orange { background: var(--harvest-orange); }
.rec-meal-tag.green  { background: var(--sage-dark); }
.rec-meal-tag.blue   { background: #2980B9; }
.rec-meal-info { padding: 0.85rem 0.85rem 0.85rem 0; flex: 1; }
.rec-meal-info h5 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-dark); }
.rec-meal-info p { font-size: 0.78rem; color: var(--text-medium); line-height: 1.5; margin-bottom: 0.4rem; }
.rec-meal-price { font-weight: 700; color: var(--harvest-orange); font-size: 0.88rem; }

/* --- Calorie Breakdown --- */
.calorie-breakdown {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.calorie-bar-wrap {
  display: flex;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
  gap: 2px;
}
.calorie-bar-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  border-radius: 4px;
  overflow: hidden;
}
.protein-fill { background: var(--harvest-orange); }
.fat-fill     { background: #F59E0B; }
.carb-fill    { background: var(--sage-green); }
.calorie-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-medium);
  align-items: center;
}
.calorie-legend .fa-circle { font-size: 0.6rem; }
.calorie-legend .protein-color { color: var(--harvest-orange); }
.calorie-legend .fat-color     { color: #F59E0B; }
.calorie-legend .carb-color    { color: var(--sage-green); }
.calorie-total { margin-left: auto; font-weight: 700; color: var(--text-dark); }
.calorie-total i { color: #EF4444; }

/* --- Vet Note --- */
.vet-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(122,158,126,0.07);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-medium);
  line-height: 1.6;
}
.vet-note i { color: var(--sage-dark); font-size: 1rem; flex-shrink: 0; margin-top: 0.15rem; }

/* --- Results CTA --- */
.results-cta {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.btn-outline-dark {
  background: transparent;
  color: var(--text-medium);
  border: 2px solid var(--border-light);
}
.btn-outline-dark:hover {
  border-color: var(--harvest-orange);
  color: var(--harvest-orange);
}

/* ==========================
   FORMULA EXPLAINER
   ========================== */
.formula-explainer {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.formula-header {
  background: linear-gradient(135deg, var(--sage-dark), #3d5e40);
  padding: 2rem 2.5rem;
  text-align: center;
  color: #fff;
}
.formula-header i { font-size: 2rem; margin-bottom: 0.75rem; display: block; color: var(--sage-light); }
.formula-header h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.formula-header p { color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.formula-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.formula-step {
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.formula-step:nth-child(2n) { border-right: none; }
.formula-step:nth-child(3), .formula-step:nth-child(4) { border-bottom: none; }
.formula-step-num {
  width: 36px;
  height: 36px;
  background: var(--harvest-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.formula-step-body strong { display: block; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.35rem; }
.formula-step-body p { font-size: 0.82rem; color: var(--text-medium); line-height: 1.55; margin-bottom: 0.5rem; }
.formula-step-body sup { font-size: 0.65em; vertical-align: super; }
.formula-example {
  background: var(--cream);
  border-left: 3px solid var(--harvest-orange);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-medium);
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}
.formula-table {
  background: var(--cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0.4rem;
}
.formula-table > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-light);
}
.formula-table > div:last-child { border-bottom: none; }
.formula-table span:first-child { color: var(--text-medium); }
.formula-table span:last-child { font-weight: 700; color: var(--harvest-orange); }
.formula-note {
  background: rgba(122,158,126,0.08);
  border-top: 1px solid var(--border-light);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.6;
}
.formula-note i { color: var(--sage-dark); font-size: 1rem; flex-shrink: 0; margin-top: 0.15rem; }
.formula-note strong { color: var(--text-dark); }

/* --- Nav active link --- */
.nav-active {
  color: var(--harvest-orange) !important;
  font-weight: 700;
}
.nav-active::after { width: 100% !important; }

/* ============================================================
   LIVING FIT FOR A LONG LIFE
   ============================================================ */
.fit-section {
  background: linear-gradient(160deg, #1a2f1c 0%, #243d26 50%, #1a3320 100%);
  padding: 5.5rem 0;
  position: relative;
}
.fit-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237A9E7E' fill-opacity='0.04'%3E%3Cpath d='M20 20.5V18H0v5h20v-.5zm0-9.5V9H0v5h20V11zm0 19V29H0v5h20v-4zM0 2h20V0H0v2z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.fit-section .container { position: relative; z-index: 1; }

/* Header */
.fit-header {
  text-align: center;
  margin-bottom: 3.5rem;
  color: #fff;
}
.fit-header-icon { font-size: 3rem; margin-bottom: 0.5rem; line-height: 1; }
.fit-header p {
  color: rgba(255,255,255,0.75);
  max-width: 660px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Layout */
.fit-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Input panel */
.fit-panel {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.fit-panel-header {
  background: linear-gradient(135deg, #1a4a1e, #2d6a32);
  color: #fff;
  padding: 1.5rem 2rem;
}
.fit-panel-header h3 { color: #fff; font-size: 1.3rem; margin-top: 0.5rem; }
.fit-form .calc-field { border-bottom: 1px solid var(--border-light); }
.fit-form .calc-field:last-of-type { border-bottom: none; }

/* BCS Selector */
.bcs-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.bcs-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0.25rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  text-align: center;
}
.bcs-btn:hover { border-color: var(--harvest-orange); background: rgba(212,114,42,0.06); }
.bcs-btn.active { border-color: var(--sage-green); background: rgba(122,158,126,0.1); }
.bcs-dog { font-size: 1.3rem; line-height: 1; }
.bcs-label { font-size: 0.7rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.bcs-sub { font-size: 0.6rem; color: var(--text-light); line-height: 1.3; }
.bcs-btn.active .bcs-label { color: var(--sage-dark); }

/* Goal Buttons */
.goal-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.goal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.4rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--cream);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
  text-align: center;
}
.goal-btn i { font-size: 1.1rem; color: var(--text-light); }
.goal-btn strong { font-size: 0.8rem; color: var(--text-dark); }
.goal-btn small { font-size: 0.68rem; color: var(--text-light); }
.goal-btn:hover, .goal-btn.active {
  border-color: var(--sage-green);
  background: rgba(122,158,126,0.1);
}
.goal-btn.active i { color: var(--sage-dark); }
.goal-btn.active strong { color: var(--sage-dark); }

/* Results wrap */
.fit-results-wrap { position: sticky; top: 90px; }

/* Idle state */
.fit-idle {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.fit-idle-visual { position: relative; height: 200px; overflow: hidden; }
.fit-idle-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.fit-idle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,47,28,0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.fit-idle-text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}
.fit-idle-text i { color: #7fce85; font-size: 1.2rem; }
.fit-idle-facts {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.fit-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fit-fact-icon { font-size: 1.4rem; flex-shrink: 0; }
.fit-fact strong { display: block; font-size: 0.875rem; color: var(--text-dark); margin-bottom: 0.15rem; }
.fit-fact p { font-size: 0.78rem; color: var(--text-light); line-height: 1.4; margin: 0; }

/* Results state */
.fit-results {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* BCS Result Card */
.bcs-result-card {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #f0f7f0, var(--warm-white));
}
.bcs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.bcs-score-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.bcs-score-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3.5px solid var(--sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-heading);
  color: var(--sage-dark);
  flex-shrink: 0;
}
.bcs-score-circle span { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.bcs-score-circle small { font-size: 0.65rem; color: var(--text-light); }
.bcs-score-label { font-weight: 700; font-size: 1rem; color: var(--text-dark); }
.bcs-dog-name { font-size: 0.8rem; color: var(--text-light); margin-top: 0.15rem; }
.bcs-weight-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
}
.bcs-weight-item { text-align: center; }
.bcs-w-label { display: block; font-size: 0.68rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.bcs-w-val { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.bcs-weight-item.ideal .bcs-w-val { color: var(--sage-dark); }
.bcs-weight-arrow i { color: var(--harvest-orange); font-size: 0.9rem; }

/* BCS Scale */
.bcs-scale { position: relative; padding-bottom: 2rem; }
.bcs-scale-track {
  display: flex;
  height: 22px;
  border-radius: 11px;
  overflow: hidden;
  gap: 2px;
}
.bcs-scale-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  position: relative;
}
.bcs-seg-1 { background: #9B59B6; }
.bcs-seg-2 { background: #3498DB; }
.bcs-seg-3 { background: #27AE60; }
.bcs-seg-4 { background: #E67E22; }
.bcs-seg-5 { background: #E74C3C; }
.bcs-scale-segment.active-seg { transform: scaleY(1.15); border-radius: 4px; }
.bcs-scale-pointer {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  text-align: center;
  transition: left 0.6s cubic-bezier(0.4,0,0.2,1);
}
.bcs-pointer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--earth-brown);
  border: 2px solid #fff;
  margin: 0 auto 0.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.bcs-pointer-label { font-size: 0.68rem; font-weight: 700; color: var(--text-dark); white-space: nowrap; }

/* Timeline card */
.fit-timeline-card {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.fit-timeline-card h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.fit-timeline-card h4 i { color: var(--sage-green); }
.timeline-ideal {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}
.timeline-ideal-icon { font-size: 1.5rem; flex-shrink: 0; }
.timeline-ideal strong { display: block; font-size: 0.875rem; color: var(--sage-dark); margin-bottom: 0.25rem; }
.timeline-ideal p { font-size: 0.78rem; color: var(--text-medium); margin: 0; }
.timeline-items { display: flex; flex-direction: column; gap: 0.6rem; }
.timeline-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--sage-light);
  flex-shrink: 0;
}
.timeline-dot.final {
  background: var(--sage-green);
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(122,158,126,0.2);
}
.timeline-content { flex: 1; display: flex; align-items: center; gap: 0.75rem; }
.timeline-week { font-size: 0.72rem; font-weight: 700; color: var(--text-light); width: 55px; flex-shrink: 0; }
.timeline-wt { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); width: 55px; flex-shrink: 0; }
.timeline-bar-wrap { flex: 1; height: 6px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; }
.timeline-bar-fill { height: 100%; border-radius: 3px; min-width: 4%; transition: width 0.8s ease; }
.timeline-bar-fill.lose { background: linear-gradient(90deg, #E67E22, #F39C12); }
.timeline-bar-fill.gain { background: linear-gradient(90deg, var(--sage-green), var(--sage-light)); }

/* Portions card */
.fit-portions-card {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.fit-portions-card h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.fit-portions-card h4 i { color: var(--harvest-orange); }
.phase-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 1rem;
}
.phase-card.phase-maintain { border-color: rgba(39,174,96,0.3); }
.phase-card.phase-active { border-color: rgba(212,114,42,0.3); }
.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--cream);
}
.phase-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  color: #fff;
}
.phase-badge.lose     { background: #E67E22; }
.phase-badge.gain     { background: var(--sage-dark); }
.phase-badge.maintain { background: var(--harvest-orange); }
.phase-kcal { font-size: 0.78rem; font-weight: 700; color: var(--text-medium); }
.phase-amounts {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.phase-amount-item { text-align: center; }
.phase-amount-big {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--harvest-orange);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.phase-amount-label { font-size: 0.68rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.phase-divider { font-size: 1.1rem; font-weight: 700; color: var(--text-light); padding: 0 0.25rem; }
.phase-maintain-note {
  background: rgba(122,158,126,0.08);
  border-top: 1px solid rgba(122,158,126,0.2);
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  color: var(--text-medium);
  line-height: 1.5;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.phase-maintain-note i { color: var(--sage-dark); flex-shrink: 0; margin-top: 0.15rem; }
.tips-list {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.tips-list h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tips-list h5 i { color: #F59E0B; }
.tip-item {
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.55;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-light);
}
.tip-item:last-child { border-bottom: none; }

/* Lifespan card */
.fit-lifespan-card {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.fit-lifespan-card h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.fit-lifespan-card h4 i { color: #E74C3C; }
.lifespan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.lifespan-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.lifespan-item:hover { border-color: var(--sage-light); transform: translateY(-2px); }
.lifespan-icon { font-size: 1.3rem; margin-bottom: 0.15rem; }
.lifespan-item strong { font-size: 0.875rem; color: var(--text-dark); }
.lifespan-label { font-size: 0.72rem; font-weight: 700; color: var(--sage-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.lifespan-item p { font-size: 0.75rem; color: var(--text-light); line-height: 1.45; margin: 0; }

/* Fit CTA */
.fit-cta {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(26,47,28,0.04), rgba(122,158,126,0.06));
}
.fit-cta p { font-size: 0.82rem; color: var(--text-medium); line-height: 1.6; margin-bottom: 1rem; }
.fit-cta-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ========================
   REFERENCE TABLE
   ======================== */
.fit-reference-table {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.fit-reference-table h3 {
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #1a4a1e, #2d6a32);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fit-reference-table h3 i { color: var(--sage-light); }
.ref-table-wrap { overflow-x: auto; }
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ref-table thead tr { background: var(--cream-dark); }
.ref-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}
.ref-table th small { font-size: 0.65rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.ref-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-medium);
  vertical-align: middle;
}
.ref-table td strong { color: var(--text-dark); }
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr:hover td { background: var(--cream); }
.size-pip {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.ref-medium td { background: rgba(39,174,96,0.03); }
.ref-note {
  padding: 0.85rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--cream);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.ref-note i { color: var(--sage-dark); flex-shrink: 0; margin-top: 0.1rem; }

/* ========================
   RESPONSIVE — FIT
   ======================== */
@media (max-width: 1000px) {
  .fit-layout { grid-template-columns: 1fr; }
  .fit-results-wrap { position: static; }
  .lifespan-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bcs-selector { grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
  .bcs-label { font-size: 0.62rem; }
  .bcs-sub { display: none; }
  .goal-group { grid-template-columns: repeat(3, 1fr); }
  .phase-amounts { gap: 0.25rem; }
  .lifespan-grid { grid-template-columns: 1fr; }
  .bcs-header { flex-direction: column; align-items: flex-start; }
  .fit-cta-buttons { flex-direction: column; }
  .ref-table { font-size: 0.78rem; }
  .ref-table td, .ref-table th { padding: 0.5rem 0.6rem; }
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 1000px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results-panel { position: static; }
  .formula-steps { grid-template-columns: 1fr; }
  .formula-step { border-right: none; }
  .formula-step:nth-child(3) { border-bottom: 1px solid var(--border-light); }
  .formula-step:nth-child(4) { border-bottom: none; }
}
@media (max-width: 640px) {
  .calc-hero-content { margin-left: 1.5rem; margin-right: 1.5rem; }
  .calc-field { padding: 1rem 1.25rem; }
  .calc-submit-btn { margin: 1.25rem; width: calc(100% - 2.5rem); }
  .calc-age-group { grid-template-columns: repeat(4,1fr); gap: 0.4rem; }
  .age-radio label { padding: 0.5rem 0.25rem; }
  .age-icon { font-size: 1.1rem; }
  .activity-group { grid-template-columns: repeat(2,1fr); }
  .result-cards { grid-template-columns: 1fr; }
  .result-card { border-right: none; border-bottom: 1px solid var(--border-light); }
  .monthly-estimate { grid-template-columns: 1fr; }
  .monthly-right { border-left: none; border-top: 1px solid var(--border-light); }
  .rec-meal-card { flex-direction: column; }
  .rec-meal-img-wrap { width: 100%; height: 160px; }
  .rec-meal-info { padding: 0.85rem; }
  .schedule-item { grid-template-columns: 60px 1fr 70px; }
  .schedule-label { display: none; }
  .formula-header { padding: 1.5rem; }
  .formula-step { padding: 1.25rem; }
}
