.q-main{--q-burgundy:#812538;--q-rose:#B6717D;--q-green:#9E822E;--q-ink:#2f1212;--q-paper:#fffdfa;max-width:1150px;color:var(--q-ink);padding-bottom:5rem!important}
.q-heading{max-width:700px;margin:1rem 0 2rem}.q-heading h1{font-family:Georgia,serif;font-size:clamp(2rem,3.4vw,3.1rem);line-height:1.15;font-weight:400;margin:.65rem 0 1rem}.q-heading>p:last-child{font-size:1rem;line-height:1.75;color:#726663}
.q-context{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.4rem}.q-context span{padding:.35rem .75rem;background:#eee3d6;border-radius:5px;font-size:.78rem}
.q-status{position:sticky;top:81px;z-index:40;display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;padding:1.1rem 1.4rem;background:var(--q-paper);border:1px solid #e7ddd3;border-radius:12px;box-shadow:0 6px 20px #2f121206}.q-status>div{display:flex;align-items:baseline;gap:1rem}.q-status-label{font-size:.8rem;color:#726663}.q-status strong{font-size:1.6rem;font-weight:500}.q-status>progress{flex:1;min-width:90px}.q-status #q-save{font-size:.74rem;max-width:300px;color:#726663}
.q-main progress{appearance:none;border:0;border-radius:9px;overflow:hidden;height:5px;background:#ece4dd;accent-color:var(--q-burgundy)}.q-main progress::-webkit-progress-bar{background:#ece4dd}.q-main progress::-webkit-progress-value{background:var(--q-burgundy);border-radius:9px}.q-main progress::-moz-progress-bar{background:var(--q-burgundy)}.q-complete strong{color:var(--q-green)}.q-complete progress::-webkit-progress-value{background:var(--q-green)}.q-complete progress::-moz-progress-bar{background:var(--q-green)}
#q-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin:1.6rem 0 2rem;scroll-margin-top:175px}#q-nav :is(button,a){display:flex;align-items:center;gap:.55rem;padding:.7rem .6rem;font-size:.75rem;color:#776a66;text-align:left;border:0;border-radius:8px;background:transparent}#q-nav :is(button,a)[aria-current]{background:#8125380d;color:var(--q-burgundy)}.q-step-number{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border:1px solid #cfc1b8;border-radius:50%;font-size:.7rem}#q-nav :is(button,a)[aria-current] .q-step-number{background:var(--q-burgundy);border-color:var(--q-burgundy);color:#fff}#q-nav .q-step-done .q-step-number{border-color:var(--q-rose);color:var(--q-burgundy)}
.q-section-head{display:flex;justify-content:space-between;gap:1rem;align-items:end;margin-bottom:.9rem}.q-kicker{font-size:.67rem;letter-spacing:.13em;text-transform:uppercase;color:var(--q-rose);margin-bottom:.65rem}.q-section h2,.q-start h2,.q-resume h2,.q-book h2{font-family:Georgia,serif;font-size:1.7rem;line-height:1.25;font-weight:400}.q-section-count{font-size:.73rem;color:#82736b;white-space:nowrap}.q-section-progress{width:100%;margin-bottom:1.4rem;height:3px!important}
.q-field{padding:1.65rem 1.8rem;margin:0 0 1rem;background:var(--q-paper);border:1px solid #e7ddd3;border-radius:12px}.q-field-label{font-size:1rem;font-weight:500;line-height:1.5;margin-bottom:1rem}.q-field-label>span:not(.q-label-text){font-size:.7rem;font-weight:400;color:#8a7770;margin-left:.7rem}.q-help,.q-note{font-size:.8rem;color:#786b65;line-height:1.7;margin:.5rem 0 1rem}
.q-main input:not([type=checkbox]):not([type=radio]):not([type=file]),.q-main select,.q-main textarea{display:block;width:100%;padding:.8rem .9rem;border:1px solid #d6c9c0;border-radius:7px;background:#fffdfa;color:var(--q-ink);font:inherit;font-size:.92rem;min-height:46px}.q-main input[readonly]{background:#f5eee8!important;color:#76645d!important}.q-main textarea{resize:vertical;line-height:1.7;min-height:95px}.q-main input[type=number],.q-main input[type=date]{max-width:320px}.q-choices{display:flex;gap:.6rem;flex-wrap:wrap}.q-choice{display:flex;align-items:center;gap:.65rem;flex:1 0 145px;max-width:100%;padding:.9rem 1rem;margin:0;border:1px solid #d8cbc2;border-radius:8px;font-size:.84rem;line-height:1.45;cursor:pointer;background:#fffdfa;transition:background .15s,border-color .15s}.q-choice:has(input:checked){background:#81253808;border-color:var(--q-burgundy);box-shadow:inset 0 0 0 1px var(--q-burgundy)}.q-choice input{accent-color:var(--q-burgundy);flex-shrink:0;width:16px;height:16px}.q-unknown{display:flex;align-items:center;gap:.5rem;font-size:.8rem;margin-top:.8rem;color:#726663}.q-unknown input{accent-color:var(--q-burgundy)}
.q-quick{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.75rem}.q-quick button{font-size:.76rem!important;padding:.4rem .65rem!important;border-color:#ded3ca!important;border-radius:5px!important;color:#76635a!important}.q-quick button[aria-pressed=true]{border-color:var(--q-burgundy)!important;color:var(--q-burgundy)!important;background:#81253808!important}
.q-main button{cursor:pointer;font:inherit;font-size:.85rem;padding:.8rem 1.1rem;border:1px solid var(--q-burgundy);border-radius:7px;color:var(--q-burgundy);background:transparent}.q-main button.btn-primary{background:var(--q-burgundy);color:#fffdfa}.q-main button:disabled{opacity:.45;cursor:not-allowed}.q-main .q-text-button{border-color:transparent;color:#786b65;padding-left:0}.q-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin:1.5rem 0}.q-actions #q-retry{margin-left:auto}.q-main :focus-visible{outline:3px solid var(--q-rose);outline-offset:3px}.q-main [hidden]{display:none!important}
.q-missing-details{margin:1.6rem 0;font-size:.8rem;color:#75675f}.q-missing-details summary{cursor:pointer}.q-missing-details ul{list-style:none;padding:.5rem 0}.q-missing-details button{text-align:left;border:0;padding:.45rem 0;text-decoration:underline;font-size:.8rem}
.q-book{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;border-top:1px solid #d7c7bd;margin-top:2rem;padding-top:2rem}.q-book h2{font-size:1.5rem}.q-book p{font-size:.82rem;color:#786b65;max-width:470px;line-height:1.6;margin:.7rem 0}.q-book.q-complete{border-top-color:var(--q-green)}
.q-start,.q-resume{padding:2rem;background:var(--q-paper);border:1px solid #e7ddd3;border-radius:12px;margin:1.5rem 0}.q-start>p{line-height:1.7;margin:1rem 0}.q-start h2,.q-resume h2{margin-bottom:1.5rem}.q-start-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.q-start-grid label{font-size:.85rem}.q-start-grid select{margin-top:.5rem}.q-resume-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-top:1px solid #e7ddd3;font-size:.9rem}.q-resume-row small{display:block;font-size:.7rem;color:#786b65;margin-top:.25rem}.q-alert{padding:1rem;background:#f4e4e3;color:var(--q-burgundy);border-radius:8px;margin-bottom:1rem}.q-upload{display:block;font-size:.85rem;margin-top:1rem}.q-upload input{display:block;max-width:100%;margin-top:.6rem}#q-photos{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1rem}#q-photos img{width:125px;height:125px;object-fit:cover;border-radius:7px}#q-photo-status{font-size:.8rem;line-height:1.6}
@media(max-width:700px){.q-heading h1{font-size:2.1rem}.q-main{padding-left:1rem!important;padding-right:1rem!important}.q-field{padding:1.25rem}.q-status{padding:.85rem;gap:.75rem}.q-status #q-save{width:100%;max-width:100%;font-size:.7rem}.q-status-label{display:none}#q-nav{grid-template-columns:repeat(2,1fr);gap:.2rem}.q-section h2{font-size:1.4rem}.q-section-count{font-size:.67rem}.q-start-grid{grid-template-columns:1fr}.q-start,.q-resume{padding:1.25rem}.q-choice{flex-basis:125px;font-size:.8rem}.q-actions #q-retry{margin-left:0}.q-book button{width:100%}}
@media(prefers-reduced-motion:reduce){.q-choice{transition:none}}

.dossier-embedded{margin:1.75rem 0;max-width:100%;padding-bottom:1rem!important}.dossier-embedded #q-prev,.dossier-embedded #q-next{display:none}.dossier-embedded .q-actions{margin:.5rem 0}.dossier-embedded .q-status{top:81px}

/* Completed steps: visible beyond colour alone. */
#q-nav :is(button,a).q-step-done{color:var(--q-green);background:#B6717D14}
#q-nav :is(button,a).q-step-done .q-step-number{border-color:var(--q-green);background:var(--q-green);color:white}
#q-nav .q-step-done::after{content:'✓';margin-left:auto;font-weight:700;font-size:1rem;color:var(--q-green)}


.q-status>.q-horse-progress{display:flex;flex-direction:column;align-items:stretch;gap:2px;flex:1;min-width:100px}.q-horse-track{position:relative;height:36px;width:100%}#q-progress-horse{position:absolute;bottom:0;color:#812538;line-height:0;transition:left .8s ease,transform .8s ease}#q-progress-horse svg{display:block}#q-progress-horse.q-trotting svg{animation:q-horse-stride .28s ease-in-out 3}.q-horse-progress #q-progress{display:block;width:100%;margin:0}@keyframes q-horse-stride{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(4deg)}}@media(prefers-reduced-motion:reduce){#q-progress-horse{transition:none}#q-progress-horse.q-trotting svg{animation:none}}

#q-progress-horse svg{transform:scaleX(-1)}@keyframes q-horse-stride{0%,100%{transform:scaleX(-1) translateY(0) rotate(-3deg)}50%{transform:scaleX(-1) translateY(-4px) rotate(4deg)}}

/* Keep progress geometry independent of save-status text. */
.dossier-embedded .q-status{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;align-items:start}.dossier-embedded .q-status>.q-horse-progress{width:100%;min-width:0;grid-column:1}.dossier-embedded .q-status>#q-save{width:100%;max-width:none;min-width:0;min-height:1.5em;grid-column:1}.dossier-embedded .q-status>div:first-child{justify-content:space-between}

/* Completion and current position are separate, visible without relying on colour. */
#q-nav .q-step-done::after{content:none}
#q-nav .q-step-state{margin-left:auto;font-size:1.3rem;line-height:1;flex-shrink:0}
#q-nav .q-step-partial .q-step-number{border:2px dashed #B6717D;color:#812538;background:#fffaf7}
#q-nav :is(button,a)[aria-current="step"]{outline:2px solid #812538;outline-offset:1px;background:#8125380d}
#q-nav :is(button,a)[aria-current="step"] .q-step-number{background:#812538;border-color:#812538;color:white}
.q-step-legend{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;font-size:.72rem;color:#786b65;margin:-.7rem 0 1.5rem}
.q-step-legend span{display:inline-flex;align-items:center;gap:.4rem}.q-step-legend i{width:.8rem;height:.8rem;border:2px solid #812538;border-radius:3px}
.q-secondary-actions{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:.65rem}
.q-main button.q-reset-button{color:#812538;background:#fffaf7;border:1px solid #812538}.q-main button.q-reset-button:hover{background:#812538;color:#fffaf7}
#q-reset-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;position:fixed;inset:0;margin:auto;border:1px solid #e5d8d7;border-radius:16px;padding:30px;background:#fffaf7;color:#332b2d;box-shadow:0 20px 80px #0003}
#q-reset-dialog::backdrop{background:rgb(30 18 22 / 55%)}#q-reset-dialog h2{font-family:Georgia,serif;font-weight:400;font-size:1.7rem;color:#812538;margin:0 0 20px}#q-reset-dialog p{line-height:1.65;font-size:.9rem;margin:14px 0}
.q-reset-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:24px}#q-reset-confirm{background:#812538;color:#fffaf7}
@media(max-width:520px){.q-secondary-actions{width:100%;align-items:stretch}.q-secondary-actions button{width:100%}.q-reset-dialog-actions{flex-direction:column}#q-reset-dialog{padding:24px}}

/* One consistent square per step, current step takes precedence. */
#q-nav .q-step-number{border-radius:3px;background:#e9e6e3;border:1px solid #d4cfca;color:#756d67}
#q-nav :is(button,a).q-step-done{background:transparent;color:#B6717D}
#q-nav .q-step-partial .q-step-number{background:transparent;border:2px dashed #B6717D;color:#812538}
#q-nav .q-step-done .q-step-number{background:#B6717D;border:1px solid #B6717D;color:#fff}
#q-nav :is(button,a)[aria-current="step"]{outline:none;background:#81253808;color:#812538}
#q-nav :is(button,a)[aria-current="step"] .q-step-number{border:1px solid #812538;background:#812538;color:#fff}

/* Shared full-width progress layout: editor, horse picker and saved horse view. */
.q-status{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;align-items:start}
.q-status>.q-horse-progress{width:100%;min-width:0;grid-column:1}
.q-status>#q-save{width:auto;grid-column:1}

.q-reset-footer{margin-top:3rem;padding:1.5rem 0 0;border-top:1px solid #eee3d6;text-align:right}.q-main .q-reset-footer button,.q-main.q-reset-footer>button{background:transparent;border:0;color:#812538;font-size:.8rem;text-decoration:underline;text-underline-offset:4px;padding:.65rem 0}.q-reset-footer button:focus-visible{outline:2px solid #812538;outline-offset:4px}

.q-photo-tools{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.75rem}.q-photo-tools [hidden]{display:none!important}

/* Guided onboarding. ALERIA brand guide, p.18: vert anis #9E822E. */
.q-guided-main{--q-green:#9E822E;--q-burgundy:#812538}
.q-guided-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:2.5rem;align-items:start}
.q-guided-sidebar{background:#fff;padding:1.5rem 1.1rem;border:1px solid #eee3d6;border-radius:12px;position:sticky;top:105px}
.q-guided-title{font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;color:#786b65;margin:0 .5rem 1.1rem}
.q-guided-sidebar #q-nav{display:grid;grid-template-columns:1fr;margin:0;gap:.4rem;scroll-margin-top:100px}
.q-guided-sidebar #q-nav :is(button,a){font:inherit;font-size:.8rem;line-height:1.5;min-height:48px;text-decoration:none;cursor:pointer}
.q-guided-sidebar .preparation-tools{display:flex;flex-direction:column;gap:.9rem;border-top:1px solid #eee3d6;padding:.9rem .5rem 0;margin-top:1.5rem}
.q-guided-sidebar :focus-visible{outline:2px solid #812538!important;outline-offset:3px}
.q-guided-content{min-width:0}.q-guided-content .dossier-embedded{margin-top:0}
.q-guided-progress{max-width:none;padding-bottom:0!important;margin-bottom:2rem}.q-guided-progress .q-status{position:static}
.q-guided-notice{margin-bottom:1.5rem!important}
#q-nav :is(button,a).q-step-done{color:#9E822E}
#q-nav .q-step-done .q-step-number{background:#9E822E;border-color:#9E822E;color:#fff}
#q-nav :is(button,a)[aria-current="step"]{color:#812538}
#q-nav :is(button,a)[aria-current="step"] .q-step-number{background:#812538;border-color:#812538;color:#fff}
@media(max-width:1000px){
 .q-guided-layout{display:block}.q-guided-sidebar{position:static;padding:1rem;margin-bottom:1.5rem}
 .q-guided-sidebar #q-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
 .q-guided-sidebar .preparation-tools{flex-direction:row;flex-wrap:wrap;gap:.75rem 1.25rem}
 .q-guided-progress{margin-bottom:1.25rem}
}
@media(max-width:700px){.q-guided-sidebar #q-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.q-guided-progress{padding-left:0!important;padding-right:0!important}}

/* Keep progress below the site header, independently from the question content. */
.q-guided-progress{position:sticky;top:var(--q-header-height,80px);z-index:40;background:#FDF7F2}
.q-guided-progress .q-status{padding:.65rem 1.2rem;gap:2px}
.q-guided-progress .q-status>div:first-child{justify-content:space-between}
.q-guided-progress .q-status strong{font-size:1.2rem}
.q-guided-progress .q-horse-track{height:30px}
.q-field,#horse-profile-photo-field,.billing-card,.stable-address-card{scroll-margin-top:calc(var(--q-header-height,80px) + var(--q-progress-height,145px) + 16px)}
@media(min-width:1001px){.q-guided-sidebar{top:calc(var(--q-header-height,80px) + var(--q-progress-height,145px) + 16px);max-height:calc(100dvh - var(--q-header-height,80px) - var(--q-progress-height,145px) - 32px);overflow-y:auto}}

.q-guided-progress .q-status>.q-horse-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:.75rem;row-gap:2px;align-items:center}
.q-guided-progress .q-horse-track{grid-column:1;grid-row:1}
.q-guided-progress .q-status .q-progress-value{grid-column:2;grid-row:1;color:#812538;font-size:1.3rem;line-height:1;white-space:nowrap}
.q-guided-progress .q-horse-progress #q-progress{grid-column:1/-1;grid-row:2}

.q-mobile-account-tools{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;padding:1.25rem;margin-top:2rem;background:white;border:1px solid #eadfd5}
.q-mobile-account-tools a{font-size:.875rem;text-decoration:underline;color:#766f68}
.q-phone-help,.q-phone-error,.q-age-notice{font-size:.875rem;line-height:1.55;margin-top:.65rem}
.q-phone-error,.q-age-notice{color:#812538}

/* Keep unknown-answer labels compact without reducing their touch target. */
.q-main label.q-unknown{display:inline-flex;width:fit-content;max-width:100%;min-height:44px;padding:8px 6px;cursor:pointer;align-self:flex-start;flex:0 0 auto}.q-main label.q-unknown input{width:18px;height:18px;flex-shrink:0}.q-main label.q-unknown:focus-within{outline:2px solid #812538;outline-offset:2px}
