/*
 * intake-form.css
 *
 * Field/card/signature styling shared by the public intake form
 * (views/pages/intake/form.njk, under layouts/public-form.njk) and the
 * intake form builder's live preview (views/pages/settings/intake-forms/builder.njk,
 * under layouts/app.njk). Extracted from what used to be an inline <style> block
 * in public-form.njk so the builder preview can render pixel-identical output
 * instead of a hand-maintained second copy — see views/partials/intake-field-render.njk,
 * which both pages include for the field markup itself.
 */
.intake-page { min-height: 100vh; background: linear-gradient(135deg, #f0f4ff 0%, #fef7ff 50%, #fff5f0 100%); }
.intake-header { padding: 1.25rem 1rem; text-align: center; border-bottom: 1px solid #e5e7eb; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.intake-header__logo { height: 40px; width: auto; object-fit: contain; margin-bottom: 0.25rem; }
.intake-header__name { font-size: 1.125rem; font-weight: 600; color: #1e293b; font-family: 'Outfit', sans-serif; }
.intake-container { max-width: 640px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.intake-card { background: #fff; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04); padding: 1.75rem 1.5rem; }
.intake-footer { text-align: center; padding: 1.5rem 1rem; font-size: 0.75rem; color: #94a3b8; }
.intake-footer a { color: #64748b; text-decoration: none; font-weight: 500; }
.intake-section-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-bottom: 0.25rem; font-family: 'Outfit', sans-serif; }
.intake-section-desc { font-size: 0.875rem; color: #64748b; margin-bottom: 1.5rem; line-height: 1.5; }
.intake-field { margin-bottom: 1.25rem; }
.intake-field label { display: block; font-size: 0.8125rem; font-weight: 600; color: #374151; margin-bottom: 0.375rem; }
.intake-field input, .intake-field select, .intake-field textarea { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.9375rem; font-family: inherit; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; min-height: 44px; }
.intake-field input:focus, .intake-field select:focus, .intake-field textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.intake-field textarea { min-height: 88px; resize: vertical; }
.intake-field--error input, .intake-field--error select, .intake-field--error textarea { border-color: #ef4444; }
.intake-field__error { font-size: 0.75rem; color: #ef4444; margin-top: 0.25rem; }
.intake-field--checkbox { display: flex; align-items: flex-start; gap: 0.625rem; }
.intake-field--checkbox input[type="checkbox"] { width: 20px; height: 20px; min-height: auto; margin-top: 0.125rem; accent-color: #6366f1; flex-shrink: 0; }
.intake-field--checkbox label { margin-bottom: 0; font-weight: 400; }
.intake-radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.intake-radio-option { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: #374151; cursor: pointer; }
.intake-radio-option input[type="radio"] { width: 18px; height: 18px; min-height: auto; accent-color: #6366f1; }
.intake-paragraph { font-size: 0.875rem; color: #475569; line-height: 1.65; margin-bottom: 1rem; padding: 0.75rem 1rem; background: #f8fafc; border-radius: 0.5rem; border-left: 3px solid #6366f1; }
.intake-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.intake-nav__btn { flex: 1; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 600; cursor: pointer; border: none; min-height: 48px; transition: background 0.15s, transform 0.1s; font-family: inherit; }
.intake-nav__btn:active { transform: scale(0.98); }
.intake-nav__btn--back { background: #f1f5f9; color: #475569; }
.intake-nav__btn--back:hover { background: #e2e8f0; }
.intake-nav__btn--next, .intake-nav__btn--submit { background: linear-gradient(135deg, #52c4ca, #31b3ba); color: #fff; }
.intake-nav__btn--next:hover, .intake-nav__btn--submit:hover { background: linear-gradient(135deg, #31b3ba, #0f766e); }
.intake-nav__btn--submit:disabled { opacity: 0.5; cursor: not-allowed; }
.signature-pad { border: 2px dashed #d1d5db; border-radius: 0.75rem; background: #fafafa; position: relative; touch-action: none; cursor: crosshair; }
.signature-pad--active { border-color: #6366f1; border-style: solid; }
.signature-pad__placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #94a3b8; font-size: 0.875rem; pointer-events: none; user-select: none; }
.signature-pad__clear { position: absolute; top: 0.5rem; right: 0.5rem; background: #fff; border: 1px solid #d1d5db; border-radius: 0.375rem; padding: 0.25rem 0.625rem; font-size: 0.75rem; color: #64748b; cursor: pointer; z-index: 2; }
.signature-pad__clear:hover { background: #f1f5f9; }
.intake-template-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.intake-template-picker__btn { padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 500; border: 1px solid #d1d5db; background: #fff; color: #475569; cursor: pointer; transition: all 0.15s; }
.intake-template-picker__btn--active { background: #6366f1; color: #fff; border-color: #6366f1; }
.intake-template-picker__btn:hover:not(.intake-template-picker__btn--active) { border-color: #6366f1; color: #6366f1; }
.intake-success { text-align: center; padding: 3rem 1.5rem; }
.intake-success__icon { width: 64px; height: 64px; margin: 0 auto 1rem; background: #ecfdf5; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.intake-success__icon svg { width: 32px; height: 32px; color: #10b981; }

/* ── Builder preview scoping ──────────────────────────────────────────────
   Inside the workspace shell the preview pane isn't full-bleed like the public
   page, so drop the page chrome rules that only make sense at document root. */
.pp-intake-preview .intake-card { box-shadow: none; border: 1px solid var(--pp-line); }
.pp-intake-preview .intake-container { max-width: none; padding: 0; margin: 0; }

@media (max-width: 640px) {
    .intake-card { padding: 1.25rem 1rem; border-radius: 0.75rem; }
    .intake-container { padding: 1rem 0.75rem 3rem; }
}
/* Demo storefront notice (audit 2026-10-25) */
.psite-demo-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: #1f2937;
    color: #f9fafb;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
}
