/* Osteopoise quote acceptance portal */
.osp-qp {
	--osp-brand: #A85A1C;
	--osp-brand-dark: #8a4914;
	--osp-accent: #E67D2C;
	--osp-ink: #2b2b2b;
	--osp-muted: #5f5f5f;
	--osp-line: #e3ddd5;
	--osp-cream: #FFF8EE;
	--osp-soft: #faf7f3;
	--osp-ok: #2e7d4f;
	--osp-err: #b3261e;
	color: var(--osp-ink);
	font-size: 17px;
	line-height: 1.55;
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	box-sizing: border-box;
	container-type: inline-size;
	width: 100%;
}
.osp-qp *, .osp-qp *::before, .osp-qp *::after { box-sizing: border-box; }
.osp-qp h2 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; color: var(--osp-ink); padding: 0; }
.osp-qp h3 { font-size: 19px; margin: 24px 0 10px; color: var(--osp-ink); padding: 0; }
.osp-qp .osp-qp-card > h3:first-child, .osp-qp .osp-qp-card > h2 + h3 { margin-top: 8px; }
.osp-qp p { margin: 0 0 12px; padding: 0; }
.osp-qp a { color: var(--osp-brand); text-decoration: underline; text-underline-offset: 2px; }
.osp-qp a:hover { color: var(--osp-brand-dark); }
.osp-qp :focus-visible { outline: 3px solid var(--osp-accent); outline-offset: 2px; }

