/* Child progress check-in form (uses tokens from styles.css) */
.form-page .site-header { justify-content: space-between; }
.form-wrap { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 90px; }
.form-intro h1 { margin: 0 0 14px; font-size: clamp(42px, 7vw, 72px); line-height: 1; }
.form-intro h1 em { color: var(--coral); }
.form-intro p { max-width: 640px; margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.form-intro .section-label { margin-bottom: 18px; }
.sample-note { display: inline-flex; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: 13px !important; font-weight: 800; }
.sample-note span { color: var(--peach); }

.checkin { display: grid; gap: 18px; margin-top: 30px; }
.card { min-width: 0; margin: 0; padding: 24px 24px 22px; border: 0; border-radius: 30px 30px 30px 10px; }
.card-peach { background: #f6ddd1; } .card-blue { background: #d9e7ee; } .card-yellow { background: #f6e8bf; }
.card-lilac { background: #e6dfee; } .card-cream { background: #ece7dc; } .card-green { background: #e1ead4; }
legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
legend + * { clear: both; }
.step { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--white); font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.checkin label:not(.chip) { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.checkin small { color: var(--muted); font-weight: 700; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; padding: 12px 14px; border: 2px solid transparent; border-radius: 14px; background: rgba(255, 254, 250, .85); color: var(--ink); font: 600 16px/1.4 var(--font); transition: border-color .2s, background .2s; }
input:focus, select:focus, textarea:focus { border-color: #4b6980; background: var(--white); outline: none; }
textarea { resize: vertical; }
.checkin label.inline { margin-top: 14px; }
.with-unit { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.with-unit input { max-width: 110px; }
.q { margin: 16px 0 10px; font-size: 15px; font-weight: 900; }
.q:first-of-type { margin-top: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 2px solid rgba(40, 43, 54, .1); border-radius: 999px; background: rgba(255, 254, 250, .8); font-size: 14px; font-weight: 800; transition: transform .35s var(--spring), background .2s, border-color .2s; }
.chip:hover span { transform: translateY(-2px) rotate(-1deg); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; animation: jelly .45s var(--spring); }
.chip input:focus-visible + span { outline: 3px solid #4b6980; outline-offset: 3px; }
.mood b { font-size: 18px; font-weight: 400; }
.guide { margin: 8px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 254, 250, .6); color: var(--muted); font-size: 13px; font-weight: 700; }
.tip { margin: 14px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.tip.top { margin: 0 0 12px; }
.form-error { margin: 0; padding: 12px 16px; border-radius: 14px; background: #f8d9d2; color: #8a3324; font-weight: 800; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
button.button { border: 0; cursor: pointer; font: 900 16px var(--font); }
.plain { border: 0; background: none; color: var(--ink); cursor: pointer; font: 800 15px var(--font); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Parent report */
.report { margin-top: 34px; }
.report-card { padding: 30px 28px; border: 2px solid var(--line); border-radius: 30px; background: var(--white); box-shadow: 0 16px 40px rgba(40, 43, 54, .08); animation: popIn .7s var(--spring) both; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px dashed var(--line); }
.report-head div { display: grid; text-align: right; }
.report-head strong { font-size: 18px; font-weight: 900; }
.report-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.report h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.1; }
.r-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.r-row:last-child { border-bottom: 0; }
.r-row dt { color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.r-row dd { margin: 0; font-weight: 600; }
.r-meter { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.r-meter i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.r-meter i.on { background: var(--peach); }
.report-foot { margin: 18px 0 0; padding: 12px 16px; border-radius: 16px; background: #f3efe6; color: var(--muted); font-size: 13px; font-weight: 700; }
.report .form-actions { margin-top: 18px; }


@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 20px 16px 18px; }
  .r-row { grid-template-columns: 1fr; gap: 4px; }
  .report-card { padding: 22px 18px; }
}
.sent-badge { display: inline-flex; gap: 8px; margin: 0 0 14px; padding: 10px 16px; border-radius: 999px; background: #dcefe6; font-weight: 900; animation: jelly .6s var(--spring); }
.checkin[hidden], .report[hidden], .card[hidden] { display: none; }
.with-unit input[name=score], .with-unit input[name=total] { max-width: 90px; }
.checkin label.inline { margin-top: 12px; }

/* Booking */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.day { position: relative; flex: none; cursor: pointer; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span { display: grid; justify-items: center; width: 64px; padding: 10px 0; border: 2px solid rgba(40, 43, 54, .1); border-radius: 18px; background: rgba(255, 254, 250, .85); transition: transform .35s var(--spring), background .2s; }
.day small { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.day b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.day em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 800; }
.day:hover span { transform: translateY(-3px); }
.day input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; animation: jelly .45s var(--spring); }
.day input:checked + span small, .day input:checked + span em { color: #dcdde3; }
.day input:focus-visible + span { outline: 3px solid #4b6980; outline-offset: 3px; }
.choices.mode { margin-top: 14px; }
.consent { display: flex !important; grid-auto-flow: column; align-items: flex-start; gap: 10px !important; margin-top: 14px; font-weight: 700 !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.booked { text-align: center; }
.booked h2 { margin: 8px 0 10px; font-size: 32px; }
.booked p { max-width: 460px; margin: 0 auto; font-weight: 700; }
.booked .report-foot { margin-top: 16px; }
.booked-slime svg { display: block; width: 90px; margin: 0 auto; animation: jiggle 2.6s ease-in-out infinite; transform-origin: 50% 95%; }
.booked-slime .goo { fill: var(--mint); } .booked-slime .shine { fill: #fff; opacity: .75; } .booked-slime .eye { fill: var(--ink); }
.booked-slime .cheek { fill: var(--peach); opacity: .55; } .booked-slime .mouth { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
#book[hidden], #done[hidden] { display: none; }

/* Google Calendar booking page embedded on book.html */
.booking-frame { margin-top: 26px; overflow: hidden; border: 2px solid var(--line); border-radius: 24px; background: #fff; }
.booking-frame iframe { display: block; width: 100%; height: 780px; border: 0; }
.booking-alt { display: grid; gap: 14px; justify-items: start; margin-top: 22px; }
.booking-alt p { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 620px) { .booking-frame iframe { height: 1000px; } }
