/* Custom design questionnaire, version 2: one question per screen on a plain page.
   Cream page, navy type, white answer rows; the store's own fonts (Mulish for the question, Jost for the rest). */
:root { --navy: #102b49; --cream: #f6f2e9; --rose: #ffb8b5; --rose-soft: #fdeceb; --line: rgba(16, 43, 73, .16); --line-strong: rgba(16, 43, 73, .3);
  --muted: rgba(16, 43, 73, .72); --err: #b3261e; --r: 14px; --ease: cubic-bezier(.2, .7, .2, 1); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.cdq { margin: 0; background: var(--cream); color: var(--navy); font: 400 16px/1.5 "Jost", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.cdq) a { color: inherit; } /* weak on purpose: a link drawn as the button keeps the button's own colour */
.cdq .icon { flex: none; display: block; }

/* how far along: a hairline across the very top */
.cdq-bar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 3px; background: rgba(16, 43, 73, .09); }
.cdq-bar span { display: block; height: 100%; background: var(--navy); border-radius: 0 3px 3px 0; transition: width .5s var(--ease); }

/* the page: one narrow column */
.cdq-page { display: flex; flex-direction: column; max-width: 568px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 0 24px; }
.cdq-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-top: 48px; }
.cdq-logo { display: inline-flex; font: 500 20px "Mulish", system-ui, sans-serif; letter-spacing: .12em; text-decoration: none; }
.cdq-logo img { display: block; width: 132px; height: auto; }
.cdq-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-right: -6px; padding: 0 6px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; transition: color .15s; }
.cdq-back:hover { color: var(--navy); }
.cdq-form { flex: 1; padding: 40px 0 24px; }

/* a screen: the question, then its answers */
.cdq-screen:not([hidden]) { animation: cdq-in .34s var(--ease) both; }
.is-back .cdq-screen:not([hidden]) { animation-name: cdq-back; }
@keyframes cdq-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes cdq-back { from { opacity: 0; transform: translateX(-18px); } }
.cdq-screen h1 { margin: 0; font: 500 33px/1.16 "Mulish", system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; outline: none; }
.cdq-hint { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cdq-hint + .cdq-hint { margin-top: 10px; }

.cdq-options { display: grid; gap: 12px; margin-top: 30px; }
.cdq-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 66px; padding: 12px 18px 12px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  font: 500 17px/1.3 "Jost", system-ui, sans-serif; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, box-shadow .15s, transform .1s; }
@media (hover: hover) { .cdq-opt:hover { border-color: var(--navy); } }
.cdq-opt:active { transform: scale(.99); }
.cdq-opt[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cdq-check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .2s var(--ease); }
.cdq-opt[aria-pressed="true"] .cdq-check { opacity: 1; transform: none; }

