/* The chat tools' question forms (19 Oct 2026), in the Offer Analyzer's look,
   plus the visuals inside replies: the Money Message quadrants and choice buttons. */

/* Form on, chat off (and the other way round). */
.chat.is-intake .messages, .chat.is-intake .composer-wrap { display: none; }
.chat:not(.is-intake) .intake { display: none; }

.intake { background: var(--cream); border-radius: 14px; padding: 32px 32px 36px; margin-bottom: 40px; }
.intake-intro h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: normal; font-size: 24px; margin-bottom: 6px; }
.intake-intro p { font-size: 14.5px; color: var(--mid); line-height: 1.6; margin-bottom: 26px; }
.form-section { margin: 34px 0 6px; padding-top: 22px; border-top: 1.5px solid var(--peach); }
.form-section h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: normal; font-size: 21px; }
.form-section p { font-size: 13px; color: var(--mid); margin-top: 2px; }

.field-group { margin-bottom: 22px; }
.field-group[hidden] { display: none; }
.hint { font-size: 12.5px; color: var(--mid); margin: -2px 0 8px; line-height: 1.5; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }
.intake textarea { height: auto; min-height: 56px; }
.intake-go { margin-top: 8px; }
.intake .notice { margin: 4px 0 16px; }

/* Multiple choice: single (round chips) and several (boxes with a tick) */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; align-items: center; background: white; border: 1.5px solid var(--peach); border-radius: 30px; padding: 9px 16px; cursor: pointer; font-size: 13px; user-select: none; transition: border-color 0.15s, background 0.15s; }
.choice:hover { border-color: var(--fire); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--fire); background: var(--fire); color: white; font-weight: 600; }
.choice:has(input:focus-visible) { outline: 2px solid var(--dark); outline-offset: 2px; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.format-option { display: flex; align-items: center; gap: 10px; background: white; border: 1.5px solid var(--peach); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; line-height: 1.3; user-select: none; }
.format-option:hover { border-color: var(--fire); }
.format-option:has(input:checked) { border-color: var(--fire); background: #FFF2EE; }
.format-option input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--fire); cursor: pointer; }

/* Toggle, as in the Offer Analyzer */
.toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle-track { position: absolute; inset: 0; background: var(--score-low); border-radius: 20px; transition: background 0.2s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle-switch input:checked ~ .toggle-track { background: var(--fire); }
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(16px); }
.toggle-label { font-size: 13px; color: var(--mid); line-height: 1.4; }
.toggle-label strong { color: var(--dark); }

/* The Money Message as quadrants: problem | desire on top, failure | success below */
.quad-form, .quadrants { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quad-cell, .quad { border-radius: 16px; padding: 16px 18px; }
.quad-title, .quad h4 { display: block; font-family: "Lato", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
.quad-cell textarea { min-height: 96px; background: rgba(255,255,255,0.9); }
.quad-cell .hint { font-size: 12px; }
.quad-1 { background: #FFF2EE; border: 1.5px solid #f3b9ad; }
.quad-1 .quad-title, .quad-1 h4 { color: var(--deep-fire); }
.quad-2 { background: #F3F8F1; border: 1.5px solid #bcd9c0; }
.quad-2 .quad-title, .quad-2 h4 { color: #3f7a49; }
.quad-3 { background: var(--dark); color: rgba(255,255,255,0.88); }
.quad-3 .quad-title, .quad-3 h4 { color: var(--peach); }
.quad-4 { background: linear-gradient(135deg, var(--fire), var(--deep-fire)); color: white; }
.quad-4 .quad-title, .quad-4 h4 { color: #ffe3cf; }
.quad-cell.made p { font-size: 13px; line-height: 1.5; opacity: 0.85; }
.quad-cell.made { border: 1.5px dashed rgba(255,255,255,0.35); }
.quad { font-size: 13.5px; line-height: 1.55; }
.quad > :last-child { margin-bottom: 0; }
.quad ol, .quad ul { padding-left: 20px; }
.quad li { margin: 4px 0; }
.md .quadrants { margin: 6px 0 14px; }

/* Rows you can add (modules, bonuses) */
.repeat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.repeat-row { display: flex; gap: 8px; align-items: center; }
.repeat-cell { flex: 1; }
.repeat-cell.wide { flex: 2.2; }
.row-remove { background: none; border: none; color: var(--mid); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.row-remove:hover { color: var(--fire); }

/* Writing samples */
.samples { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.sample { background: white; border: 1.5px solid var(--peach); border-radius: 10px; padding: 8px 10px 10px; }
.sample-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--mid); margin-bottom: 4px; }
.sample textarea { border: none; padding: 6px 4px; min-height: 90px; }
.sample-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* In replies: choice buttons, and the answers card */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.choice-btn { background: white; border: 1.5px solid var(--fire); color: var(--fire); border-radius: 30px; padding: 8px 16px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.choice-btn:hover { background: var(--fire); color: white; }
.msg:not(:last-child) .choice-btn { opacity: 0.45; pointer-events: none; }
.answers summary { cursor: pointer; font-weight: 600; }
.answers .md { margin-top: 10px; font-size: 13px; }
.answers .md h3, .answers .md h4, .answers .md h5 { color: var(--peach); font-size: 15px; }
.msg.user .bubble:has(.answers) { max-width: 100%; }

@media (max-width: 640px) {
  .intake { padding: 22px 16px 26px; }
  .repeat-row { flex-wrap: wrap; }
  .repeat-cell, .repeat-cell.wide { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .quadrants { grid-template-columns: 1fr; }
}

/* Under a reply with a Money Message: download it as a .md file */
.msg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.msg-actions .download-mm { background: white; border: 1.5px solid var(--fire); color: var(--fire); border-radius: 30px; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; margin-top: 6px; }
.msg-actions .download-mm:hover { background: var(--fire); color: white; }