/* Progress */
.osp-qp-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 24px; padding: 0; counter-reset: none; }
.osp-qp-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--osp-soft); color: var(--osp-muted); font-size: 15px; font-weight: 600; margin: 0; }
.osp-qp-steps li.is-current { background: var(--osp-cream); color: var(--osp-ink); box-shadow: inset 0 0 0 2px var(--osp-accent); }
.osp-qp-steps li.is-done { color: var(--osp-ok); }
.osp-qp-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid currentColor; font-size: 14px; }
.osp-qp-steps li.is-current .osp-qp-num { background: var(--osp-accent); border-color: var(--osp-accent); color: #fff; }

/* Layout */
.osp-qp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.osp-qp-main { display: grid; gap: 24px; min-width: 0; }
.osp-qp-aside { display: grid; gap: 16px; }
.osp-qp-card { background: #fff; border: 1px solid var(--osp-line); border-radius: 14px; padding: 28px; margin: 0 0 24px; }
.osp-qp-main .osp-qp-card, .osp-qp-aside .osp-qp-card, .osp-qp-grid > .osp-qp-card { margin: 0; }
.osp-qp-card.is-soft { background: var(--osp-soft); }
.osp-qp-card.is-highlight { background: var(--osp-cream); border-color: #f0d9c2; border-left: 6px solid var(--osp-accent); }
.osp-qp-card.is-success { text-align: center; border-top: 6px solid var(--osp-ok); }
.osp-qp-tickmark { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--osp-ok); color: #fff; font-size: 36px; line-height: 64px; }

/* Forms */
.osp-qp-field { margin: 0 0 18px; }
.osp-qp-field label { display: block; font-weight: 700; margin: 0 0 6px; }
.osp-qp input[type="text"], .osp-qp input[type="email"], .osp-qp input[type="tel"] {
	width: 100%; max-width: 420px; font-size: 18px; padding: 12px 14px; border: 2px solid #b9b2a9; border-radius: 8px; background: #fff; color: var(--osp-ink); margin: 0;
}
.osp-qp input:focus { border-color: var(--osp-brand); outline: none; box-shadow: 0 0 0 3px rgba(230, 125, 44, .3); }
.osp-qp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.osp-qp-row input[type] { max-width: none; }
.osp-qp-help { font-size: 15px; color: var(--osp-muted); margin: 6px 0 0; }
.osp-qp-opt { font-weight: 400; color: var(--osp-muted); }
.osp-qp-small { font-size: 14px; color: var(--osp-muted); }
.osp-qp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.osp-qp-btn, .osp-qp a.osp-qp-btn {
	display: inline-block; background: var(--osp-brand); color: #fff; border: 0; border-radius: 8px; padding: 14px 26px; font-size: 18px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; font-family: inherit;
}
.osp-qp-btn:hover, .osp-qp a.osp-qp-btn:hover { background: var(--osp-brand-dark); color: #fff; }
.osp-qp-btn[disabled] { opacity: .65; cursor: progress; }
.osp-qp-btn-lg { padding: 16px 32px; font-size: 19px; }
.osp-qp-link { background: none; border: 0; padding: 0; color: var(--osp-brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: 15px; }

.osp-qp-alert { border-left: 5px solid var(--osp-err); background: #fdecea; padding: 12px 16px; border-radius: 6px; margin: 0 0 16px; }
.osp-qp-alert.is-info { border-color: var(--osp-ok); background: #eaf5ee; }

/* Ticks */
.osp-qp-ticks { display: grid; gap: 10px; }
.osp-qp-tick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--osp-soft); border-radius: 10px; }
.osp-qp-tick.is-optional { background: #fff; border: 1px dashed #d7cfc4; }
.osp-qp-tick input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--osp-brand); cursor: pointer; }
.osp-qp-tick label { cursor: pointer; }

/* Signature */
.osp-qp-sigwrap { position: relative; max-width: 560px; }
.osp-qp-sig { display: block; width: 100%; height: 180px; border: 2px solid #b9b2a9; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.osp-qp-sigline { position: absolute; left: 18px; right: 18px; bottom: 40px; border-bottom: 1px solid #cfc7bc; color: #b9b2a9; font-size: 16px; line-height: 1; pointer-events: none; }
.osp-qp-sigactions { margin: 6px 0 16px; }

/* Quote summary */
.osp-qp-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.osp-qp-meta div { background: var(--osp-soft); border-radius: 10px; padding: 10px 12px; }
.osp-qp-meta dt { font-size: 13px; color: var(--osp-muted); margin: 0; }
.osp-qp-meta dd { margin: 2px 0 0; font-weight: 700; }
.osp-qp-table-wrap { overflow-x: auto; }
.osp-qp-items { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 12px; border: 0; }
.osp-qp-items th { text-align: left; font-size: 14px; color: var(--osp-muted); border-bottom: 2px solid var(--osp-line); padding: 8px; background: none; }
.osp-qp-items td { border-bottom: 1px solid var(--osp-line); padding: 12px 8px; vertical-align: top; }
.osp-qp-items td span { font-size: 14px; color: var(--osp-muted); }
.osp-qp-items .num { text-align: right; white-space: nowrap; }
.osp-qp-totals { margin: 0 0 12px auto; max-width: 300px; }
.osp-qp-totals div { display: flex; justify-content: space-between; padding: 4px 8px; }
.osp-qp-totals dt, .osp-qp-totals dd { margin: 0; }
.osp-qp-totals .is-total { background: var(--osp-cream); border-radius: 8px; padding: 10px 8px; font-size: 20px; font-weight: 700; margin-top: 4px; }

/* PDF preview */
.osp-qp-pdf summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--osp-brand); }
.osp-qp-pdf-actions { margin: 12px 0; font-size: 15px; }
.osp-qp-pages { max-height: 720px; overflow: auto; background: #eceae7; border-radius: 10px; padding: 12px; display: grid; gap: 12px; justify-items: center; }
.osp-qp-page { max-width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); }

/* Side panels */
.osp-qp-policies { background: #fff; border: 1px solid var(--osp-line); border-radius: 14px; padding: 20px 24px; font-size: 16px; }
.osp-qp-policies ul { margin: 8px 0 0; padding: 0 0 0 18px; }
.osp-qp-policies li { margin: 0 0 6px; }
.osp-qp-how { margin: 0 0 12px; padding-left: 20px; }
.osp-qp-how li { margin: 0 0 8px; }
.osp-qp-ref { font-size: 20px; letter-spacing: .04em; }

@container (min-width: 900px) {
	.osp-qp-grid { grid-template-columns: minmax(0, 1fr) 320px; }
	.osp-qp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 560px) {
	.osp-qp-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 560px) {
	.osp-qp-card { padding: 20px 16px; border-radius: 12px; }
	.osp-qp h2 { font-size: 22px; }
	.osp-qp-steps { gap: 4px; }
	.osp-qp-steps li { flex-direction: column; text-align: center; gap: 4px; padding: 8px 4px; font-size: 12.5px; }
	.osp-qp-btn, .osp-qp a.osp-qp-btn { width: 100%; text-align: center; }
	.osp-qp-sig { height: 160px; }
}
@media (max-width: 600px) {
	.osp-qp { font-size: 16px; padding: 4px 0 32px; }
}

/* VAT relief declaration (1.1.0) - reuses the portal styles above */
.osp-qp textarea.osp-vat-input, .osp-qp .osp-vat-input {
	width: 100%; font-size: 18px; padding: 12px 14px; border: 2px solid #b9b2a9; border-radius: 8px; background: #fff; color: var(--osp-ink); margin: 0; font-family: inherit; max-width: none;
}
.osp-qp textarea.osp-vat-input { min-height: 110px; resize: vertical; line-height: 1.45; }
.osp-qp textarea:focus { border-color: var(--osp-brand); outline: none; box-shadow: 0 0 0 3px rgba(230, 125, 44, .3); }
.osp-qp .osp-vat-input.is-invalid { border-color: var(--osp-err); }
.osp-vat-notice { background: var(--osp-soft); border-radius: 10px; padding: 18px 20px; margin: 0 0 20px; font-size: 16px; }
.osp-vat-notice ul { margin: 0 0 12px; padding-left: 20px; }
.osp-vat-notice li { margin: 0 0 6px; }
.osp-vat-fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.osp-vat-fieldset legend { font-weight: 700; margin: 0 0 8px; padding: 0; font-size: inherit; }
.osp-qp-tick input[type="radio"] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--osp-brand); cursor: pointer; }
.osp-vat-indent { margin-top: 12px; }
.osp-vat-gap { margin: 0 0 20px; }
.osp-vat-care { margin: 0 0 20px !important; }
.osp-vat-care h3 { margin-top: 0; }
.osp-qp [hidden] { display: none !important; }
@container (min-width: 900px) {
	.osp-qp-row.osp-vat-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
