.qo.wrap { max-width: 1120px; padding-block: 22px 72px; }
.qo [hidden], .qo-form .qo-list { display: none !important; }
.qo-form:has([value="list"]:checked) .qo-report { display: none !important; }
.qo-form:has([value="list"]:checked) .qo-list { display: inline !important; }
.qo-intro { margin-bottom: 26px; }
.qo-intro h1, .qo-receipt h1 { margin: 0 0 6px; font-size: var(--ap-type-display, 48px); line-height: 1.05; }
.qo-intro p, .qo-receipt p { max-width: 65ch; margin: 0; font-size: 17px; }
.qo-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); gap: 42px; align-items: start; }
.qo-job, .qo-contact { min-width: 0; }
.qo-form fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.qo legend, .qo h2 { margin: 0 0 14px; padding: 0; font-size: 22px; line-height: 1.2; font-weight: 700; }
.qo-form label { display: block; margin: 14px 0 0; font-weight: 700; }
.qo-form small, .qo-hint, .qo-planner { font-weight: 400; color: #50564d; }
.qo-form input:not([type="radio"], [type="checkbox"], [type="hidden"], [type="file"]), .qo-form textarea, .qo-form select {
	display: block; width: 100%; min-width: 0; min-height: 46px; margin: 5px 0 0; padding: 9px 12px;
	border: 1px solid #9ca298; border-radius: 4px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--ap-font-body, sans-serif);
}
.qo-form textarea { resize: vertical; }
.qo-form input::placeholder, .qo-form textarea::placeholder { color: #64695f; }
.qo :focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.qo-switch { display: inline-flex; border: 1px solid #8c9386; border-radius: 5px; }
.qo-switch label { margin: 0; cursor: pointer; position: relative; }
.qo-switch input, .qo-upload input {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.qo-switch span { display: grid; place-items: center; min-height: 44px; padding: 6px 20px; border-radius: 3px; }
.qo-switch input:checked + span { background: var(--ink); color: #fff; }
.qo-switch input:focus-visible + span, .qo-upload:focus-within { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.qo-form .qo-upload { display: flex; gap: 16px; align-items: center; padding: 19px 22px; border: 1px dashed #79836f; border-radius: 6px; cursor: pointer; }
.qo-upload:hover { background: var(--accent-wash); }
.qo-upload > .icon { width: 30px; height: 36px; flex-shrink: 0; stroke-width: 1.5; }
.qo-upload span { min-width: 0; }
.qo-upload strong, .qo-upload small { display: block; overflow-wrap: anywhere; }
.qo-upload strong { font-size: 18px; }
.qo-upload small { margin-top: 2px; }
.qo-hint { font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
.qo-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.qo-contact { padding: 24px; background: var(--paper-2); border-radius: 8px; }
.qo-form details { margin-top: 16px; }
.qo-form summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.qo-form details[open] > summary { margin-bottom: 3px; }
.qo-checks > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.qo-checks label { min-height: 40px; margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.qo-checks input { width: 18px; height: 18px; accent-color: var(--accent-deep); }
.qo .qo-send { width: 100%; min-height: 48px; margin-top: 16px; justify-content: space-between; border-radius: 4px; box-shadow: none; padding-inline: 16px; font-size: 16px; }
.qo-send:disabled { opacity: .65; cursor: wait; }
.qo-planner { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.qo-planner a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; color: var(--ink); }
.qo-draft { margin: 20px 0 0; }
.qo-draft h2 { margin: 0; }
.qo-draft ul { margin: 12px 0; padding: 0; list-style: none; }
.qo-draft li { display: grid; grid-template-columns: minmax(0,1fr) 70px 62px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.qo-draft li > span:last-child { font-size: 13px; color: #50564d; }
.qo-draft li input[type="number"] { margin: 0; padding: 6px; min-height: 40px; font-variant-numeric: tabular-nums; }
.qo-draft .qo-hint p { margin: 4px 0; }
.qo-error { margin: 0 0 16px; padding: 14px; border: 1px solid #98352d; border-radius: 4px; color: #822b25; }
.qo-error p, .qo-error ul { margin: 0; }
.qo-error ul:not(:empty) { margin-top: 6px; padding-left: 20px; }
.qo-receipt { margin: 20px 0; }
.qo-receipt > .icon { width: 42px; height: 42px; padding: 8px; background: var(--accent); border-radius: 50%; margin-bottom: 16px; }
.qo-receipt a { margin-top: 20px; }
@media (min-width: 1025px) and (min-height: 800px) {
	.qo-contact:not(:has(details[open])) { position: sticky; top: 168px; }
}
@media (max-width: 760px) {
	.qo.wrap { padding-block: 10px 42px; }
	.qo-intro { margin-bottom: 20px; }
	.qo-intro p { font-size: 16px; }
	.qo-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
	.qo-contact { padding: 18px; }
	.qo legend, .qo h2 { font-size: 20px; }
}
@media (max-width: 420px) {
	.qo-pair { grid-template-columns: 1fr; gap: 0; }
	.qo-checks > div { grid-template-columns: 1fr; }
}
