/* Santa For Hire Portal – shared styles (Santa sign-up, log-in, Santa dashboard). */

.sfhp {
	--sfhp-primary: #D62B33;
	--sfhp-secondary: #203068;
	--sfhp-ink: #1c2333;
	--sfhp-muted: #5b6475;
	--sfhp-line: #dfe3ec;
	--sfhp-bg: #f5f6fa;
	--sfhp-card: #ffffff;
	--sfhp-good: #17693f;
	--sfhp-good-bg: #e4f3ea;
	--sfhp-warn: #8a5600;
	--sfhp-warn-bg: #fff3d1;
	--sfhp-bad: #b3261e;
	--sfhp-bad-bg: #fde9e7;
	--sfhp-info-bg: #e9edf8;
	--sfhp-radius: 10px;
	color: var(--sfhp-ink);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	box-sizing: border-box;
}

.sfhp *,
.sfhp *::before,
.sfhp *::after {
	box-sizing: border-box;
}

.sfhp-public {
	container-type: inline-size;
	max-width: 920px;
	margin: 0 auto;
	padding: 8px 0 40px;
}

.sfhp [hidden] {
	display: none !important;
}

.sfhp h2,
.sfhp h3,
.sfhp h4 {
	color: var(--sfhp-secondary);
	line-height: 1.25;
	margin: 0 0 .5em;
	padding: 0;
	text-transform: none;
	letter-spacing: normal;
}

.sfhp h2 { font-size: 1.6em; font-weight: 700; }
.sfhp h3 { font-size: 1.25em; font-weight: 700; }
.sfhp h4 { font-size: 1.05em; font-weight: 700; }
.sfhp p { margin: 0 0 1em; }
.sfhp strong, .sfhp b { font-weight: 700; }
.sfhp ul, .sfhp ol { margin: 0 0 1em 1.3em; padding: 0; }
.sfhp li { margin: 0 0 .35em; }
.sfhp a { color: var(--sfhp-secondary); text-decoration: underline; }
.sfhp a:hover { color: var(--sfhp-primary); }
.sfhp small { font-size: .84em; color: var(--sfhp-muted); display: block; margin-top: 4px; }
.sfhp-muted { color: var(--sfhp-muted); font-size: .92em; }
.sfhp-lead { color: var(--sfhp-muted); margin-top: -.2em; }
.sfhp-req { color: var(--sfhp-primary); font-weight: 700; }
.sfhp-opt { color: var(--sfhp-muted); font-weight: 400; font-size: .88em; }

/* Reset theme button styling, then build our own. */
.sfhp button,
.sfhp [type="button"],
.sfhp [type="submit"] {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: normal;
	line-height: inherit;
	margin: 0;
	min-height: 0;
	padding: 0;
	text-align: inherit;
	text-decoration: none;
	text-transform: none;
	width: auto;
}

.sfhp button:hover,
.sfhp button:focus {
	background: none;
	color: inherit;
}

.sfhp .sfhp-btn {
	align-items: center;
	border: 2px solid transparent;
	border-radius: 8px;
	display: inline-flex;
	font-size: 1em;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	line-height: 1.2;
	padding: 11px 20px;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s;
	white-space: nowrap;
}

