/* List a pet — builds on the theme tokens (--fern, --marigold, --cream, --tint, --line, --radius). */

/* Hero band */
.laf-hero { background: var(--cream); border-bottom: 1px solid #E3F3D2; }
.laf-hero-in { display: flex; align-items: center; gap: 40px; padding-block: 40px 88px; }
.laf-hero-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; }
.laf-hero .pill svg { width: 16px; height: 16px; fill: var(--marigold); }
.laf-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; }
.laf-ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.laf-ticks li { display: flex; align-items: center; gap: 8px; }
.laf-ticks svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--fern); color: #fff; }
.laf-hero-img { flex: 0 1 440px; min-width: 0; height: 280px; object-fit: cover; border-radius: 28px; box-shadow: 0 18px 40px rgba(22,32,28,.14); }

/* Layout: the form card overlaps the hero */
.laf { position: relative; margin-top: -56px; padding-bottom: 64px; }
.laf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.laf-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 40px rgba(22,32,28,.08); padding: 32px; }
.laf-gate, .laf-done { max-width: 640px; }
.laf-gate h2, .laf-done h2 { font-size: 1.7rem; margin-bottom: 8px; }
.laf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.laf-done-icon svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--tint); color: var(--fern); margin-bottom: 12px; }

/* Messages */
.laf-msg { border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; background: var(--tint); }
.laf-msg.warn { background: var(--warn-bg); color: var(--warn-ink); }
.laf > .laf-msg { box-shadow: 0 6px 18px rgba(22,32,28,.06); }

