/* Shared consultation quiz for public pages. */
#quiz.cq-section {
  --cq-accent: #ffb21a;
  --cq-muted: #aaa098;
  --cq-line: rgba(229, 209, 185, .18);
  margin: 5rem 0 0;
  padding: 0 0 3rem;
  scroll-margin-top: 110px;
  color: #f8f5f0;
}
.cq-container { width: min(100% - 48px, 1440px); margin-inline: auto; }
.cq-heading { text-align: center; margin-bottom: 30px; }
.cq-heading .cq-eyebrow { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--cq-accent); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }
.cq-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cq-accent); }
.cq-heading h2 { margin: 0 0 10px; font-family: Manrope, sans-serif; font-size: clamp(30px, 3.7vw, 54px); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
.cq-heading h2 span { color: var(--cq-accent); }
.cq-heading > p:last-child { margin: 0; font-size: clamp(16px, 1.5vw, 21px); color: #bbb2aa; line-height: 1.5; }
.cq-card { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--cq-line); border-radius: 24px; background: radial-gradient(ellipse at 15% 10%, rgba(85, 49, 13, .12), transparent 65%), #1b130d; box-shadow: 0 20px 80px rgba(0, 0, 0, .12); }
.cq-body { min-width: 0; padding: 30px 36px 26px; }
.cq-body #home-quiz { min-height: 560px; scroll-margin-top: 110px; }
.cq-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; margin-bottom: 28px; }
.cq-stepper { display: flex; align-items: center; gap: 18px; padding: 0; margin: 0; list-style: none; }
.cq-stepper li { display: flex; flex: 1; align-items: center; gap: 12px; color: var(--cq-muted); white-space: nowrap; font-size: 12px; font-weight: 500; }
.cq-stepper li:not(:last-child)::after { content: ''; flex: 1; min-width: 10px; height: 1px; margin-left: 4px; background: var(--cq-line); }
.cq-stepper li > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #74695e; border-radius: 50%; font-size: 13px; font-variant-numeric: tabular-nums; }
.cq-stepper li[aria-current], .cq-stepper li.is-complete { color: #fff; }
.cq-stepper li[aria-current] > span, .cq-stepper li.is-complete > span { background: var(--cq-accent); color: #24190b; border-color: var(--cq-accent); font-weight: 700; }
#cq-step-status { font-size: 13px; margin: 0; color: var(--cq-muted); }
.cq-progress-bars { grid-column: 1 / -1; display: flex; gap: 7px; }
.cq-progress-bars i { height: 4px; border-radius: 4px; flex: 1; background: var(--cq-line); }
.cq-progress-bars i.is-active { background: linear-gradient(90deg, var(--cq-accent), #c28228); }
.cq-step { flex: 1; }
.cq-section [hidden] { display: none !important; }
.cq-step-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.cq-heading-icon { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 12px; background: rgba(231, 151, 19, .15); color: var(--cq-accent); }
.cq-step-heading h3 { font: 800 clamp(24px, 2.2vw, 32px)/1.25 Manrope, sans-serif; letter-spacing: -.02em; margin: 0 0 5px; }
.cq-step-heading h3:focus { outline: none; }
.cq-step-heading p { color: var(--cq-muted); margin: 0; font-size: 15px; line-height: 1.5; }
.cq-service-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 16px; }
.cq-group, .cq-house-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.cq-group legend { display: flex; align-items: center; gap: 11px; width: 100%; padding: 0 0 12px; color: #b7ada3; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; }
.cq-group legend svg { color: #d58c24; flex: 0 0 27px; }
.cq-group legend::after { content: ''; flex: 1; min-width: 6px; height: 1px; background: var(--cq-line); }
.cq-choices { display: grid; gap: 8px; }
.cq-choice { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 54px; padding: 13px 16px; border: 1px solid var(--cq-line); border-radius: 11px; background: rgba(240, 222, 199, .045); color: #f8f5f0; font-size: 15px; line-height: 1.4; cursor: pointer; transition: background-color .15s, border-color .15s; }
.cq-choice:hover { border-color: rgba(255, 178, 26, .55); background: rgba(255, 178, 26, .06); }
.cq-choice:has(input:checked) { border-color: var(--cq-accent); background: linear-gradient(110deg, rgba(255, 178, 26, .13), rgba(255, 178, 26, .055)); }
.cq-choice input { appearance: none; position: relative; flex: 0 0 21px; width: 21px; height: 21px; margin: 0; border: 2px solid #817d72; border-radius: 4px; background: rgba(0, 0, 0, .1); cursor: pointer; }
.cq-choice input:checked { background: var(--cq-accent); border-color: var(--cq-accent); }
.cq-choice input:checked::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #31200a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cq-choice input[type='radio'] { border-radius: 50%; }
.cq-choice small { display: block; margin-top: 3px; color: #b9afa5; font-size: 12px; line-height: 1.4; }
.cq-help { padding-block: 13px; }
.cq-house-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cq-house-options .cq-choice:last-child { grid-column: 1 / -1; }
.cq-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cq-line); }
.cq-footer-info p { margin: 0; }
#cq-selection { font-size: 17px; line-height: 1.5; }
#cq-selection strong { color: var(--cq-accent); font-weight: 600; }
#cq-next-hint { color: var(--cq-muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.cq-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cq-next, .cq-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 14px 30px; border: 1px solid #ffbe35; border-radius: 12px; color: #201505; background: linear-gradient(115deg, #ffb321, #efa014); font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); transition: filter .15s; }
.cq-next { text-transform: uppercase; letter-spacing: .08em; }
.cq-next svg, .cq-submit svg { width: 20px; height: 20px; }
.cq-next:hover, .cq-submit:hover { filter: brightness(1.08); }
.cq-submit:disabled { opacity: .6; cursor: wait; }
.cq-back { white-space: nowrap; flex-shrink: 0; color: #c4b9ad; background: transparent; border: 0; padding: 12px 0; font-size: 13px; cursor: pointer; }
.cq-back:hover { color: #fff; }
.cq-section input:focus-visible, .cq-section button:focus-visible { outline: 2px solid #ffd576; outline-offset: 4px; }
.cq-choice:focus-within { border-color: #ffd576; }
.cq-photo { position: relative; min-width: 0; margin: 0; border-left: 1px solid var(--cq-line); background: #382b1e; }
.cq-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.cq-error { border-left: 2px solid #ffbe73; padding: 10px 12px; color: #ffcd92; background: rgba(255, 165, 70, .06); font-size: 14px; margin: 16px 0 0; }
.cq-area { padding: 20px 24px; border: 1px solid var(--cq-line); border-radius: 14px; background: rgba(240, 222, 199, .035); margin-bottom: 16px; }
.cq-area > label { font-size: 13px; color: #b9afa5; }
.cq-area-value { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 20px; color: var(--cq-accent); }
#cq-area-number { width: 160px; max-width: 70%; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--cq-line); border-radius: 0; background: transparent; color: var(--cq-accent); font: 700 44px/1.2 Manrope, sans-serif; }
.cq-area-value > span { font-size: 24px; }
#cq-area-range { width: 100%; height: 24px; accent-color: var(--cq-accent); cursor: pointer; }
.cq-range-labels { display: flex; justify-content: space-between; color: var(--cq-muted); font-size: 12px; }
#cq-area-hint { margin: 14px 0 0; color: var(--cq-muted); font-size: 12px; line-height: 1.5; }
.cq-area:has(input:disabled) { opacity: .45; }
.cq-summary { display: grid; gap: 14px; margin: 0 0 24px; padding: 20px; border: 1px solid var(--cq-line); border-radius: 12px; background: rgba(240, 222, 199, .035); }
.cq-summary > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.5; }
.cq-summary dt { color: var(--cq-muted); }
.cq-summary dd { margin: 0; }
.cq-phone-label { display: block; font-size: 14px; margin-bottom: 10px; }
.cq-phone { display: block; width: 100%; border: 1px solid var(--cq-line); border-radius: 12px; padding: 16px 18px; background: rgba(240, 222, 199, .045); color: white; font-size: 20px; }
.cq-phone::placeholder { color: #92877a; }
.cq-privacy { color: var(--cq-muted); font-size: 11px; line-height: 1.6; margin: 12px 0 0; max-width: 440px; }
.cq-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1250px) {
 .cq-body { padding: 26px; }
 .cq-card { grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); }
 .cq-progress { grid-template-columns: minmax(0, 1fr); gap: 14px; }
 #cq-step-status { display: none; }
 .cq-service-groups { gap: 12px; }
 .cq-group legend { gap: 7px; letter-spacing: 0; font-size: 9px; }
 .cq-group legend::after { display: none; }
 .cq-choice { padding-inline: 12px; gap: 10px; font-size: 14px; }
}
@media (max-width: 1023px) {
 .cq-card { grid-template-columns: minmax(0, 1fr); }
 .cq-photo { display: none; }
 .cq-body { padding: 30px; }
 .cq-body #home-quiz { min-height: 530px; }
 .cq-group legend { font-size: 10px; }
 .cq-progress { grid-template-columns: minmax(0, 1fr) auto; }
 #cq-step-status { display: block; }
}
@media (max-width: 679px) {
 #quiz.cq-section { margin-top: 3rem; scroll-margin-top: 90px; }
 .cq-container { width: calc(100% - 32px); }
 .cq-heading { margin-bottom: 22px; }
 .cq-heading .cq-eyebrow { font-size: 9px; letter-spacing: .12em; gap: 10px; }
 .cq-eyebrow::before { width: 18px; }
 .cq-heading h2 { font-size: 32px; }
 .cq-heading > p:last-child { font-size: 15px; max-width: 310px; margin-inline: auto; }
 .cq-card { border-radius: 18px; }
 .cq-body { padding: 22px 18px; }
 .cq-body #home-quiz { min-height: 0; }
 .cq-progress { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
 #cq-step-status { display: none; }
 .cq-stepper { gap: 10px; }
 .cq-stepper li { gap: 6px; font-size: 10px; }
 .cq-stepper li > span { width: 27px; height: 27px; flex-basis: 27px; font-size: 11px; }
 .cq-stepper li:not(:last-child)::after { min-width: 4px; margin-left: 0; }
 .cq-step-heading { gap: 12px; margin-bottom: 24px; }
 .cq-heading-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
 .cq-heading-icon svg { width: 24px; height: 24px; }
 .cq-step-heading h3 { font-size: 23px; }
 .cq-step-heading p { font-size: 13px; }
 .cq-service-groups { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 .cq-group legend { font-size: 10px; letter-spacing: .08em; padding-bottom: 9px; }
 .cq-group legend::after { display: block; }
 .cq-choice { min-height: 52px; font-size: 15px; padding-inline: 14px; gap: 12px; }
 .cq-house-options { grid-template-columns: minmax(0, 1fr); }
 .cq-footer { flex-direction: column; align-items: stretch; gap: 16px; }
 .cq-actions { width: 100%; justify-content: space-between; }
 .cq-next, .cq-submit { margin-left: auto; }
 .cq-footer-info { min-height: 44px; }
 .cq-area { padding: 18px; }
 .cq-summary { padding: 16px; }
 .cq-summary > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
 .cq-submit { padding-inline: 16px; font-size: 12px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cq-section * { transition: none !important; scroll-behavior: auto !important; } }
