/* Olympia Vaccine Consent Form — scoped under .ovc-wrap so it won't clash with the theme. */
.ovc-wrap {
	--ovc-accent: #1b6fb5;
	--ovc-accent-dark: #145489;
	--ovc-ink: #1f2933;
	--ovc-muted: #5f6b7a;
	--ovc-line: #d6dde5;
	--ovc-bg: #f6f8fb;
	--ovc-err: #c62828;
	--ovc-radius: 10px;
	max-width: 880px;
	margin: 0 auto;
	color: var(--ovc-ink);
	font-size: 16px;
	line-height: 1.45;
}
.ovc-wrap *, .ovc-wrap *::before, .ovc-wrap *::after { box-sizing: border-box; }
.ovc-head h2 { margin: 0 0 4px; font-size: 1.6em; }
.ovc-head p { margin: 0 0 4px; color: var(--ovc-muted); font-size: .92em; }
.ovc-note { margin-top: 8px !important; }
.ovc-req { color: var(--ovc-err); font-weight: 700; }
.ovc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ovc-card {
	border: 1px solid var(--ovc-line);
	border-radius: var(--ovc-radius);
	background: #fff;
	padding: 20px 22px 18px;
	margin: 18px 0 0;
	min-width: 0;
}
.ovc-card > legend {
	/* Float the legend so it renders INSIDE the card instead of on the border line. */
	float: left;
	width: 100%;
	display: block;
	font-weight: 700;
	font-size: 1.15em;
	line-height: 1.3;
	padding: 0 0 12px;
	margin: 0 0 14px;
	border-bottom: 1px solid var(--ovc-line);
	color: var(--ovc-ink);
}
.ovc-card > legend + * { clear: both; }
.ovc-sec {
	display: inline-block;
	background: var(--ovc-ink);
	color: #fff;
	font-size: .75em;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
	margin-right: 6px;
	vertical-align: 2px;
}
.ovc-help { color: var(--ovc-muted); margin: 0 0 12px; font-size: .95em; }
.ovc-fine { color: var(--ovc-muted); font-size: .82em; margin: 10px 0 0; }

.ovc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ovc-row-3 { grid-template-columns: 1.3fr .6fr 1.3fr; }
.ovc-row-4 { grid-template-columns: repeat(4, 1fr); }
.ovc-field { margin: 0 0 14px; min-width: 0; }
.ovc-field > label, .ovc-label, .ovc-sub-card label:not(.ovc-check) {
	display: block;
	font-weight: 600;
	font-size: .9em;
	margin-bottom: 4px;
}
.ovc-label small, .ovc-field small, .ovc-sub-card h4 small { font-weight: 400; color: var(--ovc-muted); }
.ovc-wrap input[type="text"], .ovc-wrap input[type="email"], .ovc-wrap input[type="tel"],
.ovc-wrap input[type="date"], .ovc-wrap select, .ovc-wrap textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
	color: var(--ovc-ink);
	background: #fff;
	border: 1px solid #b9c3ce;
	border-radius: 8px;
	min-height: 44px;
}
.ovc-wrap input[readonly] { background: var(--ovc-bg); }
.ovc-wrap input:focus, .ovc-wrap select:focus, .ovc-wrap textarea:focus, .ovc-consent:focus {
	outline: 2px solid var(--ovc-accent);
	outline-offset: 1px;
	border-color: var(--ovc-accent);
}

.ovc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.ovc-grid-vax { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ovc-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ovc-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: 400 !important; padding: 5px 0; }
.ovc-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ovc-accent); }
.ovc-block { margin: 4px 0 12px; }

