/* MixFeeder Calculator: pastel yellow and pastel blue theme */
:root {
  --blue: #7f93ab;
  --blue-dark: #3d2213;
  --blue-light: #e9edf3;
  --yellow: #f6b44a;
  --yellow-dark: #e08f2a;
  --yellow-light: #fdeed8;
  --yellow-pale: #fff8ee;
  --ink: #2a1a0f;
  --muted: #6e5a4c;
  --bg: #fffaf3;
  --error: #b3261e;
  --max: 1080px;
  --round: "Chalkboard SE", "Comic Sans MS", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-size: 13px;
  margin: 0;
  font-family: var(--round);
  color: var(--ink);
  background: transparent;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { color: var(--blue-dark); line-height: 1.25; font-family: var(--round); font-weight: 700; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: #f6c25c; color: #3d2213; border-bottom: 4px solid #3d2213; }
.site-header .container { display: flex; align-items: center; height: 44px; }
.brand { text-decoration: none; color: #3d2213; font-weight: 700; font-size: 11px; letter-spacing: .3px; }
.brand-icon { display: inline-block; width: 24px; height: 20px; margin-right: 6px; vertical-align: middle; background: url("../img/dog-silhouette.svg?v=2026110504") center / contain no-repeat; }

/* Hero */
.hero { position: relative; background: transparent; border-bottom: 1px solid #f6c25c; }
.hero img { width: min(420px, 100%); height: auto; }
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 5px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(29px, 5vw, 45px); color: #3d2213; }
.hero p { margin: 0; max-width: 480px; font-size: 15px; color: #3d2213; }

/* Sections */
.section { padding: 40px 0 56px; }
.intro { max-width: 680px; margin: 0 0 24px; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--yellow); color: var(--ink); border: 0; cursor: pointer;
  padding: 12px 28px; border-radius: 6px; font: inherit; font-weight: 700; font-size: 14px;
}
.btn:hover { background: var(--yellow-dark); }
.btn:focus-visible, .product-option:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--yellow-dark); padding: 10px 24px; margin: 0 6px 10px 0; }
.btn-outline:hover { background: var(--yellow-pale); }

/* Disclaimer */
.calc-disclaimer { background: var(--yellow-light); border-left: 6px solid var(--blue); border-radius: 6px; padding: 20px 24px; margin-bottom: 24px; }
.calc-disclaimer p { margin: 0 0 12px; }
.calc-disclaimer .field { margin-bottom: 0; }

/* Form */
.enquiry-form { background: #fff; border-radius: 10px; padding: 32px; box-shadow: 0 6px 24px rgba(242, 189, 22, .18); border-top: 6px solid var(--yellow); }
.calc-form h2, .calc-admin h2 { font-size: 19px; margin: 28px 0 16px; }
.calc-form h2:first-child { margin-top: 0; }
.calc-form h2::before, .calc-results h2::before { content: ""; display: inline-block; width: 36px; height: 18px; margin-right: 10px; vertical-align: middle; background: url("../img/bone-cream.png?v=2026110504") center / contain no-repeat; }
.calc-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .calc-form legend, .field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field textarea, .calc-form select {
  width: 100%; font: inherit; font-size: 13px; color: var(--ink); background: #fff;
  border: 1px solid #8a94a8; border-radius: 6px; padding: 11px 12px;
}
.field input[type="radio"], .field input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--blue); vertical-align: middle; }
.field.check label { display: inline; font-weight: 400; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-hint { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 11px; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.form-note { font-size: 11px; color: var(--muted); }
.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.calc-kibble-pct { font-size: 19px; font-weight: 700; color: var(--blue-dark); margin: 8px 0 0; }
.product-results { list-style: none; padding: 0; margin: 8px 0 0; }
.product-option { width: 100%; text-align: left; background: var(--yellow-pale); border: 1px solid #c4d8f0; border-radius: 6px; padding: 10px 12px; margin-bottom: 6px; font: inherit; cursor: pointer; color: var(--ink); }
.product-option:hover { background: var(--yellow-light); }

/* Results */
.calc-results { background: #fff; border-radius: 10px; padding: 32px; box-shadow: 0 6px 24px rgba(242, 189, 22, .18); margin-top: 24px; border-top: 6px solid var(--blue); }
.calc-results h2 { margin-top: 0; }
.calc-results h3 { margin: 20px 0 8px; color: var(--blue-dark); }
.calc-results ul { padding-left: 0; list-style: none; margin: 0 0 8px; }
.calc-results li { margin-bottom: 4px; }

/* Admin */
.calc-admin { margin-top: 24px; }
.calc-admin .btn { margin-right: 8px; }

/* Footer */
.site-footer { background: #f6c25c; color: #3d2213; padding: 28px 0; margin-top: 24px; border-top: 4px solid #3d2213; }
.copyright { font-size: 11px; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .enquiry-form, .calc-results { padding: 22px; }
}

/* Two-column calculator: inputs on the left, results on the right */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.calc-side { position: sticky; top: 24px; }
.calc-placeholder { background: #fff; border-radius: 10px; padding: 32px; border-top: 6px solid var(--blue); box-shadow: 0 6px 24px rgba(242, 189, 22, .18); color: var(--muted); }
.calc-placeholder h2 { margin-top: 0; }
.calc-placeholder p { margin: 0; }
.calc-side .calc-results { margin-top: 0; }
@media (max-width: 860px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-side { position: static; }
}

/* Body shape guide (body condition score table) */
.shape-guide { margin: -8px 0 20px; }
.shape-guide summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.shape-guide .field-hint { margin: 8px 0 12px; }
.shape-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.shape-table th, .shape-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #f3e7a8; vertical-align: middle; }
.shape-table th { color: var(--blue-dark); font-weight: 700; }
.shape-table td:first-child { font-weight: 700; width: 56px; }
.waist-figure { width: 100%; height: auto; margin: 4px 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.calc-consent { margin: 4px 0 18px; }

/* Ratio note under each feeding style */
.ratio-note { display: block; margin: 2px 0 0 26px; font-size: 11px; color: var(--muted); }

/* Kibble entry mode choice */
#calc-mode legend { margin-bottom: 8px; }


