/* form-ui.css — calm, sectioned layout for the consumer Worksheet form (v112.31).
   Presentation only: every id / .fstep / .show hook that forms.js reveal + validation logic
   depends on is unchanged. Scoped to .wsform (worksheet form) and .wsform-plan (tier line). */

/* ---- Groups + rhythm ---- */
.wsform .fg{margin-bottom:18px}
.wsform .fstep.show{margin-bottom:18px}
.wsform #fs-submit.show{margin-top:6px;margin-bottom:8px}
.wsform-eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary);margin:0 0 8px}
.wsform .field-label{font-size:.75rem;font-weight:600;color:var(--text-secondary);margin-bottom:5px}
.wsform .field{font-size:1rem;min-height:44px}
.wsform .field:disabled{background:var(--surface-3);color:var(--text-muted);border-style:dashed;cursor:not-allowed}
.wsform .field:disabled::placeholder{color:var(--text-muted);opacity:.8}
.wsform-help{font-size:.75rem;line-height:1.45;color:var(--text-muted)}
.wsform-notes{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:6px}
.wsform-notes .wsform-tuned{color:var(--primary);font-weight:500}
.wsform-footnote{font-size:.75rem;line-height:1.45;color:var(--text-muted);text-align:center;margin:0;padding:0 8px}
.wsform .grade-lock-hint{font-size:.75rem!important;margin-top:8px!important}

/* ---- "For" row: grade + board on one line at 375 px ---- */
.wsform-for{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:10px}
.wsform-for .pills{flex-wrap:nowrap;gap:5px}
.wsform-for .pill{flex:1 1 0;justify-content:center;padding:0 6px;min-height:44px;font-size:.8125rem}

/* ---- "Chapter" group: textbook free-text + photo helper ---- */
.wsform #fTextbookOther{margin-top:8px}
.wsform-photo{margin-top:10px}
.wsform-photo-row{display:flex;flex-direction:column;gap:8px}
.wsform-photo-row p{margin:0}
.wsform-photo-row .btn{min-height:44px;font-size:.875rem}
.wsform-photo #fChapterPhotoStatus{margin:6px 0 0}
.wsform-photo #fChapterPhotoInline{margin-top:8px}

/* ---- "Style" row: question types + difficulty; difficulty spans full width when types are hidden ---- */
.wsform-style{gap:10px;align-items:start}
.wsform-style>#fs-fmt-wrap[style*="none"]+#fs-options{grid-column:1/-1}
.wsform-info{font-size:.75rem;font-weight:400;color:var(--text-muted);cursor:help}

/* ---- Plan line (tier selector) — shared by worksheet + quiz forms ---- */
.wsform-plan{margin-bottom:18px}
.wsform-seg{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1.5px solid var(--border);border-radius:12px;background:var(--white);overflow:hidden}
.wsform-seg-opt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:52px;padding:8px 6px;cursor:pointer;text-align:center;color:var(--text-secondary);transition:background .15s,color .15s;user-select:none}
.wsform-seg-opt+.wsform-seg-opt{border-left:1.5px solid var(--border)}
.wsform-seg-opt input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.wsform-seg-opt.sel{background:var(--primary);color:var(--on-accent)}
.wsform-seg-title{font-size:.875rem;font-weight:600;line-height:1.25}
.wsform-seg-sub{font-size:.75rem;line-height:1.3;opacity:.85}
.wsform-seg-opt.sel .wsform-seg-sub{opacity:.9}
.wsform-plan .wsform-help{margin-top:7px;text-align:center}
.wsform-plan-line{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-3);font-size:.75rem;line-height:1.45;color:var(--text-muted)}
.wsform-plan-line b{color:var(--text);font-weight:600}
.wsform-link{color:var(--primary);font-weight:600;text-decoration:none;white-space:nowrap;min-height:24px;display:inline-flex;align-items:center}@media(hover:hover){.wsform-link:hover{text-decoration:underline}}.wsform-link:active{text-decoration:underline}
.pricing-purchase{display:flex;flex-direction:column;gap:8px;margin:16px 0;min-width:0}.pricing-purchase button{white-space:normal;min-height:44px;height:auto;padding:12px;line-height:1.4}.pricing-expiry{font-size:.8125rem;line-height:1.6;overflow-wrap:anywhere;margin:8px 0}.pricing-balance{font-weight:700;font-size:1.125rem;line-height:1.5}#generationPricingPanel button{min-height:44px;margin:4px 0;max-width:100%}#generationPricingPanel h2{font-size:1.375rem;margin:0 0 14px}[hidden]{display:none!important}
