@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Open+Sans:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:         #edf8f2;
  --c-hero:       #b8e4d2;
  --c-white:      #ffffff;
  --c-cta:        #2c7060;
  --c-dk-green:   #1a3d2b;
  --c-footer:     #0e2c1c;
  --c-btn:        #4cbf52;
  --c-btn-hover:  #3aaa40;
  --c-orange:     #e85a18;
  --c-text:       #222222;
  --c-mid:        #555555;
  --c-border:     #c4ddd0;
  --c-error:      #d32f2f;
  --font-h:       'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-b:       'Open Sans', system-ui, sans-serif;
  --max:          680px;
}

body { font-family: var(--font-b); background: var(--c-bg); color: var(--c-text); font-size: 16px; line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; }

/* ── Layout ─────────────────────────────────── */
.inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Placeholder image blocks ───────────────── */
.img-ph {
  width: 100%; border-radius: 8px;
  background: linear-gradient(135deg, #a8d8c0 0%, #c8eadc 100%);
  display: flex; align-items: center; justify-content: center;
  color: #4a8a6a; font-size: .8rem; letter-spacing: .05em;
  text-transform: uppercase; font-weight: 600;
}

/* ── Hero ────────────────────────────────────── */
/* #c4e9e2 sampled from the PDF — adjust if designer provides exact hex */
.hero { background: #c4e9e2; font-size: 0; line-height: 0; }
.hero__img { display: block; width: 100%; height: auto; }

/* ── Brand bar ───────────────────────────────── */
.brand-bar { background: #1a3d2b; padding: 14px 24px; }
.brand-bar .inner { display: flex; align-items: center; justify-content: center; }
.brand-bar__logo {
  font-family: var(--font-h); font-size: 1.9rem; font-weight: 900;
  color: #fff; letter-spacing: .04em; text-transform: uppercase;
}

/* ── What Is ─────────────────────────────────── */
.what-is { background: #D3E8CB; padding: 52px 24px; text-align: center; }
.what-is__img-ph { height: 300px; margin: 0 auto 28px; }
.what-is__body {
  color: #1a3d2b;
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
}

/* ── CTA / Kit ───────────────────────────────── */
.cta { background: #4CC3CF; padding: 44px 24px; color: var(--c-white); }

/* Top row: headings left, box image right */
.cta__top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.cta__top-text { flex: 1; min-width: 0; }

.cta__eyebrow {
  font-family: var(--font-h); font-size: 2.4rem; font-weight: 900;
  text-transform: uppercase; line-height: 1.08; margin-bottom: 10px;
  color: var(--c-white);
}
.cta__heading {
  font-family: var(--font-h); font-size: 2.8rem; font-weight: 900;
  text-transform: uppercase; line-height: 1.04;
  color: #085538;
}

/* Product box image (top-right of section) */
.cta__box-img {
  flex-shrink: 0;
  width: 150px;
  height: 200px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  border-radius: 8px;
  font-size: .72rem;
}

/* Tagline + body */
.cta__tagline {
  font-size: .85rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 8px;
}
.cta__desc { font-size: .9rem; line-height: 1.65; margin-bottom: 28px; }

/* Bottom two-column grid: dogs left, kit list right */
.cta__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.cta__dogs-img {
  height: 260px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  border-radius: 8px;
  font-size: .72rem;
}
.cta__kit-col { display: flex; flex-direction: column; }
.kit-box {
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 16px 18px;
}
.kit-box__title {
  font-family: var(--font-h); font-size: .9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.kit-box ul { list-style: none; }
.kit-box li { padding: 3px 0 3px 16px; font-size: .82rem; position: relative; line-height: 1.5; }
.kit-box li::before { content: '•'; position: absolute; left: 0; color: var(--c-dk-green); }

@media (max-width: 500px) {
  .cta__top { flex-direction: column; }
  .cta__box-img { width: 100%; height: 180px; }
  .cta__cols { grid-template-columns: 1fr; }
  .cta__dogs-img { height: 200px; }
}

/* ── Form section ────────────────────────────── */
.form-section { background: var(--c-bg); padding: 52px 24px; }
.form-section__heading {
  font-family: var(--font-h); font-size: 1.45rem; font-weight: 800;
  text-transform: uppercase; text-align: center; color: var(--c-dk-green);
  letter-spacing: .05em; margin-bottom: 32px;
}
.entry-form { max-width: 560px; margin: 0 auto; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.form-row--three { grid-template-columns: 2fr 1fr 1fr; }
.form-row--full  { grid-template-columns: 1fr; }

.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--c-dk-green); margin-bottom: 5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--c-border); border-radius: 4px;
  padding: 10px 12px; font-family: var(--font-b); font-size: .9rem;
  color: var(--c-text); background: var(--c-white); width: 100%;
  transition: border-color .18s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--c-cta); }
.form-field input.is-err,
.form-field select.is-err,
.form-field textarea.is-err { border-color: var(--c-error); }
.form-field textarea { min-height: 88px; resize: vertical; }
.field-err { font-size: .72rem; color: var(--c-error); margin-top: 3px; display: none; }
.field-err.show { display: block; }

/* Upload */
.upload-area { margin-bottom: 18px; }
.upload-trigger {
  display: inline-block; background: var(--c-dk-green); color: var(--c-white);
  font-family: var(--font-h); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 10px 24px;
  border-radius: 4px; cursor: pointer; border: none; transition: background .18s;
}
.upload-trigger:hover { background: #2e5c46; }
#photo-input { display: none; }
.upload-name { font-size: .78rem; color: var(--c-mid); margin-top: 6px; }
.upload-err  { font-size: .72rem; color: var(--c-error); margin-top: 4px; display: none; }
.upload-err.show { display: block; }

/* Checkboxes */
.cb-group { margin-bottom: 18px; }
.cb-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .82rem; color: var(--c-mid); line-height: 1.45;
  margin-bottom: 10px;
}
.cb-item input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--c-cta); cursor: pointer;
}
.cb-item.is-err label { color: var(--c-error); }
.cb-item a { color: var(--c-cta); text-decoration: underline; }

.form-msg {
  padding: 10px 14px; border-radius: 4px; font-size: .84rem;
  margin-bottom: 16px; display: none;
}
.form-msg.show { display: block; }
.form-msg--err  { background: #fde8e8; border: 1px solid var(--c-error); color: #b71c1c; }
.form-msg--ok   { background: #e8f5e9; border: 1px solid #388e3c; color: #1b5e20; }

.btn-submit {
  display: block; width: 100%; background: var(--c-dk-green); color: var(--c-white);
  font-family: var(--font-h); font-weight: 900; font-size: 1.1rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 14px;
  border: none; border-radius: 4px; cursor: pointer; transition: background .18s;
}
.btn-submit:hover    { background: #2e5c46; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Family section ──────────────────────────── */
.family { background: #CEEBF0; padding: 52px 24px; text-align: center; }
.family__heading {
  font-family: var(--font-h); font-size: 2.1rem; font-weight: 900;
  text-transform: uppercase; color: #0F5B3F; line-height: 1.08;
  margin-bottom: 14px;
}
.family__body { color: #0F5B3F; font-size: .95rem; max-width: 520px; margin: 0 auto 28px; }
.family .img-ph { height: 180px; background: #f0f8f4; color: #8ab89a; margin-bottom: 22px; }
.retailer-note { font-size: .85rem; color: var(--c-mid); margin-bottom: 20px; }
.retailer-note a { color: var(--c-cta); text-decoration: underline; }
.btn-retailer {
  display: inline-block; background: var(--c-cta); color: var(--c-white);
  font-family: var(--font-h); font-weight: 700; font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 13px 32px;
  border-radius: 30px; text-decoration: none; transition: background .18s;
}
.btn-retailer:hover { background: #235c4c; }

/* ── Footer ──────────────────────────────────── */
.site-footer { background: var(--c-footer); padding: 44px 24px; text-align: center; color: var(--c-white); }
.footer__ig-icon { width: 28px; height: 28px; margin: 0 auto 10px; }
.footer__follow  { font-family: var(--font-h); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.footer__hashtags { font-size: .78rem; color: var(--c-btn); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 26px; }
.footer__logo { max-width: 140px; margin: 0 auto 14px; }
.footer__tc   { font-size: .7rem; color: rgba(255,255,255,.45); text-decoration: none; }
.footer__tc:hover { color: rgba(255,255,255,.75); }

/* ── Thank-you ───────────────────────────────── */
.ty { background: var(--c-white); padding: 56px 24px; text-align: center; }
.ty__heading {
  font-family: var(--font-h); font-size: 2.9rem; font-weight: 900;
  text-transform: uppercase; line-height: 1.04; margin-bottom: 18px; color: var(--c-dk-green);
}
.ty__heading .hi  { color: var(--c-btn); }
.ty__body { font-size: .95rem; color: var(--c-mid); max-width: 480px; margin: 0 auto 32px; }
.ty .img-ph { height: 280px; max-width: 480px; margin: 0 auto 30px; }

/* ── Closed ──────────────────────────────────── */
.closed { background: var(--c-bg); padding: 60px 24px; text-align: center; }
.closed__heading { font-family: var(--font-h); font-size: 2.3rem; font-weight: 900; text-transform: uppercase; color: var(--c-dk-green); line-height: 1.06; margin-bottom: 14px; }
.closed__body    { font-size: .95rem; color: var(--c-mid); max-width: 440px; margin: 0 auto 28px; }
.closed .img-ph  { height: 180px; margin: 0 auto 28px; }

/* ── Rules ───────────────────────────────────── */
.rules { background: var(--c-bg); padding: 52px 24px; }
.rules__heading  { font-family: var(--font-h); font-size: 2.6rem; font-weight: 900; text-transform: uppercase; color: var(--c-dk-green); margin-bottom: 24px; }
.rules__products { height: 180px; margin-bottom: 28px; }
.rules__scroll   { background: var(--c-cta); color: var(--c-white); border-radius: 8px; padding: 28px; font-size: .87rem; line-height: 1.75; max-height: 420px; overflow-y: auto; }
.rules__scroll p + p { margin-top: 12px; }

/* ── 404 ─────────────────────────────────────── */
.err404 { background: var(--c-bg); padding: 64px 24px; text-align: center; }
.err404__heading { font-family: var(--font-h); font-size: 2.6rem; font-weight: 900; text-transform: uppercase; color: var(--c-dk-green); margin-bottom: 10px; }
.err404__sub     { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; color: var(--c-btn); margin-bottom: 28px; }
.err404 .img-ph  { height: 180px; margin: 0 auto 32px; }

/* ── Shared green button ─────────────────────── */
.btn-green {
  display: inline-block; background: var(--c-btn); color: var(--c-white);
  font-family: var(--font-h); font-weight: 700; font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 13px 32px;
  border-radius: 30px; text-decoration: none; border: none;
  cursor: pointer; transition: background .18s;
}
.btn-green:hover { background: var(--c-btn-hover); }

/* ── T&C Modal ───────────────────────────────── */
.tc-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.tc-overlay.open { display: flex; animation: tcFadeIn .2s ease; }
@keyframes tcFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tc-modal {
  background: var(--c-white); border-radius: 10px;
  width: 100%; max-width: 660px; max-height: 82vh;
  display: flex; flex-direction: column; overflow: hidden;
  position: relative; box-shadow: 0 12px 48px rgba(0,0,0,.3);
  animation: tcSlideUp .2s ease;
}
@keyframes tcSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.tc-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 1.9rem;
  line-height: 1; cursor: pointer; color: var(--c-mid); z-index: 1; padding: 4px;
}
.tc-close:hover { color: var(--c-text); }
.tc-modal__body { overflow-y: auto; padding: 32px 28px 28px; }

/* ── Admin ───────────────────────────────────── */
.adm-wrap { min-height: 100vh; background: #f4f7f5; font-family: var(--font-b); }
.adm-header {
  background: var(--c-footer); color: var(--c-white); padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.adm-header h1 { font-family: var(--font-h); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.adm-header a  { color: rgba(255,255,255,.65); text-decoration: none; font-size: .85rem; }
.adm-header a:hover { color: var(--c-white); }
.adm-body { padding: 28px 24px; max-width: 1280px; margin: 0 auto; }

.adm-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f0f4f2; }
.adm-login-box  { background: var(--c-white); padding: 40px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.1); width: 100%; max-width: 370px; }
.adm-login-box h1 { font-family: var(--font-h); font-size: 1.5rem; font-weight: 900; text-transform: uppercase; color: var(--c-dk-green); margin-bottom: 26px; text-align: center; }
.adm-field { margin-bottom: 16px; }
.adm-field label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-mid); margin-bottom: 5px; }
.adm-field input { width: 100%; border: 1.5px solid #ddd; border-radius: 4px; padding: 10px 12px; font-size: .9rem; font-family: var(--font-b); transition: border-color .18s; }
.adm-field input:focus { outline: none; border-color: var(--c-cta); }
.adm-btn { width: 100%; background: var(--c-dk-green); color: var(--c-white); font-family: var(--font-h); font-weight: 900; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; padding: 12px; border: none; border-radius: 4px; cursor: pointer; margin-top: 8px; transition: background .18s; }
.adm-btn:hover { background: #2e5c46; }
.adm-err { background: #fde8e8; border: 1px solid var(--c-error); color: #b71c1c; padding: 9px 13px; border-radius: 4px; font-size: .82rem; margin-bottom: 14px; }

/* Filter bar */
.filter-bar { background: var(--c-white); padding: 18px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filter-bar label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-mid); margin-bottom: 4px; }
.filter-bar input[type="date"] { border: 1.5px solid #ddd; border-radius: 4px; padding: 7px 10px; font-size: .85rem; font-family: var(--font-b); }
.filter-bar input[type="date"]:focus { outline: none; border-color: var(--c-cta); }
.filter-bar button, .filter-bar .export-btn { padding: 8px 18px; border-radius: 4px; font-family: var(--font-h); font-weight: 700; font-size: .83rem; letter-spacing: .06em; text-transform: uppercase; border: none; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-filt  { background: var(--c-cta); color: var(--c-white); }
.btn-filt:hover { background: #235c4c; }
.btn-reset { background: #e0e0e0; color: #444; }
.btn-reset:hover { background: #ccc; }
.export-btn { background: #333; color: var(--c-white); margin-left: auto; }
.export-btn:hover { background: #111; }

.dash-count { font-size: .84rem; color: var(--c-mid); margin-bottom: 12px; }

/* Entries table */
.tbl-wrap { overflow-x: auto; }
.entries-tbl { width: 100%; border-collapse: collapse; background: var(--c-white); border-radius: 8px; overflow: hidden; font-size: .84rem; }
.entries-tbl th { background: var(--c-dk-green); color: var(--c-white); padding: 10px 12px; text-align: left; font-family: var(--font-h); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; white-space: nowrap; }
.entries-tbl td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.entries-tbl tr:last-child td { border-bottom: none; }
.entries-tbl tr:hover td { background: #f5faf7; }
.thumb-link img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; }
.no-photo { color: #bbb; font-size: .76rem; }
.chk-y { color: var(--c-btn); font-weight: 700; }

/* Lightbox */
.lb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 999; align-items: center; justify-content: center; }
.lb-overlay.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: 6px; }
.lb-close { position: fixed; top: 18px; right: 22px; color: #fff; font-size: 2.2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 540px) {
  .form-row, .form-row--three { grid-template-columns: 1fr; }
  .hero__headline { font-size: 2.3rem; }
  .cta__heading   { font-size: 2rem; }
  .ty__heading    { font-size: 2rem; }
  .filter-bar     { flex-direction: column; align-items: stretch; }
  .export-btn     { margin-left: 0; }
}