/* Screening questions */
.ovc-qs { list-style: decimal; margin: 0; padding-left: 26px; }
.ovc-q { padding: 12px 0; border-top: 1px solid #edf0f3; }
.ovc-q:first-child { border-top: 0; }
.ovc-q::marker { font-weight: 700; }
.ovc-qt { margin: 0 0 8px; font-weight: 500; display: block; }
.ovc-yn { display: inline-flex; border: 1px solid #b9c3ce; border-radius: 8px; overflow: hidden; }
.ovc-yn label { position: relative; margin: 0; cursor: pointer; }
.ovc-yn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ovc-yn span { display: block; padding: 8px 16px; min-width: 64px; text-align: center; border-left: 1px solid #b9c3ce; font-size: .92em; user-select: none; }
.ovc-yn label:first-child span { border-left: 0; }
.ovc-yn input:checked + span { background: var(--ovc-accent); color: #fff; font-weight: 600; }
.ovc-yn input:focus-visible + span { outline: 2px solid var(--ovc-accent-dark); outline-offset: -3px; }
.ovc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 0; }
.ovc-sublabel { min-width: 130px; }
.ovc-sub .ovc-if-yes { flex-basis: 100%; }
.ovc-if-yes { margin-top: 10px; max-width: 520px; }
.ovc-if-yes label { font-weight: 600; font-size: .9em; }

/* Consent + signature */
.ovc-consent {
	max-height: 230px;
	overflow-y: auto;
	background: var(--ovc-bg);
	border: 1px solid var(--ovc-line);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: .84em;
	color: #3a4450;
	margin-bottom: 12px;
}
.ovc-consent p { margin: 0; }
.ovc-tabs { display: flex; gap: 6px; margin: 6px 0 8px; }
.ovc-tabs button {
	font: inherit; font-size: .9em; padding: 7px 14px; cursor: pointer;
	border: 1px solid #b9c3ce; background: #fff; color: var(--ovc-ink); border-radius: 999px;
}
.ovc-tabs button.is-active { background: var(--ovc-ink); border-color: var(--ovc-ink); color: #fff; }
.ovc-sigbox { position: relative; border: 1.5px dashed #9aa7b4; border-radius: 8px; background: #fff; height: 170px; touch-action: none; }
.ovc-sigbox canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.ovc-sigline { position: absolute; left: 16px; right: 16px; bottom: 34px; border-bottom: 1px solid #c3ccd6; color: #9aa7b4; font-size: 14px; pointer-events: none; line-height: 1; padding-bottom: 2px; }
.ovc-link { background: none; border: 0; color: var(--ovc-accent); font: inherit; font-size: .9em; padding: 6px 0; cursor: pointer; text-decoration: underline; }
.ovc-sig-preview { min-height: 70px; margin-top: 8px; border-bottom: 1px solid #c3ccd6; font: italic 38px "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; padding: 6px 10px; color: #0d2a4a; overflow: hidden; white-space: nowrap; }

/* Insurance */
.ovc-sub-card { border: 1px solid var(--ovc-line); background: var(--ovc-bg); border-radius: 8px; padding: 14px 16px 4px; margin: 0 0 14px; }
.ovc-sub-card h4 { margin: 0 0 10px; font-size: 1em; }
.ovc-drop {
	position: relative; display: flex !important; align-items: center; justify-content: center; text-align: center;
	min-height: 96px; padding: 12px; margin: 0 !important;
	border: 1.5px dashed #9aa7b4; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 400 !important;
}
.ovc-drop:hover, .ovc-drop.is-over { border-color: var(--ovc-accent); background: #f0f6fc; }
.ovc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ovc-drop-text { color: var(--ovc-muted); font-size: .9em; }
.ovc-drop-text strong { color: var(--ovc-accent); }
.ovc-drop-file { display: none; font-size: .88em; word-break: break-all; }
.ovc-drop.has-file .ovc-drop-text { display: none; }
.ovc-drop.has-file .ovc-drop-file { display: flex; align-items: center; gap: 10px; }
.ovc-drop-file img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--ovc-line); }

/* Errors */
.ovc-err { display: none; color: var(--ovc-err); font-size: .85em; font-weight: 600; margin: 6px 0 0; }
.is-invalid > .ovc-err, .is-invalid .ovc-err[data-err] { display: block; }
.ovc-q.is-invalid, .ovc-card.is-invalid { box-shadow: inset 3px 0 0 var(--ovc-err); padding-left: 10px; }
.ovc-q.is-invalid .ovc-yn, .is-invalid .ovc-yn { border-color: var(--ovc-err); }
.is-invalid input:not([type="checkbox"]):not([type="radio"]), .is-invalid select, .is-invalid textarea, .is-invalid .ovc-drop, .is-invalid .ovc-sigbox { border-color: var(--ovc-err); }
.ovc-alert { background: #fdecea; border: 1px solid #f5c2c0; color: #8a1c1c; padding: 12px 14px; border-radius: 8px; margin-top: 16px; }
.ovc-alert ul { margin: 6px 0 0 18px; padding: 0; }

.ovc-submit { margin: 22px 0 10px; text-align: center; }
.ovc-btn {
	font: inherit; font-weight: 700; font-size: 1.05em; color: #fff; background: var(--ovc-accent);
	border: 0; border-radius: 999px; padding: 14px 34px; cursor: pointer; min-width: 260px;
}
.ovc-btn:hover { background: var(--ovc-accent-dark); }
.ovc-btn[disabled] { opacity: .65; cursor: progress; }
.ovc-done { text-align: center; padding: 40px 20px; border: 1px solid var(--ovc-line); border-radius: var(--ovc-radius); background: #f3faf4; }
.ovc-done h2 { margin-top: 0; color: #1e6b33; }

[hidden] { display: none !important; }

@media (max-width: 720px) {
	.ovc-card { padding: 16px 14px 12px; }
	.ovc-row, .ovc-row-3, .ovc-row-4 { grid-template-columns: 1fr; gap: 0; }
	.ovc-grid-vax { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ovc-grid { grid-template-columns: 1fr; }
	.ovc-yn { display: flex; width: 100%; }
	.ovc-yn label { flex: 1; }
	.ovc-yn span { min-width: 0; padding: 10px 6px; }
	.ovc-qs { padding-left: 22px; }
	.ovc-btn { width: 100%; min-width: 0; }
}

/* ---------- Two-step layout ---------- */
.ovc-steps { list-style: none; display: flex; gap: 10px; margin: 16px 0 0; padding: 0; counter-reset: none; }
.ovc-steps li {
	flex: 1; display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid var(--ovc-line); border-radius: var(--ovc-radius);
	padding: 10px 14px; font-weight: 600; font-size: .92em; color: var(--ovc-muted);
}
.ovc-steps li span {
	flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	background: var(--ovc-bg); border: 1px solid var(--ovc-line); font-size: .9em;
}
.ovc-steps li.is-current { color: var(--ovc-ink); border-color: var(--ovc-accent); box-shadow: inset 0 -3px 0 var(--ovc-accent); }
.ovc-steps li.is-current span { background: var(--ovc-accent); border-color: var(--ovc-accent); color: #fff; }
.ovc-steps li.is-done span { background: #1e6b33; border-color: #1e6b33; color: #fff; }
.ovc-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 8px; }
.ovc-btn-ghost { background: #fff; color: var(--ovc-ink); border: 1px solid #b9c3ce; min-width: 0; }
.ovc-btn-ghost:hover { background: var(--ovc-bg); }
.ovc-center { text-align: center; }

/* Yes / No insurance choice cards */
.ovc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.ovc-choice label { position: relative; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.ovc-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ovc-choice span {
	display: block; padding: 14px 16px 14px 46px; border: 1.5px solid #b9c3ce; border-radius: 10px; background: #fff; position: relative;
}
.ovc-choice span::before {
	content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid #9aa7b4; background: #fff;
}
.ovc-choice strong { display: block; font-size: 1em; }
.ovc-choice small { display: block; color: var(--ovc-muted); font-size: .85em; margin-top: 2px; }
.ovc-choice input:checked + span { border-color: var(--ovc-accent); background: #f0f6fc; }
.ovc-choice input:checked + span::before { border-color: var(--ovc-accent); background: var(--ovc-accent); box-shadow: inset 0 0 0 3px #fff; }
.ovc-choice input:focus-visible + span { outline: 2px solid var(--ovc-accent); outline-offset: 2px; }
.is-invalid .ovc-choice span { border-color: var(--ovc-err); }
.ovc-optout { background: #fff8ec; border-color: #f1d7a8; }

@media (max-width: 720px) {
	.ovc-steps li { padding: 8px 10px; font-size: .82em; }
	.ovc-choice { grid-template-columns: 1fr; }
	.ovc-nav { flex-direction: column-reverse; align-items: stretch; }
	.ovc-nav > span { display: none; }
}
