/**
 * Pet Care Community Pet Food Portion Calculator — Styles
 * 5-step wizard: Species → Pet Details → Body Condition → Food Type → Results
 * Prefix: pk-fc
 */

/* ============================================================
   0. Custom Properties
   ============================================================ */

:root {
  --pk-fc-brand: #1a2b3c;
  --pk-fc-orange: #f97316;
  --pk-fc-orange-light: #fff7ed;
  --pk-fc-orange-dark: #c2410c;
  --pk-fc-green: #16a34a;
  --pk-fc-green-light: #f0fdf4;
  --pk-fc-teal: #0d9488;
  --pk-fc-teal-light: #f0fdfa;
  --pk-fc-red: #dc2626;
  --pk-fc-red-light: #fef2f2;
  --pk-fc-amber: #d97706;
  --pk-fc-amber-light: #fffbeb;
  --pk-fc-white: #ffffff;
  --pk-fc-grey-50: #f9fafb;
  --pk-fc-grey-100: #f3f4f6;
  --pk-fc-grey-200: #e5e7eb;
  --pk-fc-grey-300: #d1d5db;
  --pk-fc-grey-400: #9ca3af;
  --pk-fc-grey-600: #4b5563;
  --pk-fc-grey-700: #374151;
  --pk-fc-grey-900: #111827;
  --pk-fc-radius: 12px;
  --pk-fc-radius-sm: 6px;
  --pk-fc-radius-pill: 9999px;
  --pk-fc-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --pk-fc-shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --pk-fc-shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --pk-fc-transition: 0.25s ease;
}

/* ============================================================
   0b. Screen Reader Only
   ============================================================ */

.pk-fc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   1. Hero / Intro Section
   ============================================================ */

.pk-fc-hero {
  padding: calc(var(--nav-height, 80px) + 3rem) 2rem 3rem;
  background: linear-gradient(135deg, var(--pk-fc-brand) 0%, #0f1b29 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Radial gradient overlay for depth */
.pk-fc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(249,115,22,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(13,148,136,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.pk-fc-hero,
.pk-fc-hero h1,
.pk-fc-hero p,
.pk-fc-hero span {
  color: var(--pk-fc-white) !important;
}

.pk-fc-hero .section__header {
  margin-bottom: 0;
}

.pk-fc-hero__title {
  font-family: var(--font-base);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pk-fc-white);
  margin: 0 0 0.75rem;
  position: relative;
}

.pk-fc-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--pk-fc-orange) !important;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 620px;
  position: relative;
}

.pk-fc-hero__intro {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 2rem;
  position: relative;
}

.pk-fc-hero__intro p {
  margin-bottom: 1rem;
}

.pk-fc-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  position: relative;
}

.pk-fc-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pk-fc-white);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--pk-fc-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pk-fc-hero__trust-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.pk-fc-hero__trust-label {
  font-size: 0.8125rem;
}

/* ============================================================
   2. Tool Container
   ============================================================ */

.pk-fc {
  max-width: 960px;
  margin: -1.5rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.pk-fc__inner {
  background: var(--pk-fc-white);
  border-radius: var(--pk-fc-radius);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 2.5rem;
}

/* ============================================================
   3. Progress Bar
   ============================================================ */

.pk-fc__progress {
  padding: 2rem 2.5rem 0;
}

/* Track — horizontal bar that shows overall progress */
.pk-fc__progress-track {
  position: relative;
  height: 4px;
  background: var(--pk-fc-grey-200);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

/* Filled portion of the track bar */
.pk-fc__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--pk-fc-orange);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps — horizontal row of numbered step indicators */
.pk-fc__progress-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

/* Connecting line behind the dots */
.pk-fc__progress-steps::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--pk-fc-grey-200);
  z-index: 0;
}

.pk-fc__progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

/* Numbered circle (replaces old .pk-fc__progress-dot) */
.pk-fc__progress-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pk-fc-white);
  border: 2px solid var(--pk-fc-grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pk-fc-grey-400);
  transition: all 0.3s ease;
}

/* Active step */
.pk-fc__progress-step.is-active .pk-fc__progress-num {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange);
  color: var(--pk-fc-white);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

/* Completed step */
.pk-fc__progress-step.is-complete .pk-fc__progress-num {
  border-color: var(--pk-fc-green);
  background: var(--pk-fc-green);
  color: var(--pk-fc-white);
}

.pk-fc__progress-step.is-complete .pk-fc__progress-num::after {
  content: "\2713";
  font-size: 0.875rem;
}

.pk-fc__progress-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--pk-fc-grey-400);
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.pk-fc__progress-step.is-active .pk-fc__progress-label {
  color: var(--pk-fc-orange);
}