/* Stepper */
.laf-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.laf-steps li { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.laf-steps li::before { content: ""; height: 6px; border-radius: 3px; background: var(--line); transition: background .25s; }
.laf-steps .n { display: none; }
.laf-steps li.done::before, .laf-steps li.cur::before { background: var(--fern); }
.laf-steps li.cur { color: var(--ink); }

/* Steps */
.laf-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.laf-step > legend { display: block; width: 100%; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin-bottom: 18px; padding: 0; }
.kicker { display: block; font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fern); margin-bottom: 4px; }
.laf .lead { margin: -6px 0 16px; color: var(--muted); }
.js .laf-step:not(.cur) { display: none; }
.js .laf-step.cur { animation: lafIn .25s ease; }
@keyframes lafIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.laf-form:not(.js-ready) .laf-step + .laf-step { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Fields */
.laf .f { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.laf label, .laf .f > legend, .laf .seg > legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.laf .hint { font-weight: 500; color: var(--muted); font-size: .9rem; margin-left: 4px; }
.laf .meta { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.laf input[type=text], .laf input[type=number], .laf select, .laf textarea {
	width: 100%; min-height: 52px; font: inherit; padding: 12px 16px; color: var(--ink);
	background: #FAFAFC; border: 1.5px solid #E2E1EA; border-radius: 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.laf textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.laf input::placeholder, .laf textarea::placeholder { color: #9AA19E; }
.laf input:hover, .laf select:hover, .laf textarea:hover { border-color: #CFCAC0; }
.laf input:focus, .laf select:focus, .laf textarea:focus { outline: none; background: #fff; border-color: var(--fern); box-shadow: 0 0 0 4px rgba(31,111,92,.14); }
.laf .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.laf .join { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }

/* Pet type cards */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.type-grid label, .seg label, .toggle, .plan { margin: 0; cursor: pointer; position: relative; }
.type-grid input, .seg input, .toggle input, .plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-grid label { display: flex; }
.type-grid span { flex: 1; justify-content: flex-start; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1.5px solid #E2E1EA; border-radius: 16px; font-weight: 700; text-align: center; transition: all .15s; }
.type-grid svg { width: 30px; height: 30px; fill: #B9A88A; color: #B9A88A; transition: fill .15s; }
.type-grid label:hover span { border-color: var(--fern); }
.type-grid input:checked + span { border-color: var(--fern); background: var(--tint); box-shadow: inset 0 0 0 1px var(--fern); }
.type-grid input:checked + span svg { fill: var(--fern); }

/* Pill radios */
.seg { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid #E2E1EA; border-radius: 999px; font-weight: 600; transition: all .15s; }
.seg label:hover span { border-color: var(--fern); }
.seg input:checked + span { background: var(--fern); border-color: var(--fern); color: #fff; }

/* Focus rings for hidden inputs */
.type-grid input:focus-visible + span, .seg input:focus-visible + span, .toggle input:focus-visible + span, .plan input:focus-visible + span, .ack input:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* Toggles */
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.toggle span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 56px; border: 1.5px solid #E2E1EA; border-radius: 16px; position: relative; transition: all .15s; }
.toggle span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px; border: 2px solid #CFCAC0; background: #fff center / 16px no-repeat; transition: all .15s; }
.toggle small { color: var(--muted); }
.toggle input:checked + span { border-color: var(--fern); background: var(--tint); }
.toggle input:checked + span::before { background-color: var(--fern); border-color: var(--fern); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Photo drop zone */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 20px; text-align: center; border: 2px dashed #D9CDB6; border-radius: 20px; background: var(--cream); color: var(--muted); transition: all .15s; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop svg { width: 44px; height: 44px; color: var(--fern); padding: 8px; background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(22,32,28,.08); margin-bottom: 6px; }
.drop strong { color: var(--ink); font-size: 1.05rem; }
.drop:hover, .drop.over { border-color: var(--fern); background: var(--tint); }
.drop:focus-within { outline: 3px solid var(--marigold); outline-offset: 2px; }
.thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #EEE; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs li:first-child::after { content: "Cover"; position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--marigold); color: var(--ink); font-size: .75rem; font-weight: 800; }

/* Fee */
.money { display: flex; align-items: center; border: 1.5px solid #E2E1EA; border-radius: 14px; background: #FAFAFC; max-width: 280px; transition: all .15s; }
.money:focus-within { border-color: var(--fern); background: #fff; box-shadow: 0 0 0 4px rgba(31,111,92,.14); }
.money span { padding: 0 4px 0 16px; font-weight: 800; font-size: 1.3rem; color: var(--muted); }
.money .nz { padding: 0 16px 0 4px; font-size: .85rem; }
.laf .money input { border: 0; background: transparent; box-shadow: none; font-size: 1.3rem; font-weight: 800; padding-left: 4px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button { font: inherit; font-weight: 700; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #E2E1EA; background: #fff; color: var(--ink); cursor: pointer; }
.quick button:hover, .quick button.on { border-color: var(--fern); background: var(--tint); }
.laf .sale { display: none; margin-top: 12px; }
.laf .sale.on { display: block; }

/* Upgrade plans */
.plans { display: grid; gap: 10px; margin-top: 8px; }
.plans > legend { margin-bottom: 10px; }
.plan span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px 16px 52px; border: 1.5px solid #E2E1EA; border-radius: 16px; position: relative; transition: all .15s; }
.plan span::before { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CFCAC0; background: #fff; transition: all .15s; }
.plan strong { font-family: var(--display); font-size: 1.15rem; }
.plan em { font-style: normal; font-weight: 800; color: var(--fern); }
.plan small { grid-column: 1 / -1; color: var(--muted); }
.plan .tag { position: absolute; right: 16px; top: -11px; padding: 2px 10px; border-radius: 999px; background: var(--marigold); font-size: .75rem; font-weight: 800; }
.plan.best span { border-color: #D7EDBF; background: #FAFAFC; }
.plan:hover span { border-color: var(--fern); }
.plan input:checked + span { border-color: var(--fern); background: var(--tint); box-shadow: inset 0 0 0 1px var(--fern); }
.plan input:checked + span::before { border: 6px solid var(--fern); }

.plan.potw span { border-color: #78CC25; background: linear-gradient(135deg, #FFF8E8, #FFFFFF); }
.plan.potw strong::before { content: "\2605  "; color: var(--marigold); }
.plan .next { display: block; margin-top: 4px; color: var(--fern); font-weight: 700; }

/* Confirm */
.ack { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 500 !important; margin-top: 22px !important; padding: 16px; border-radius: 16px; background: var(--cream); }
.ack input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--fern); }

/* Nav */
.laf-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.laf-nav #laf-back { margin-right: auto; }
.laf-nav .btn { min-width: 140px; }
.js .laf-nav #laf-submit { display: none; }
.js .laf-nav.last #laf-submit { display: inline-flex; }
.js .laf-nav.last #laf-next, .js .laf-nav.first #laf-back { display: none; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .laf-steps.js-only { display: grid; }

/* Preview sidebar */
.laf-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.side-label { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.laf-preview { box-shadow: 0 14px 40px rgba(22,32,28,.08); }
.laf-preview h3 { font-size: 1.3rem; overflow-wrap: anywhere; }
.pv-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #9C8E74; font-weight: 600; }
.pv-empty svg { width: 36px; height: 36px; fill: #CBBFA8; }
.laf-tips { padding: 20px; border-radius: 20px; background: var(--tint); }
.laf-tips h3 { font-size: 1.1rem; margin-bottom: 8px; }
.laf-tips ul { margin: 0 0 10px; padding-left: 18px; }
.laf-tips li { margin-bottom: 6px; }

@media (max-width: 960px) {
	.laf-grid { grid-template-columns: 1fr; }
	.laf-side { position: static; order: -1; }
	.laf-side .laf-tips, .laf-side .side-label { display: none; }
	.laf-preview { display: none; }
	.laf-hero-img { display: none; }
}
@media (max-width: 600px) {
	.laf-hero-in { padding-block: 28px 72px; }
	.laf-card { padding: 22px 18px; border-radius: 20px; }
	.laf .two, .toggles { grid-template-columns: 1fr; }
	.laf-steps .t { font-size: .72rem; }
	.laf-nav { position: sticky; bottom: 0; background: #fff; margin: 24px -18px -22px; padding: 14px 18px; border-radius: 0 0 20px 20px; box-shadow: 0 -6px 16px rgba(22,32,28,.06); }
	.laf-nav .btn { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .js .laf-step.cur { animation: none; } }

/* Order summary */
.laf-order { list-style: none; margin: 16px 0 20px; padding: 0; border: 1px solid var(--line); border-radius: 16px; }
.laf-order li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.laf-order li:last-child { border-bottom: 0; }
.laf-order .total { background: var(--cream); font-weight: 700; border-radius: 0 0 16px 16px; }

.type-grid input:checked + span svg { color: var(--fern); }
.laf input::placeholder, .laf textarea::placeholder { color: #6B7570; }
.laf-form { scroll-padding-bottom: 96px; }

/* Listing strength checklist */
.laf-score { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.laf-score-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.laf-score h3 { margin: 0; font-size: 1rem; }
.laf-score-top strong { color: var(--fern); font-size: .9rem; }
.laf-meter { height: 8px; margin: 10px 0 12px; border-radius: 99px; background: #EDECF2; overflow: hidden; }
.laf-meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #78CC25, #B4EA6E); transition: width .4s cubic-bezier(.22,1,.36,1); }
.laf-score ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.laf-score li { position: relative; padding-left: 26px; }
.laf-score li::before { content: ""; position: absolute; left: 0; top: .15em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #D6D5DD; }
.laf-score li.is-done { color: var(--ink); }
.laf-score li.is-done::before { border-color: #78CC25; background: #78CC25 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323301C' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.laf-score.is-great { border-color: #CDEBAE; background: #F1F9E8; }
.js .laf-score.js-only { display: block; margin-top: 0; }

/* Kind of pet: photo tiles */
.type-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.type-grid span { padding: 10px 8px 12px; gap: 4px; background: #fff; border-radius: 20px; line-height: 1.2; font-size: .95rem; color: #1F3A26; }
.type-grid span img { width: 100%; max-width: 120px; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .2s ease; }
.type-grid label:hover span { box-shadow: 0 8px 20px rgba(35, 48, 28, .10); }
.type-grid label:hover span img { transform: translateY(-3px) scale(1.04); }
.type-grid input:checked + span { position: relative; }
.type-grid input:checked + span::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--fern); color: #fff; font-size: .8rem; display: grid; place-items: center; }
@media (max-width: 560px) { .type-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .type-grid span { font-size: .82rem; padding: 6px 4px 10px; } }
@media (prefers-reduced-motion: reduce) { .type-grid span img { transition: none; } }
.type-grid input:checked + span { background: #fff; }

/* Pip on the "listing submitted" screen */
.laf-pip { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-bottom: 14px; }
.laf-pip .pip-pic { animation: laf-pip-hop .6s cubic-bezier(.34,1.56,.64,1) backwards; }
.laf-pip-say { position: relative; max-width: 260px; margin: 0 0 40px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--tint, #F1F9E8); font-size: 15px; text-align: left; }
.laf-pip-say b { color: var(--fern, #3E7D0E); white-space: nowrap; }
@keyframes laf-pip-hop { from { transform: translateY(16px) scale(.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .laf-pip .pip-pic { animation: none; } }
.laf-ai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.laf-ai-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--fern); background: var(--tint); color: #2F6B0A; font: inherit; font-weight: 700; cursor: pointer; transition: all .15s; }
.laf-ai-btn:hover { background: var(--fern); color: #fff; }
.laf-ai-btn:disabled { opacity: .6; cursor: wait; }
.laf-ai-btn svg { width: 18px; height: 18px; }
.laf-ai small { color: #6b7280; font-size: 13px; flex: 1 1 220px; }
.plans-why { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #F3F9EC; color: #2c3a22; font-size: 14px; line-height: 1.45; }
.plans-why svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--fern); }
.plan em i { display: block; font-style: normal; font-weight: 500; font-size: 12px; color: #6b7280; text-align: right; }
.laf-cam { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.laf-cam[hidden] { display: none; }
.laf-cam-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--fern); color: #fff; font-weight: 800; cursor: pointer; }
.laf-cam-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.laf-cam-btn svg { width: 20px; height: 20px; }
.laf-cam small { color: var(--muted); font-size: 13px; flex: 1 1 180px; }
.thumbs .rm { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(22,32,28,.75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }


/* Rehoming or selling */
.laf-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.laf-mode label { position: relative; margin: 0; cursor: pointer; }
.laf-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.laf-mode span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1.5px solid #E2E1EA; border-radius: 18px; transition: all .15s; }
.laf-mode span::after { content: ""; position: absolute; right: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfd2c8; box-sizing: border-box; }
.laf-mode .mi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: #2F6B0A; margin-bottom: 4px; }
.laf-mode .mi svg { width: 22px; height: 22px; }
.laf-mode strong { font-size: 1.1rem; }
.laf-mode em { font-style: normal; font-weight: 800; color: var(--fern); }
.laf-mode small { color: var(--muted); line-height: 1.35; padding-right: 8px; }
.laf-mode label:hover span { border-color: var(--fern); }
.laf-mode input:checked + span { border-color: var(--fern); background: #F9FDF4; box-shadow: inset 0 0 0 1px var(--fern); }
.laf-mode input:checked + span::after { border: 6px solid var(--fern); }
.laf-mode input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.laf-fee[data-mode="rehome"] .for-sale, .laf-fee[data-mode="sale"] .for-rehome { display: none !important; }
.laf-msg.info { background: #FFF8E8; border: 1px solid #F2DFAE; color: #4a3a12; }
.linkish { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) { .laf-mode { grid-template-columns: 1fr; } }
#pv-img:not([hidden]) + .pv-empty { display: none; }

/* "Families looking" (pets wanted) after publishing */
.laf-wanted { margin-top: 18px; background: linear-gradient(135deg, #F1F9E8, #fff); border: 1.5px solid #D4EDB8; }
.laf-wanted h2 { font-size: 1.25rem; margin: 0 0 4px; }
.laf-wanted > p { color: var(--muted); }
.laf-wanted ul { list-style: none; margin: 12px 0; padding: 0; }
.laf-wanted li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #E6EFD9; font-size: .92rem; }
.laf-wanted li span:last-child { color: var(--muted); }
.laf-wanted .pw-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #E8F6D8; color: #2F6B0A; font-weight: 800; }