/* typed answers */
.cdq-screen textarea, .cdq-field input { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font: 400 17px/1.45 "Jost", system-ui, sans-serif; color: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.cdq-screen textarea { margin-top: 28px; min-height: 136px; padding: 15px 18px; resize: vertical; }
.cdq-field input { height: 58px; padding: 0 18px; }
.cdq-screen ::placeholder { color: rgba(16, 43, 73, .45); opacity: 1; }
.cdq-screen textarea:hover, .cdq-field input:hover { border-color: rgba(16, 43, 73, .55); }
.cdq-screen textarea:focus, .cdq-field input:focus { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.cdq-fields { display: grid; gap: 18px; margin-top: 28px; }
.cdq-field { display: block; }
.cdq-field > span { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.cdq-field i { font-style: normal; font-weight: 400; color: var(--muted); }
.cdq-field.has-error input { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.cdq-error { margin: 8px 0 0; font-size: 14px; color: var(--err); }
.cdq-error:empty { display: none; }
.cdq-error--main { margin: 18px 0 0; padding: 13px 16px; border: 1px solid var(--err); border-radius: 12px; background: #fff5f4; font-size: 15px; }

/* the one button */
.cdq-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; margin-top: 24px; border: 0; border-radius: var(--r); background: var(--navy); color: #fff;
  font: 500 17px "Jost", system-ui, sans-serif; letter-spacing: .01em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s; }
.cdq-btn:hover { background: #0a2038; }
.cdq-btn:active { transform: scale(.99); }
.cdq-btn[disabled] { opacity: .55; cursor: not-allowed; }
.cdq-btn.is-loading { cursor: progress; }
.cdq-btn.is-loading .icon { display: none; }
.cdq-btn.is-loading::before { content: ""; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: cdq-spin .7s linear infinite; }
@keyframes cdq-spin { to { transform: rotate(360deg); } }
.cdq-opt:focus-visible, .cdq-btn:focus-visible, .cdq-back:focus-visible, .cdq-edit:focus-visible, .cdq-logo:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.cdq-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cdq-note .icon { margin-top: 3px; }

/* the last screen: what was asked for, the fee, the payment */
.cdq-card { margin-top: 26px; padding: 6px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.cdq-summary { margin: 0; }
.cdq-summary > div { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cdq-summary dt { color: var(--muted); font-size: 15px; }
.cdq-summary dd { margin: 0; overflow-wrap: anywhere; }
.cdq-edit { margin: -6px -6px -6px 0; padding: 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cdq-edit:hover { color: var(--navy); }
.cdq-total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 15px 0 14px; font-size: 17px; font-weight: 500; }
.cdq-total strong { font-weight: 500; font-size: 20px; }
.cdq-done .cdq-summary > div:last-child { border-bottom: 0; }
.cdq-done .cdq-summary > div { grid-template-columns: 84px minmax(0, 1fr); }
.cdq-pay { margin-top: 26px; }
.cdq-pay__option { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.cdq-pay__option input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); }
.cdq-pay--single .cdq-pay__option input { position: absolute; opacity: 0; pointer-events: none; }
.cdq-stripe { min-height: 44px; padding-top: 12px; }
.cdq-warn { margin: 14px 0 0; padding: 13px 16px; border-radius: 12px; background: #fdf3e3; font-size: 15px; }
.cdq-policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.cdq-policies a, .cdq-foot a { text-decoration: underline; text-decoration-color: rgba(16, 43, 73, .3); text-underline-offset: 3px; }
.cdq-policies a:hover, .cdq-foot a:hover { color: var(--navy); text-decoration-color: currentColor; }

/* thank you */
.cdq-done__check { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: var(--navy); color: #fff; }

.cdq-foot { padding: 12px 0 30px; font-size: 14.5px; color: var(--muted); }

/* cookie notice (visitors in Europe), as on the checkout */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto; background: var(--cream); border: 1px solid var(--navy); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 13px; }
.consent p { margin: 0; flex: 1; }
.consent .rj-btn { height: 38px; padding: 0 16px; border: 1px solid var(--navy); background: var(--navy); color: var(--cream); border-radius: 4px; font: inherit; cursor: pointer; }
.consent .btn--outline { background: transparent; color: var(--navy); }
.consent__btns { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .cdq-screen:not([hidden]) { animation: none; }
  .cdq-bar span, .cdq-check, .cdq-opt, .cdq-btn { transition: none; }
}
@media (max-width: 600px) {
  .cdq-page { padding: 0 20px; }
  .cdq-head { margin-top: 30px; }
  .cdq-logo img { width: 118px; }
  .cdq-form { padding: 30px 0 20px; }
  .cdq-screen h1 { font-size: 28px; }
  .cdq-hint { font-size: 16px; }
  .cdq-options { gap: 10px; margin-top: 24px; }
  .cdq-opt { min-height: 62px; font-size: 16.5px; }
  .cdq-screen textarea, .cdq-fields { margin-top: 24px; }
  .cdq-btn { height: 56px; }
  .cdq-card { padding: 4px 16px; }
  .cdq-summary > div { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; }
  .cdq-done .cdq-summary > div { grid-template-columns: 70px minmax(0, 1fr); }
  .consent { flex-direction: column; align-items: stretch; }
}