.pk-fc__progress-step.is-complete .pk-fc__progress-label {
  color: var(--pk-fc-green);
}

/* ============================================================
   4. Step Container
   ============================================================ */

.pk-fc__step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.pk-fc__step.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: pkFcFadeIn 0.4s ease forwards;
}

.pk-fc__step.is-entering {
  animation: pkFcFadeIn 0.4s ease forwards;
}

.pk-fc__step.is-leaving {
  animation: pkFcFadeOut 0.3s ease forwards;
}

.pk-fc__step-title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--pk-fc-grey-900);
  margin: 0 0 0.5rem;
}

.pk-fc__step-desc {
  font-size: 0.9375rem;
  color: var(--pk-fc-grey-600);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

/* ============================================================
   5. Species Selection Cards
   ============================================================ */

.pk-fc__species-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.pk-fc__species-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 120px;
  padding: 1.25rem 0.75rem;
  background: var(--pk-fc-white);
  border: 2px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  font-family: inherit;
  font-size: inherit;
  color: var(--pk-fc-grey-900);
}

.pk-fc__species-card:hover {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pk-fc__species-card:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

.pk-fc__species-card.is-selected {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange-light);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.pk-fc__species-card.is-selected::after {
  content: "\2713";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--pk-fc-orange);
  color: var(--pk-fc-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.pk-fc__species-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.pk-fc__species-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pk-fc-grey-900);
}

/* ============================================================
   6. Form Fields
   ============================================================ */

/* Field wrapper */
.pk-fc__field {
  margin-bottom: 1.5rem;
}

.pk-fc__field:last-child {
  margin-bottom: 0;
}

.pk-fc__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pk-fc-grey-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pk-fc__label-hint {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--pk-fc-grey-400);
  margin-left: 0.25rem;
}

/* Text / number inputs */
.pk-fc__input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-base);
  color: var(--pk-fc-grey-900);
  background: var(--pk-fc-white);
  border: 2px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.pk-fc__input::placeholder {
  color: var(--pk-fc-grey-400);
}

.pk-fc__input:focus {
  outline: none;
  border-color: var(--pk-fc-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.pk-fc__input:disabled {
  background: var(--pk-fc-grey-50);
  color: var(--pk-fc-grey-400);
  cursor: not-allowed;
}

/* Select dropdown */
.pk-fc__select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-base);
  color: var(--pk-fc-grey-900);
  background: var(--pk-fc-white);
  border: 2px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5C5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.pk-fc__select:focus {
  outline: none;
  border-color: var(--pk-fc-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Radio group (horizontal pills) */
.pk-fc__radio-group {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* Template structure: <label class="pk-fc__radio-pill"><input type="radio"> <span>text</span></label> */
label.pk-fc__radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-base);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pk-fc-grey-700);
  background: var(--pk-fc-white);
  border: 2px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

label.pk-fc__radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

label.pk-fc__radio-pill:hover {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange-light);
}

/* Checked state — label wraps input, so use :has() */
label.pk-fc__radio-pill:has(input:checked) {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange);
  color: var(--pk-fc-white);
}

label.pk-fc__radio-pill:has(input:focus-visible) {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

/* Field row (side-by-side fields) */
.pk-fc__field-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.pk-fc__field-row > .pk-fc__field {
  flex: 1;
  margin-bottom: 0;
}

.pk-fc__field-row > .pk-fc__field--auto {
  flex: 0 0 auto;
}

/* Field error */
.pk-fc__field-error {
  font-size: 0.8125rem;
  color: var(--pk-fc-red);
  margin-top: 0.375rem;
  display: none;
  line-height: 1.4;
}

.pk-fc__field.has-error .pk-fc__field-error {
  display: block;
}

.pk-fc__field.has-error .pk-fc__input,
.pk-fc__field.has-error .pk-fc__select {
  border-color: var(--pk-fc-red);
}

/* Checkbox (desexed toggle) */
.pk-fc__checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--pk-fc-grey-50);
  border: 1px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius-sm);
  transition: all 0.2s ease;
}

.pk-fc__checkbox:hover {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange-light);
}

.pk-fc__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pk-fc-orange);
  cursor: pointer;
  flex-shrink: 0;
}

.pk-fc__checkbox-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pk-fc-grey-700);
  line-height: 1.4;
}

.pk-fc__checkbox-hint {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--pk-fc-grey-400);
  display: block;
  margin-top: 0.125rem;
}

/* ============================================================
   6b. Additional Form Elements (matching template)
   ============================================================ */

/* Optional / Required badges */
.pk-fc__optional {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--pk-fc-grey-400);
}

