/*
 * PARAVANA Reflection card (round 13, staging, 2026-11-20). PLAN.md step 5, DS10, DS12/DS13.
 * The v77 "What's Divine?" paper card for Fluent Form 4's answer field and for the commissioned
 * artwork "Your words" box (R6). Typed answers use Kalam Light 300 (self-hosted, R10); labels,
 * prompts and help stay in Nunito Sans. The rest of form 4 uses the shared tokens.
 */
:root {
  --rf-paper: var(--pv-l-paper, #f3eadb);
  --rf-paper-ink: var(--pv-l-paper-ink, #322c22);
  --rf-ink: var(--pv-l-ink);
  --rf-muted: var(--pv-l-muted);
  --rf-surface: var(--pv-l-surface);
  --rf-edge: var(--pv-l-edge);
  --rf-accent: var(--pv-l-accent);
  --rf-accent-ink: var(--pv-l-accent-ink);
}
html[data-bx-mode="dark"] {
  --rf-paper: var(--pv-d-paper, #e7ddc9);
  --rf-paper-ink: var(--pv-d-paper-ink, #302a21);
  --rf-ink: var(--pv-d-ink);
  --rf-muted: var(--pv-d-muted);
  --rf-surface: var(--pv-d-surface);
  --rf-edge: var(--pv-d-edge);
  --rf-accent: var(--pv-d-accent);
  --rf-accent-ink: var(--pv-d-accent-ink);
}

/* ---------- The paper card (v77 .card) ---------- */
.fluentform .fluent_form_4 .ff-el-group:has(#ff_4_answer),
body.single-product .pv-commission-words {
  max-width: 620px;
  background: var(--rf-paper) !important;
  color: var(--rf-paper-ink) !important;
  border: 1px solid #a3957d;
  border-radius: 12px;
  padding: clamp(14px, 3.2vw, 27px) !important;
  box-shadow: 0 6px 24px #0a080518;
  box-sizing: border-box;
}
/* Card heading: the printed "What's Divine?" question, in Nunito Sans (DS07 written role system; no Georgia) */
.fluentform .fluent_form_4 .ff-el-group:has(#ff_4_answer) .ff-el-input--label label,
body.single-product .pv-commission-words::before {
  display: block;
  font: 700 clamp(1.4rem, 3.6vw, 2rem)/1.2 var(--pv-font-text, "Nunito Sans", Arial, sans-serif) !important;
  color: var(--rf-paper-ink) !important;
  margin: 0 0 7px;
}
body.single-product .pv-commission-words::before { content: "What\2019s Divine?"; }
.fluentform .fluent_form_4 .ff-el-group:has(#ff_4_answer) .ff-el-input--label { margin-bottom: 6px; }
.fluentform .fluent_form_4 .ff-el-group:has(#ff_4_answer) .ff-el-tooltip svg { fill: #4c4336 !important; }
.fluentform .fluent_form_4 .ff-el-group:has(#ff_4_answer) .ff-el-is-required.asterisk-right label::after,
body.single-product .pv-commission-words abbr.required { color: #7a2e1c !important; }
body.single-product .pv-commission-words label {
  font-family: var(--pv-font-text) !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: #4c4336 !important;
  margin-bottom: 7px;
}
/* The writing area: Kalam Light 300 on the card, translucent like the mock-up */
.fluentform .fluent_form_4 textarea#ff_4_answer,
html body.single-product #primary #pv_commission_words {
  font-family: var(--pv-font-hand) !important;
  font-weight: 300 !important;
  font-size: 1.3rem !important;
  line-height: 1.5 !important;
  min-height: 140px;
  background: #ffffff3d !important;
  color: var(--rf-paper-ink) !important;
  border: 1px solid #9b8d75 !important;
  border-radius: 6px !important;
  padding: 9px 11px !important;
  caret-color: #332319;
  resize: vertical;
}
.fluentform .fluent_form_4 textarea#ff_4_answer::placeholder,
html body.single-product #primary #pv_commission_words::placeholder {
  font-family: var(--pv-font-text);
  font-size: 1rem;
  color: #5b5040 !important;
  opacity: 1;
}
.fluentform .fluent_form_4 textarea#ff_4_answer:focus,
html body.single-product #primary #pv_commission_words:focus { border-color: #5e502e !important; box-shadow: none !important; }
.fluentform .fluent_form_4 textarea#ff_4_answer:focus-visible,
html body.single-product #primary #pv_commission_words:focus-visible { outline: 2px solid #5e502e !important; outline-offset: 2px; }
body.single-product .pv-commission-words__note { color: #4c4336 !important; font-family: var(--pv-font-text); }

/* ---------- The rest of form 4 on the shared tokens ---------- */
.fluentform .fluent_form_4 .ff-el-group:not(:has(#ff_4_answer)) .ff-el-input--label label,
.fluentform .fluent_form_4 .ff-el-form-check-label,
.fluentform .fluent_form_4 .ff-el-form-check-label span {
  color: var(--rf-ink) !important;
  font-family: var(--pv-font-text);
}
.fluentform .fluent_form_4 .ff-el-group:not(:has(#ff_4_answer)) .ff-el-input--label label { font-weight: 700; }
.fluentform .fluent_form_4 .ff-el-group:not(:has(#ff_4_answer)) .ff-el-tooltip svg { fill: var(--rf-muted) !important; }
.fluentform .fluent_form_4 .ff-el-group:not(:has(#ff_4_answer)) .ff-el-form-control {
  background: var(--rf-surface) !important;
  color: var(--rf-ink) !important;
  border: 1px solid var(--rf-edge) !important;
  border-radius: 7px !important;
  font-family: var(--pv-font-text);
}
.fluentform .fluent_form_4 .ff-el-group:not(:has(#ff_4_answer)) .ff-el-form-control::placeholder { color: var(--rf-muted) !important; opacity: 1; }
.fluentform .fluent_form_4 .ff-el-form-control:focus-visible,
.fluentform .fluent_form_4 .ff-el-form-check-input:focus-visible,
.fluentform .fluent_form_4 .ff-btn-submit:focus-visible {
  outline: 2px solid var(--rf-accent) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}
.fluentform .fluent_form_4 .ff-el-form-check-input { accent-color: var(--rf-accent); width: 18px; height: 18px; }
.fluentform .fluent_form_4 .ff-el-is-required.asterisk-right label::after { color: var(--rf-ink) !important; }
/* Submit: the v74 accent pair in both skins (was the default blue, 3.3-3.9:1) */
.fluentform .fluent_form_4 .ff-btn-submit,
.fluentform .fluent_form_4 .ff-btn-submit:hover,
html[data-bx-mode="dark"]:root .fluentform .fluent_form_4 .ff-btn-submit {
  background: var(--rf-accent) !important;
  border: 1px solid var(--rf-accent) !important;
  color: var(--rf-accent-ink) !important;
  border-radius: 7px !important;
  font-family: var(--pv-font-ui) !important;
  font-weight: 700 !important;
  min-height: 43px;
  padding: 0 22px !important;
  opacity: 1 !important;
}
/* Validation messages readable in both skins */
.fluentform .fluent_form_4 .error.text-danger,
.fluentform .fluent_form_4 .ff-el-is-error .text-danger { color: #a3271d !important; font-family: var(--pv-font-text); font-size: 0.92rem; }
html[data-bx-mode="dark"] .fluentform .fluent_form_4 .error.text-danger,
html[data-bx-mode="dark"] .fluentform .fluent_form_4 .ff-el-is-error .text-danger { color: #ffb4a6 !important; }
.fluentform .fluent_form_4 .ff-el-group:has(#ff_4_answer) .error.text-danger { color: #7a2e1c !important; }
.fluentform .fluent_form_4 .ff-el-is-error .ff-el-form-control { border-color: #c0392b !important; }
html[data-bx-mode="dark"] .fluentform .fluent_form_4 .ff-el-group:not(:has(#ff_4_answer)).ff-el-is-error .ff-el-form-control { border-color: #ffb4a6 !important; }
/* Round 14: post-submit invitation to the What's Divine? group */
.fluentform .ff-message-success { background: var(--rf-surface) !important; color: var(--rf-ink) !important; border: 1px solid var(--rf-edge) !important; border-radius: 14px; font-family: var(--pv-font-text); padding: 16px 18px !important; box-shadow: none !important; }
.fluentform .ff-message-success p { color: var(--rf-ink) !important; margin: 0 0 0.6em; }
.fluentform .ff-message-success .pv-join-conversation { margin: 0.4em 0 0; font-weight: 600; }
.fluentform .ff-message-success a { color: var(--rf-accent) !important; text-decoration: underline; text-underline-offset: 3px; }
.fluentform .ff-message-success a:focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 2px; }