.sfhp .sfhp-btn--primary { background: var(--sfhp-primary); border-color: var(--sfhp-primary); color: #fff; }
.sfhp .sfhp-btn--primary:hover, .sfhp .sfhp-btn--primary:focus { background: #b31f27; border-color: #b31f27; color: #fff; }
.sfhp .sfhp-btn--secondary { background: var(--sfhp-secondary); border-color: var(--sfhp-secondary); color: #fff; }
.sfhp .sfhp-btn--secondary:hover, .sfhp .sfhp-btn--secondary:focus { background: #162249; border-color: #162249; color: #fff; }
.sfhp .sfhp-btn--ghost { background: #fff; border-color: #c5cbd9; color: var(--sfhp-secondary); }
.sfhp .sfhp-btn--ghost:hover, .sfhp .sfhp-btn--ghost:focus { background: #f0f2f8; border-color: var(--sfhp-secondary); color: var(--sfhp-secondary); }
.sfhp .sfhp-btn--danger { background: var(--sfhp-bad); border-color: var(--sfhp-bad); color: #fff; }
.sfhp .sfhp-btn--danger:hover, .sfhp .sfhp-btn--danger:focus { background: #8f1d17; border-color: #8f1d17; color: #fff; }
.sfhp .sfhp-btn--danger-ghost { background: #fff; border-color: #e3b5b1; color: var(--sfhp-bad); }
.sfhp .sfhp-btn--danger-ghost:hover, .sfhp .sfhp-btn--danger-ghost:focus { background: var(--sfhp-bad-bg); border-color: var(--sfhp-bad); color: var(--sfhp-bad); }
.sfhp .sfhp-btn--small { font-size: .88em; padding: 6px 12px; border-width: 1px; }
.sfhp .sfhp-btn:disabled, .sfhp .sfhp-btn[disabled] { cursor: not-allowed; opacity: .55; }

.sfhp button:focus-visible,
.sfhp a:focus-visible,
.sfhp input:focus-visible,
.sfhp select:focus-visible,
.sfhp textarea:focus-visible,
.sfhp summary:focus-visible,
.sfhp canvas:focus-visible {
	outline: 3px solid #6f8fe8;
	outline-offset: 2px;
}

.sfhp .sfhp-linkish { color: var(--sfhp-secondary); text-decoration: underline; font-weight: 600; }
.sfhp .sfhp-linkish:hover { color: var(--sfhp-primary); }
.sfhp .sfhp-link { font-size: .95em; }

/* Cards and notices */
.sfhp-card {
	background: var(--sfhp-card);
	border: 1px solid var(--sfhp-line);
	border-radius: var(--sfhp-radius);
	box-shadow: 0 1px 2px rgba(20, 30, 60, .05);
	margin: 0 0 20px;
	padding: 24px;
}

.sfhp-card--narrow { margin-left: auto; margin-right: auto; max-width: 520px; }

.sfhp-notice {
	border: 1px solid transparent;
	border-left-width: 5px;
	border-radius: 8px;
	margin: 0 0 18px;
	padding: 12px 16px;
}

.sfhp-notice ul { margin-bottom: 0; margin-top: 6px; }
.sfhp-notice--success { background: var(--sfhp-good-bg); border-color: #9fd0b3; border-left-color: var(--sfhp-good); color: #0f4a2b; }
.sfhp-notice--error { background: var(--sfhp-bad-bg); border-color: #f0b9b4; border-left-color: var(--sfhp-bad); color: #7d1a14; }
.sfhp-notice--warn { background: var(--sfhp-warn-bg); border-color: #ecd08a; border-left-color: #c98a00; color: #5f3c00; }
.sfhp-notice--info { background: var(--sfhp-info-bg); border-color: #c3cdea; border-left-color: var(--sfhp-secondary); color: #1b2957; }

/* Forms */
.sfhp-grid {
	display: grid;
	gap: 16px 18px;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	margin: 0 0 8px;
}

.sfhp-col-12 { grid-column: span 12; }
.sfhp-col-6 { grid-column: span 6; }
.sfhp-col-5 { grid-column: span 5; }
.sfhp-col-4 { grid-column: span 4; }
.sfhp-col-3 { grid-column: span 3; }
.sfhp-col-2 { grid-column: span 2; }

.sfhp .sfhp-field { border: 0; display: block; margin: 0; min-width: 0; padding: 0; }
.sfhp .sfhp-field > label,
.sfhp .sfhp-field > legend,
.sfhp .sfhp-label {
	color: var(--sfhp-ink);
	display: block;
	float: none;
	font-size: .95em;
	font-weight: 600;
	margin: 0 0 6px;
	padding: 0;
	width: 100%;
}

.sfhp input[type="text"],
.sfhp input[type="email"],
.sfhp input[type="tel"],
.sfhp input[type="password"],
.sfhp input[type="number"],
.sfhp input[type="date"],
.sfhp input[type="search"],
.sfhp select,
.sfhp textarea {
	background: #fff;
	border: 1px solid #b9c0d0;
	border-radius: 8px;
	box-shadow: none;
	color: var(--sfhp-ink);
	display: block;
	font: inherit;
	font-size: 1em;
	height: auto;
	line-height: 1.35;
	margin: 0;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.sfhp textarea { min-height: 84px; resize: vertical; }
.sfhp select { padding-right: 30px; }
.sfhp input[type="file"] { border: 1px dashed #aab2c5; border-radius: 8px; background: #fafbfd; font: inherit; font-size: .95em; max-width: 100%; padding: 12px; width: 100%; }
.sfhp input:focus, .sfhp select:focus, .sfhp textarea:focus { border-color: var(--sfhp-secondary); }

.sfhp .sfhp-check {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	font-weight: 400;
	gap: 10px;
	line-height: 1.4;
	margin: 0;
}

.sfhp .sfhp-field > label.sfhp-check { display: flex; font-size: 1em; font-weight: 400; margin: 0; }
.sfhp .sfhp-check input { accent-color: var(--sfhp-secondary); flex: 0 0 auto; height: 20px; margin: 2px 0 0; width: 20px; }
.sfhp .sfhp-check--small { font-size: .9em; }
.sfhp .sfhp-checks { display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sfhp .sfhp-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }

.sfhp .sfhp-pill { cursor: pointer; margin: 0; position: relative; }
.sfhp .sfhp-pill input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.sfhp .sfhp-pill span {
	background: #fff;
	border: 1px solid #b9c0d0;
	border-radius: 999px;
	display: inline-block;
	font-weight: 500;
	padding: 8px 16px;
	transition: background-color .12s, border-color .12s, color .12s;
}
.sfhp .sfhp-pill:hover span { border-color: var(--sfhp-secondary); }
.sfhp .sfhp-pill input:checked + span { background: var(--sfhp-secondary); border-color: var(--sfhp-secondary); color: #fff; }
.sfhp .sfhp-pill input:focus-visible + span { outline: 3px solid #6f8fe8; outline-offset: 2px; }

.sfhp .sfhp-error { color: var(--sfhp-bad); font-size: .9em; font-weight: 600; min-height: 0; }
.sfhp .has-error .sfhp-error { margin-top: 6px; }
.sfhp .has-error input:not([type="checkbox"]):not([type="radio"]),
.sfhp .has-error select,
.sfhp .has-error textarea,
.sfhp .has-error .sfhp-sig { border-color: var(--sfhp-bad); box-shadow: 0 0 0 1px var(--sfhp-bad); }
.sfhp .has-error .sfhp-pill span { border-color: var(--sfhp-bad); }

.sfhp-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.sfhp-hp { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }

/* Tabs on the Santa page */
.sfhp-tabs { border-bottom: 2px solid var(--sfhp-line); display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; }
.sfhp .sfhp-tab { border-bottom: 3px solid transparent; color: var(--sfhp-muted); font-weight: 700; margin-bottom: -2px; padding: 12px 18px; }
.sfhp .sfhp-tab:hover { color: var(--sfhp-secondary); }
.sfhp .sfhp-tab.is-active { border-bottom-color: var(--sfhp-primary); color: var(--sfhp-secondary); }

.sfhp-intro { background: var(--sfhp-secondary); border-radius: var(--sfhp-radius); color: #fff; margin: 0 0 22px; padding: 26px 28px; }
.sfhp .sfhp-intro h2 { color: #fff; }
.sfhp-intro .sfhp-muted { color: #d5dbf0; margin-bottom: 0; }
.sfhp-ready { columns: 2; column-gap: 28px; }
.sfhp-ready li { break-inside: avoid; }

/* Wizard */
.sfhp-wizard { background: var(--sfhp-card); border: 1px solid var(--sfhp-line); border-radius: var(--sfhp-radius); padding: 0 0 22px; }
.sfhp .sfhp-steps { background: #f7f8fc; border-bottom: 1px solid var(--sfhp-line); border-radius: var(--sfhp-radius) var(--sfhp-radius) 0 0; counter-reset: none; display: flex; gap: 0; list-style: none; margin: 0; overflow-x: auto; padding: 0; }
.sfhp .sfhp-steps li { flex: 1 0 auto; margin: 0; }
.sfhp .sfhp-steps button { align-items: center; border-bottom: 3px solid transparent; color: var(--sfhp-muted); display: flex; font-size: .86em; font-weight: 600; gap: 8px; justify-content: center; padding: 14px 10px; white-space: nowrap; width: 100%; }
.sfhp .sfhp-steps button:disabled { cursor: default; opacity: .75; }
.sfhp .sfhp-step-num { align-items: center; background: #dfe3ec; border-radius: 50%; color: #3d4658; display: inline-flex; flex: 0 0 26px; font-size: .92em; height: 26px; justify-content: center; }
.sfhp .sfhp-steps .is-current button { border-bottom-color: var(--sfhp-primary); color: var(--sfhp-secondary); }
.sfhp .sfhp-steps .is-current .sfhp-step-num { background: var(--sfhp-primary); color: #fff; }
.sfhp .sfhp-steps .is-done .sfhp-step-num { background: var(--sfhp-good); color: #fff; }
.sfhp .sfhp-steps .is-done button, .sfhp .sfhp-steps .is-reached button { color: var(--sfhp-ink); }

.sfhp-step { padding: 26px 28px 6px; }
.sfhp-step h3:focus { outline: none; }
.sfhp .sfhp-sub { border-top: 1px solid var(--sfhp-line); font-size: .82em; letter-spacing: .08em; margin: 26px 0 16px; padding-top: 20px; text-transform: uppercase; }
.sfhp-step > .sfhp-sub:first-of-type { margin-top: 14px; }

.sfhp-doc { background: #fbfbfd; border: 1px solid var(--sfhp-line); border-radius: 8px; font-size: .95em; margin: 0 0 18px; max-height: 420px; overflow-y: auto; padding: 20px 24px; }
.sfhp-doc hr { border: 0; border-top: 1px solid var(--sfhp-line); margin: 20px 0; }
.sfhp-legal { background: #fbfbfd; border: 1px solid var(--sfhp-line); border-radius: 8px; color: #3a4254; font-size: .9em; padding: 14px 16px; }
.sfhp-legal ol { margin-bottom: .6em; margin-top: .6em; }
.sfhp-legal p:last-child { margin-bottom: 0; }

.sfhp-optional { border: 1px solid var(--sfhp-line); border-radius: 8px; margin: 22px 0; padding: 0 18px; }
.sfhp-optional[open] { padding-bottom: 14px; }
.sfhp-optional summary { color: var(--sfhp-secondary); cursor: pointer; font-weight: 700; padding: 14px 0; }
.sfhp-ack { margin-top: 20px; }

.sfhp-wordcount.is-ok { color: var(--sfhp-good); font-weight: 600; }
.sfhp-preview img { border: 1px solid var(--sfhp-line); border-radius: 8px; display: block; margin-top: 10px; max-height: 180px; max-width: 100%; }
.sfhp-upload .sfhp-muted { margin-bottom: 10px; }

.sfhp-review { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 24px; }
.sfhp-review-card { border: 1px solid var(--sfhp-line); border-radius: 8px; padding: 14px 16px; }
.sfhp-review-head { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 8px; }
.sfhp-review-head strong { color: var(--sfhp-secondary); }
.sfhp .sfhp-review-card dl { display: grid; font-size: .92em; gap: 4px 12px; grid-template-columns: minmax(110px, 38%) 1fr; margin: 0; }
.sfhp .sfhp-review-card dt { color: var(--sfhp-muted); font-weight: 400; margin: 0; }
.sfhp .sfhp-review-card dd { margin: 0; overflow-wrap: anywhere; }

.sfhp-sig { background: #fff; border: 2px solid #b9c0d0; border-radius: 8px; max-width: 620px; position: relative; touch-action: none; }
.sfhp-sig canvas { cursor: crosshair; display: block; height: auto; touch-action: none; width: 100%; }
.sfhp-sig-line { border-bottom: 1px solid #9aa3b8; bottom: 22%; left: 5%; pointer-events: none; position: absolute; right: 5%; }
.sfhp-sig-tools { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; }
.sfhp .sfhp-sig-tools input[type="text"] { flex: 1 1 200px; max-width: 280px; min-height: 36px; padding: 6px 10px; }

.sfhp-nav { align-items: center; border-top: 1px solid var(--sfhp-line); display: flex; gap: 12px; margin: 22px 28px 0; padding-top: 20px; }
.sfhp-nav-spacer { flex: 1; }
.sfhp-form-error { margin: 18px 28px 0; }
.sfhp-sending { align-items: center; color: var(--sfhp-secondary); display: flex; font-weight: 600; gap: 12px; margin: 16px 28px 0; }
.sfhp-spinner { animation: sfhp-spin .8s linear infinite; border: 3px solid #cfd6ea; border-radius: 50%; border-top-color: var(--sfhp-secondary); display: inline-block; flex: 0 0 22px; height: 22px; width: 22px; }
@keyframes sfhp-spin { to { transform: rotate(360deg); } }

.sfhp-roster-hit { border-left: 6px solid var(--sfhp-good); }

/* Santa dashboard */
.sfhp-dash-head { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin: 0 0 18px; }
.sfhp-dash-head h2 { margin-bottom: 2px; }
.sfhp-status { border-radius: var(--sfhp-radius); border: 1px solid var(--sfhp-line); border-left-width: 6px; background: #fff; margin: 0 0 22px; padding: 22px 24px; }
.sfhp-status p:last-child { margin-bottom: 0; }
.sfhp-status-badge { border-radius: 999px; display: inline-block; font-size: .8em; font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; padding: 4px 12px; text-transform: uppercase; }
.sfhp-status--pending { border-left-color: #c98a00; }
.sfhp-status--pending .sfhp-status-badge { background: var(--sfhp-warn-bg); color: var(--sfhp-warn); }
.sfhp-status--approved { border-left-color: var(--sfhp-good); }
.sfhp-status--approved .sfhp-status-badge { background: var(--sfhp-good-bg); color: var(--sfhp-good); }
.sfhp-status--declined { border-left-color: #8a93a6; }
.sfhp-status--declined .sfhp-status-badge { background: #eef0f4; color: #4b5563; }
.sfhp .sfhp-track { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 16px 0 0; padding: 0; }
.sfhp .sfhp-track li { color: var(--sfhp-muted); margin: 0; padding-left: 26px; position: relative; }
.sfhp .sfhp-track li::before { border: 2px solid #b9c0d0; border-radius: 50%; content: ""; height: 16px; left: 0; position: absolute; top: 3px; width: 16px; }
.sfhp .sfhp-track li.is-done { color: var(--sfhp-ink); }
.sfhp .sfhp-track li.is-done::before { background: var(--sfhp-good); border-color: var(--sfhp-good); }
.sfhp .sfhp-track li.is-current { color: var(--sfhp-ink); font-weight: 700; }
.sfhp .sfhp-track li.is-current::before { border-color: #c98a00; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px #c98a00; }
.sfhp-two { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sfhp-tips li { margin-bottom: .7em; }

/* Staff log-in gate */
.sfhp-gate { padding-top: 40px; }
.sfhp-gate-head { background: #fff; border-bottom: 4px solid #D62B33; padding: 16px 24px; text-align: center; }
.sfhp-gate-head img { display: inline-block; height: 56px; width: auto; }
.sfhp-request summary { color: var(--sfhp-secondary); cursor: pointer; font-weight: 700; }
.sfhp-request[open] summary { margin-bottom: 14px; }

@media (max-width: 720px) {
	.sfhp-col-6, .sfhp-col-5, .sfhp-col-4, .sfhp-col-3 { grid-column: span 12; }
	.sfhp-col-2 { grid-column: span 4; }
	.sfhp-step { padding: 20px 16px 4px; }
	.sfhp-nav, .sfhp-form-error, .sfhp-sending { margin-left: 16px; margin-right: 16px; }
	.sfhp-review, .sfhp-two { grid-template-columns: 1fr; }
	.sfhp-ready { columns: 1; }
	.sfhp .sfhp-step-title { display: none; }
	.sfhp .sfhp-steps .is-current .sfhp-step-title { display: inline; }
	.sfhp-card { padding: 18px; }
	.sfhp-dash-head { flex-direction: column; }
}

/* The same adjustments when the theme's content column is narrow, whatever the screen size. */
@container (max-width: 760px) {
	.sfhp .sfhp-step-title { display: none; }
	.sfhp .sfhp-steps .is-current .sfhp-step-title { display: inline; }
	.sfhp-two { grid-template-columns: 1fr; }
}

@container (max-width: 600px) {
	.sfhp-col-6, .sfhp-col-5, .sfhp-col-4, .sfhp-col-3 { grid-column: span 12; }
	.sfhp-col-2 { grid-column: span 4; }
	.sfhp-review { grid-template-columns: 1fr; }
	.sfhp-ready { columns: 1; }
	.sfhp-step { padding: 20px 16px 4px; }
	.sfhp-nav, .sfhp-form-error, .sfhp-sending { margin-left: 16px; margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.sfhp *, .sfhp *::before, .sfhp *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v1.2: account form, thank-you panels, incomplete flag */
.sfhp-card .sfhp-nav, .sfhp-card .sfhp-form-error, .sfhp-card .sfhp-sending { margin-left: 0; margin-right: 0; }
.sfhp-card .sfhp-nav { border-top: 0; padding-top: 0; }
.sfhp-thanks { border-top: 6px solid var(--sfhp-good); padding: 34px 30px; text-align: center; }
.sfhp-thanks:focus { outline: none; }
.sfhp .sfhp-thanks h2 { margin: 0 auto 12px; max-width: 26em; }
.sfhp .sfhp-check-email { background: var(--sfhp-good-bg, #ecfdf3); border-radius: 8px; padding: 12px 16px; margin: 0 auto 16px; max-width: 34em; }
.sfhp-thanks p { margin-left: auto; margin-right: auto; max-width: 38em; }
.sfhp-thanks-mark { align-items: center; background: var(--sfhp-good-bg); border-radius: 50%; color: var(--sfhp-good); display: inline-flex; font-size: 30px; font-weight: 700; height: 60px; justify-content: center; margin-bottom: 14px; width: 60px; }
.sfhp-status--incomplete { background: #fff8f7; border-left-color: var(--sfhp-bad); }
.sfhp-status--incomplete .sfhp-status-badge { background: var(--sfhp-bad-bg); color: var(--sfhp-bad); }
.sfhp-upload .sfhp-notice { margin: 6px 0 10px; }
.sfhp-wizard .sfhp-notice--warn { margin-bottom: 16px; }
.sfhp-form > .sfhp-field { margin-bottom: 14px; }
.sfhp-form > .sfhp-field small { display: block; margin-top: 4px; }
.sfhp-actions--center { justify-content: center; margin: 18px 0 14px; }