.pk-fc__required {
  color: var(--pk-fc-red);
  font-weight: 700;
}

/* Field hint text */
.pk-fc__field-hint {
  font-size: 0.8125rem;
  color: var(--pk-fc-grey-400);
  line-height: 1.5;
  margin-top: 0.375rem;
  margin-bottom: 0;
}

/* Inline field pair (age years + months) */
.pk-fc__field-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.pk-fc__field-inline .pk-fc__input--small {
  width: 80px;
  flex: 0 0 auto;
}

.pk-fc__field-suffix {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pk-fc-grey-600);
  white-space: nowrap;
}

/* Unit toggle (kg / lbs buttons) */
.pk-fc__unit-toggle {
  display: flex;
  background: var(--pk-fc-grey-100);
  border-radius: var(--pk-fc-radius-pill);
  padding: 3px;
  flex-shrink: 0;
}

.pk-fc__unit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-base);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pk-fc-grey-600);
  background: transparent;
  border: none;
  border-radius: var(--pk-fc-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 48px;
}

.pk-fc__unit-btn.is-active {
  background: var(--pk-fc-white);
  color: var(--pk-fc-orange);
  box-shadow: var(--pk-fc-shadow);
}

.pk-fc__unit-btn:hover:not(.is-active) {
  color: var(--pk-fc-grey-900);
}

/* Mix slider wrap */
.pk-fc__mix-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pk-fc__mix-slider-wrap .pk-fc__mix-slider {
  flex: 1;
  padding: 0;
}

.pk-fc__mix-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pk-fc-grey-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.pk-fc__mix-value {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pk-fc-orange);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Nav center alignment (results step) */
.pk-fc__nav--center {
  justify-content: center;
}

/* Restart button */
.pk-fc__btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-fc-orange);
  background: transparent;
  border: 2px solid var(--pk-fc-orange);
  border-radius: var(--pk-fc-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.pk-fc__btn-restart:hover {
  background: var(--pk-fc-orange);
  color: var(--pk-fc-white);
  transform: translateY(-1px);
}

.pk-fc__btn-restart:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

/* ============================================================
   7. BCS Visual Selector
   ============================================================ */

.pk-fc__bcs {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* Hide scrollbar */
.pk-fc__bcs::-webkit-scrollbar {
  height: 0;
  display: none;
}

.pk-fc__bcs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pk-fc__bcs-card {
  flex: 0 0 auto;
  width: 90px;
  padding: 0.75rem 0.5rem;
  background: var(--pk-fc-white);
  border: 2px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pk-fc__bcs-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pk-fc-shadow-md);
}

.pk-fc__bcs-card:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

/* BCS number */
.pk-fc__bcs-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pk-fc-grey-900);
  line-height: 1;
}

/* One-word label */
.pk-fc__bcs-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pk-fc-grey-600);
  line-height: 1.2;
}

/* Short description */
.pk-fc__bcs-desc {
  font-size: 0.5625rem;
  color: var(--pk-fc-grey-400);
  line-height: 1.3;
  margin-top: 0.125rem;
}

/* Category-coloured bottom border */
/* Underweight: BCS 1-3 */
.pk-fc__bcs-card[data-bcs="1"],
.pk-fc__bcs-card[data-bcs="2"],
.pk-fc__bcs-card[data-bcs="3"] {
  border-bottom: 3px solid var(--pk-fc-red);
}

/* Ideal: BCS 4-5 */
.pk-fc__bcs-card[data-bcs="4"],
.pk-fc__bcs-card[data-bcs="5"] {
  border-bottom: 3px solid var(--pk-fc-green);
  background: var(--pk-fc-green-light);
}

/* Overweight: BCS 6-8 */
.pk-fc__bcs-card[data-bcs="6"],
.pk-fc__bcs-card[data-bcs="7"],
.pk-fc__bcs-card[data-bcs="8"] {
  border-bottom: 3px solid var(--pk-fc-amber);
}

/* Obese / critical: BCS 9 */
.pk-fc__bcs-card[data-bcs="9"] {
  border-bottom: 3px solid #991b1b;
}

/* Selected BCS card */
.pk-fc__bcs-card.is-selected {
  border-color: var(--pk-fc-orange);
  box-shadow: var(--pk-fc-shadow-md);
  transform: translateY(-2px);
}

/* BCS warning box (BCS 6+) */
.pk-fc__bcs-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--pk-fc-amber-light);
  border: 1px solid #fbbf24;
  border-radius: var(--pk-fc-radius-sm);
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.5;
}

.pk-fc__bcs-warning::before {
  content: "\26A0\FE0F";
  flex-shrink: 0;
  font-size: 1.125rem;
}

/* BCS danger box (BCS 9) */
.pk-fc__bcs-danger {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--pk-fc-red-light);
  border: 1px solid #fecaca;
  border-radius: var(--pk-fc-radius-sm);
  font-size: 0.875rem;
  color: #991b1b;
  line-height: 1.5;
}

.pk-fc__bcs-danger::before {
  content: "\1F6A8";
  flex-shrink: 0;
  font-size: 1.125rem;
}

/* ============================================================
   8. Food Selection
   ============================================================ */

/* Food type grid (Dry / Wet / Mixed / Raw / Manual) */
.pk-fc__food-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.pk-fc__food-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 90px;
  padding: 1rem 0.5rem;
  background: var(--pk-fc-white);
  border: 2px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  color: var(--pk-fc-grey-900);
}

.pk-fc__food-type-btn:hover {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pk-fc__food-type-btn:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

.pk-fc__food-type-btn.is-selected {
  border-color: var(--pk-fc-orange);
  background: var(--pk-fc-orange-light);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.pk-fc__food-type-icon {
  font-size: 1.75rem;
  line-height: 1;
}

/* Food type button text (plain <span> in template) */
.pk-fc__food-type-btn > span:not(.pk-fc__food-type-icon) {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pk-fc-grey-700);
}

/* Mix slider (wet/dry percentage) — input has class .pk-fc__mix-slider */
input.pk-fc__mix-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--pk-fc-orange) 0%,
    var(--pk-fc-orange) var(--pk-fc-mix, 50%),
    var(--pk-fc-grey-200) var(--pk-fc-mix, 50%),
    var(--pk-fc-grey-200) 100%
  );
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 0;
}

input.pk-fc__mix-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pk-fc-orange);
  border: 3px solid var(--pk-fc-white);
  box-shadow: var(--pk-fc-shadow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input.pk-fc__mix-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input.pk-fc__mix-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pk-fc-orange);
  border: 3px solid var(--pk-fc-white);
  box-shadow: var(--pk-fc-shadow);
  cursor: pointer;
}

input.pk-fc__mix-slider::-moz-range-track {
  height: 6px;
  background: var(--pk-fc-grey-200);
  border-radius: 3px;
}

/* ============================================================
   9. Results Card
   ============================================================ */

.pk-fc__results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: pkFcFadeIn 0.5s ease forwards;
}

/* Results header */
.pk-fc__results-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pk-fc-grey-200);
}

.pk-fc__results-pet-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--pk-fc-orange);
  margin: 0 0 0.25rem;
}

.pk-fc__results-plan-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pk-fc-grey-600);
  margin: 0;
}

/* Calories badge */
.pk-fc__results-calories {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.pk-fc__results-calories-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2rem;
  background: var(--pk-fc-green-light);
  border: 2px solid var(--pk-fc-green);
  border-radius: var(--pk-fc-radius);
  animation: pkFcPulse 2s ease-in-out 1;
}

.pk-fc__results-calories-num {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--pk-fc-green);
  line-height: 1;
}

.pk-fc__results-calories-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15803d;
  margin-top: 0.25rem;
}

/* Primary result (hero stat) */
.pk-fc__results-primary {
  text-align: center;
  padding: 1.5rem;
  background: var(--pk-fc-grey-50);
  border-radius: var(--pk-fc-radius);
}

.pk-fc__results-primary-amount {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--pk-fc-grey-900);
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.pk-fc__results-primary-label {
  font-size: 0.9375rem;
  color: var(--pk-fc-grey-600);
  margin: 0;
}

/* Secondary result (split portions) */
.pk-fc__results-secondary {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--pk-fc-grey-50);
  border-radius: var(--pk-fc-radius-sm);
}

.pk-fc__results-secondary-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pk-fc-grey-700);
  margin: 0 0 0.25rem;
}

.pk-fc__results-secondary-sub {
  font-size: 0.8125rem;
  color: var(--pk-fc-grey-400);
  margin: 0;
}

/* Mixed feeding breakdown */
.pk-fc__results-mixed {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  border-radius: 0 var(--pk-fc-radius-sm) var(--pk-fc-radius-sm) 0;
}

.pk-fc__results-mixed-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 0.75rem;
}

.pk-fc__results-mixed-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--pk-fc-grey-700);
}

.pk-fc__results-mixed-row + .pk-fc__results-mixed-row {
  border-top: 1px solid #bfdbfe;
  padding-top: 0.5rem;
}

.pk-fc__results-mixed-label {
  font-weight: 600;
  min-width: 50px;
}

/* Treats callout */
.pk-fc__results-treats {
  padding: 1.25rem 1.5rem;
  background: var(--pk-fc-amber-light);
  border: 1px solid #fbbf24;
  border-radius: var(--pk-fc-radius-sm);
}

.pk-fc__results-treats-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.5rem;
}

.pk-fc__results-treats-text {
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

/* Weight-loss timeline */
.pk-fc__results-timeline {
  padding: 1.25rem 1.5rem;
  background: var(--pk-fc-grey-50);
  border-radius: var(--pk-fc-radius-sm);
}

.pk-fc__results-timeline-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pk-fc-grey-900);
  margin: 0 0 0.75rem;
}

.pk-fc__results-timeline-bar {
  width: 100%;
  height: 10px;
  background: var(--pk-fc-grey-200);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.pk-fc__results-timeline-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pk-fc-orange), var(--pk-fc-green));
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.pk-fc__results-timeline-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pk-fc-grey-700);
  margin: 0 0 0.25rem;
}

.pk-fc__results-timeline-note {
  font-size: 0.8125rem;
  color: var(--pk-fc-grey-400);
  margin: 0;
}

/* BCS feedback */
.pk-fc__results-bcs {
  padding: 1rem 1.25rem;
  border-radius: var(--pk-fc-radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pk-fc__results-bcs--underweight {
  background: var(--pk-fc-red-light);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.pk-fc__results-bcs--ideal {
  background: var(--pk-fc-green-light);
  border: 1px solid #bbf7d0;
  color: #166534;
}

.pk-fc__results-bcs--overweight {
  background: var(--pk-fc-amber-light);
  border: 1px solid #fbbf24;
  color: #92400e;
}

.pk-fc__results-bcs--obese {
  background: var(--pk-fc-red-light);
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

/* Life stage tip */
.pk-fc__results-tip {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--pk-fc-teal-light);
  border: 1px solid #99f6e4;
  border-radius: var(--pk-fc-radius-sm);
}

.pk-fc__results-tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.pk-fc__results-tip-body {
  flex: 1;
}

.pk-fc__results-tip-headline {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f766e;
  margin: 0 0 0.375rem;
}

.pk-fc__results-tip-text {
  font-size: 0.875rem;
  color: #115e59;
  line-height: 1.6;
  margin: 0;
}

/* Warning (hepatic lipidosis, vet required) */
.pk-fc__results-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--pk-fc-red-light);
  border: 2px solid var(--pk-fc-red);
  border-radius: var(--pk-fc-radius-sm);
}

.pk-fc__results-warning::before {
  content: "\26A0\FE0F";
  flex-shrink: 0;
  font-size: 1.25rem;
}

.pk-fc__results-warning-title {
  font-size: 1rem;
  font-weight: 700;
  color: #991b1b;
  margin: 0 0 0.375rem;
}

.pk-fc__results-warning-text {
  font-size: 0.875rem;
  color: #7f1d1d;
  line-height: 1.6;
  margin: 0;
}

/* CTA buttons */
.pk-fc__results-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--pk-fc-grey-200);
}

.pk-fc__results-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-fc-white);
  background: var(--pk-fc-orange);
  border: none;
  border-radius: var(--pk-fc-radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  text-align: center;
}

.pk-fc__results-cta-primary:hover {
  background: var(--pk-fc-orange-dark);
  transform: translateY(-1px);
}

.pk-fc__results-cta-primary:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

.pk-fc__results-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-fc-orange);
  background: transparent;
  border: 2px solid var(--pk-fc-orange);
  border-radius: var(--pk-fc-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.pk-fc__results-cta-secondary:hover {
  background: var(--pk-fc-orange-light);
  transform: translateY(-1px);
}

.pk-fc__results-cta-secondary:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

/* Disclaimer */
.pk-fc__results-disclaimer {
  padding: 1rem 1.25rem;
  background: var(--pk-fc-grey-50);
  border-radius: var(--pk-fc-radius-sm);
  font-size: 0.8125rem;
  color: var(--pk-fc-grey-400);
  line-height: 1.6;
}

/* ============================================================
   10. Volume-Based Results (Rabbit / Guinea Pig / Bird)
   ============================================================ */

.pk-fc__volume-results {
  border: 1px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius-sm);
  overflow: hidden;
}

.pk-fc__volume-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pk-fc__volume-results-table thead th {
  background: var(--pk-fc-grey-50);
  font-weight: 700;
  color: var(--pk-fc-grey-900);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--pk-fc-grey-200);
  white-space: nowrap;
}

.pk-fc__volume-results-table tbody td {
  padding: 0.75rem 1rem;
  color: var(--pk-fc-grey-700);
  border-bottom: 1px solid var(--pk-fc-grey-200);
  line-height: 1.5;
}

.pk-fc__volume-results-table tbody tr:last-child td {
  border-bottom: none;
}

.pk-fc__volume-results-table tbody tr:hover {
  background: var(--pk-fc-grey-50);
}

/* Row colour coding */
.pk-fc__volume-results-table tbody tr.pk-fc__volume-row--hay {
  background: var(--pk-fc-green-light);
}

.pk-fc__volume-results-table tbody tr.pk-fc__volume-row--veg {
  background: var(--pk-fc-teal-light);
}

.pk-fc__volume-results-table tbody tr.pk-fc__volume-row--pellet {
  background: var(--pk-fc-amber-light);
}

/* Special callouts */
.pk-fc__volume-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--pk-fc-radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pk-fc__volume-callout--vitc {
  background: var(--pk-fc-amber-light);
  border: 1px solid #fbbf24;
  color: #92400e;
}

.pk-fc__volume-callout--hay {
  background: var(--pk-fc-green-light);
  border: 1px solid #bbf7d0;
  color: #166534;
}

.pk-fc__volume-callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ============================================================
   11. Navigation Buttons
   ============================================================ */

.pk-fc__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pk-fc-grey-200);
}

.pk-fc__btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-base);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pk-fc-grey-600);
  background: transparent;
  border: 2px solid var(--pk-fc-grey-200);
  border-radius: var(--pk-fc-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.pk-fc__btn-prev::before {
  content: "\2190";
}

.pk-fc__btn-prev:hover {
  border-color: var(--pk-fc-grey-600);
  color: var(--pk-fc-grey-900);
}

.pk-fc__btn-prev:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

.pk-fc__btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-fc-white);
  background: var(--pk-fc-orange);
  border: none;
  border-radius: var(--pk-fc-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  margin-left: auto;
}

.pk-fc__btn-next::after {
  content: "\2192";
}

.pk-fc__btn-next:hover {
  background: var(--pk-fc-orange-dark);
  transform: translateY(-1px);
}

.pk-fc__btn-next:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

.pk-fc__btn-next:disabled,
.pk-fc__btn-calculate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pk-fc__btn-calculate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pk-fc-white);
  background: var(--pk-fc-green);
  border: none;
  border-radius: var(--pk-fc-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  margin-left: auto;
}

.pk-fc__btn-calculate:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.pk-fc__btn-calculate:focus-visible {
  outline: 3px solid var(--pk-fc-green);
  outline-offset: 2px;
}

/* ============================================================
   12. FAQ Section
   ============================================================ */

.pk-fc-faq {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.pk-fc-faq__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--pk-fc-grey-900);
  margin: 0 0 1.5rem;
  text-align: center;
}

.pk-fc-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pk-fc-faq__item {
  border-bottom: 1px solid var(--pk-fc-grey-200);
}

.pk-fc-faq__item:first-of-type {
  border-top: 1px solid var(--pk-fc-grey-200);
}

.pk-fc-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 0;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pk-fc-grey-900);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  gap: 1rem;
  transition: color 0.2s ease;
}

.pk-fc-faq__question:hover {
  color: var(--pk-fc-orange);
}

.pk-fc-faq__question:focus-visible {
  outline: 3px solid var(--pk-fc-orange);
  outline-offset: -3px;
}

.pk-fc-faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--pk-fc-grey-400);
  transition: transform 0.3s ease;
}

.pk-fc-faq__item.is-open .pk-fc-faq__chevron {
  transform: rotate(180deg);
}

.pk-fc-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pk-fc-faq__item.is-open .pk-fc-faq__answer {
  max-height: 500px;
}

.pk-fc-faq__answer-inner {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--pk-fc-grey-600);
  line-height: 1.7;
}

.pk-fc-faq__answer-inner p {
  margin: 0 0 0.75rem;
}

.pk-fc-faq__answer-inner p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   13. SEO Content Section
   ============================================================ */

.pk-fc-seo {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.pk-fc-seo__section {
  background: var(--pk-fc-white);
  border-radius: var(--pk-fc-radius);
  box-shadow: var(--pk-fc-shadow);
  padding: 2rem 2rem 2rem 2.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--pk-fc-grey-200);
}

.pk-fc-seo__heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pk-fc-grey-900);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.pk-fc-seo__text {
  font-size: 0.9375rem;
  color: var(--pk-fc-grey-600);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.pk-fc-seo__text:last-child {
  margin-bottom: 0;
}

/* ============================================================
   14. Animations
   ============================================================ */

@keyframes pkFcFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pkFcFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes pkFcPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ============================================================
   15. Responsive — Tablet (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .pk-fc__inner {
    padding: 2rem;
  }

  .pk-fc__progress {
    padding: 1.5rem 2rem 0;
  }

  .pk-fc__species-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pk-fc__food-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pk-fc__results-cta {
    flex-direction: column;
  }

  .pk-fc__results-cta-primary,
  .pk-fc__results-cta-secondary {
    width: 100%;
    min-width: unset;
  }
}

/* ============================================================
   15. Responsive — Mobile (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {
  .pk-fc-hero {
    padding: calc(var(--nav-height, 80px) + 2rem) 1.25rem 2rem;
  }

  .pk-fc-hero__trust {
    gap: 0.75rem;
  }

  .pk-fc-hero__trust-item {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }

  .pk-fc {
    margin: -1rem 0.75rem 2rem;
  }

  .pk-fc__inner {
    border-radius: var(--pk-fc-radius-sm);
  }

  .pk-fc__inner {
    padding: 1.5rem 1.25rem;
  }

  /* Progress: hide labels on mobile */
  .pk-fc__progress {
    padding: 1.25rem 1.25rem 0;
  }

  .pk-fc__progress-label {
    display: none;
  }

  .pk-fc__progress-num {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
  }

  .pk-fc__progress-steps::before {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  /* Species grid */
  .pk-fc__species-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .pk-fc__species-card {
    min-height: 100px;
    padding: 1rem 0.5rem;
  }

  .pk-fc__species-icon {
    font-size: 2rem;
  }

  /* Food type grid */
  .pk-fc__food-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .pk-fc__food-type-btn {
    min-height: 80px;
  }

  /* Field rows: stack */
  .pk-fc__field-row {
    flex-direction: column;
    gap: 0;
  }

  .pk-fc__field-row > .pk-fc__field {
    margin-bottom: 1.5rem;
  }

  .pk-fc__field-row > .pk-fc__field:last-child {
    margin-bottom: 0;
  }

  /* Radio pills: wrap more freely */
  .pk-fc__radio-group {
    gap: 0.5rem;
  }

  label.pk-fc__radio-pill {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* Results card */
  .pk-fc__results-primary {
    padding: 1.25rem 1rem;
  }

  .pk-fc__results-mixed {
    padding: 1rem 1.25rem;
  }

  .pk-fc__results-tip {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Navigation */
  .pk-fc__nav {
    flex-wrap: wrap;
  }

  .pk-fc__btn-prev,
  .pk-fc__btn-next,
  .pk-fc__btn-calculate {
    flex: 1;
    justify-content: center;
  }

  /* FAQ */
  .pk-fc-faq {
    padding: 0 1.25rem;
    margin: 2rem auto;
  }

  /* Volume results */
  .pk-fc__volume-results {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pk-fc__volume-results-table {
    min-width: 500px;
  }

  /* SEO sections */
  .pk-fc-seo__section {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  }
}

/* ============================================================
   15. Responsive — Small Mobile (max-width: 479px)
   ============================================================ */

@media (max-width: 479px) {
  .pk-fc-hero {
    padding: calc(var(--nav-height, 80px) + 1.5rem) 1rem 1.5rem;
  }

  .pk-fc-hero__trust-item {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  .pk-fc {
    margin: -0.75rem 0.5rem 1.5rem;
  }

  .pk-fc__inner {
    padding: 1.25rem 1rem;
  }

  /* Compact progress dots */
  .pk-fc__progress {
    padding: 1rem 1rem 0;
  }

  .pk-fc__progress-num {
    width: 22px;
    height: 22px;
    font-size: 0.5625rem;
  }

  .pk-fc__progress-steps::before {
    top: 11px;
    left: 11px;
    right: 11px;
  }

  /* Species */
  .pk-fc__species-card {
    min-height: 90px;
    padding: 0.75rem 0.5rem;
    gap: 0.375rem;
  }

  .pk-fc__species-icon {
    font-size: 1.75rem;
  }

  .pk-fc__species-name {
    font-size: 0.75rem;
  }

  /* Step text */
  .pk-fc__step-title {
    font-size: 1.25rem;
  }

  .pk-fc__step-desc {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  /* BCS cards tighter */
  .pk-fc__bcs-card {
    width: 78px;
    padding: 0.625rem 0.375rem;
  }

  .pk-fc__bcs-num {
    font-size: 1.125rem;
  }

  /* Results font sizes */
  .pk-fc__results-calories-badge {
    padding: 1rem 1.5rem;
  }

  .pk-fc__results-primary {
    padding: 1rem;
  }

  .pk-fc__results-primary-amount {
    font-size: 1.5rem;
  }

  /* Food type */
  .pk-fc__food-type-btn {
    min-height: 72px;
    padding: 0.75rem 0.25rem;
  }

  .pk-fc__food-type-icon {
    font-size: 1.5rem;
  }

  .pk-fc__food-type-btn > span:not(.pk-fc__food-type-icon) {
    font-size: 0.6875rem;
  }

  /* Nav buttons: stack vertically */
  .pk-fc__nav {
    flex-direction: column;
  }

  .pk-fc__btn-prev {
    width: 100%;
    justify-content: center;
    order: 2;
  }

  .pk-fc__btn-next,
  .pk-fc__btn-calculate {
    width: 100%;
    justify-content: center;
    order: 1;
    margin-left: 0;
  }
}

/* ============================================================
   15. Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .pk-fc__step.is-active,
  .pk-fc__step.is-entering,
  .pk-fc__step.is-leaving {
    animation: none;
  }

  .pk-fc__results {
    animation: none;
  }

  .pk-fc__results-calories-badge {
    animation: none;
  }

  .pk-fc__results-timeline-fill {
    transition: none;
  }

  .pk-fc__progress-bar {
    transition: none;
  }

  .pk-fc__progress-num,
  .pk-fc__progress-label {
    transition: none;
  }

  .pk-fc-faq__answer {
    transition: none;
  }

  .pk-fc-faq__chevron {
    transition: none;
  }

  .pk-fc__species-card,
  .pk-fc__food-type-btn,
  .pk-fc__bcs-card,
  label.pk-fc__radio-pill,
  .pk-fc__unit-btn,
  .pk-fc__checkbox {
    transition: none;
  }

  .pk-fc__btn-prev,
  .pk-fc__btn-next,
  .pk-fc__btn-calculate,
  .pk-fc__btn-restart,
  .pk-fc__results-cta-primary,
  .pk-fc__results-cta-secondary {
    transition: none;
  }

  input.pk-fc__mix-slider::-webkit-slider-thumb {
    transition: none;
  }
}

/* ============================================================
   16. Print Styles
   ============================================================ */

@media print {
  .pk-fc-hero,
  .pk-fc__progress,
  .pk-fc__nav,
  .pk-fc-faq,
  .pk-fc__results-cta {
    display: none;
  }

  .pk-fc__results {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .pk-fc__inner {
    box-shadow: none;
  }

  .pk-fc {
    margin: 0 auto;
  }

  .pk-fc__results-calories-badge {
    animation: none;
  }
}

/* ============================================================
   Utility: Focus-visible for accessibility
   ============================================================ */

.pk-fc__species-card:focus-visible,
.pk-fc__food-type-btn:focus-visible,
.pk-fc__bcs-card:focus-visible,
.pk-fc__btn-prev:focus-visible,
.pk-fc__btn-next:focus-visible,
.pk-fc__btn-calculate:focus-visible,
.pk-fc__btn-restart:focus-visible,
.pk-fc__results-cta-primary:focus-visible,
.pk-fc__results-cta-secondary:focus-visible,
.pk-fc-faq__question:focus-visible {
  outline: 2px solid var(--pk-fc-orange);
  outline-offset: 2px;
}

/* ============================================================
   Email Capture — Soft Ask After Results
   ============================================================ */

.pk-fc__email-capture {
  margin-top: 32px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 2px solid var(--pk-fc-orange);
  border-radius: 16px;
  text-align: center;
  animation: pk-fc-email-fade 0.5s ease;
}

@keyframes pk-fc-email-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pk-fc__email-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.pk-fc__email-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pk-fc-brand);
  margin: 0 0 6px;
}

.pk-fc__email-subtext {
  font-size: 0.92rem;
  color: #6b7280;
  margin: 0 0 16px;
}

.pk-fc__email-form {
  position: relative;
}

.pk-fc__email-row {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.pk-fc__email-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.pk-fc__email-input:focus {
  outline: none;
  border-color: var(--pk-fc-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.pk-fc__btn--email {
  padding: 12px 20px;
  background: var(--pk-fc-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.pk-fc__btn--email:hover {
  background: var(--pk-fc-orange-dark);
  transform: translateY(-1px);
}

.pk-fc__btn--email:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.pk-fc__email-privacy {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 10px 0 0;
}

.pk-fc__email-error {
  color: var(--pk-fc-red);
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.pk-fc__email-success {
  padding: 8px 0;
}

.pk-fc__email-success-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

/* Email capture responsive */
@media (max-width: 480px) {
  .pk-fc__email-row {
    flex-direction: column;
  }

  .pk-fc__btn--email {
    width: 100%;
  }

  .pk-fc__email-capture {
    padding: 22px 16px;
  }
}
