/* =========================================================================
   150 Peel - contractor check in
   Designed for a phone held one-handed at a doorway: large targets, short
   scroll, nothing that needs pinching to read.
   ========================================================================= */

.peel-checkin {
	--pc-brand: #008cba;
	--pc-brand-dark: #00708f;
	--pc-ink: #10191e;
	--pc-muted: #5d6d76;
	--pc-border: #cfdde5;
	--pc-ok: #0a7d3c;
	--pc-bad: #b32d2e;
	font-family: 'Abel', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	max-width: 520px;
	margin: 0 auto 48px;
	padding: 0 16px;
	color: #23323a;
}

/* Status banners */

.peel-checkin__banner {
	display: block;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 20px;
	border: 2px solid;
}

.peel-checkin__banner strong {
	display: block;
	font-size: 19px;
	margin-bottom: 3px;
}

.peel-checkin__banner span {
	display: block;
	font-size: 15px;
	line-height: 1.5;
}

.peel-checkin__banner--ok {
	border-color: var(--pc-ok);
	background: #f1fbf5;
	color: var(--pc-ok);
}

.peel-checkin__banner--bad {
	border-color: var(--pc-bad);
	background: #fdf5f5;
	color: var(--pc-bad);
}

/* Card */

.peel-checkin__card {
	background: #eaf7ff;
	border: 1px solid var(--pc-border);
	border-radius: 12px;
	padding: 26px 22px 28px;
}

.peel-checkin__title {
	font-size: 27px;
	line-height: 1.15;
	font-weight: 700;
	color: var(--pc-brand);
	margin: 0 0 6px;
	text-align: center;
}

.peel-checkin__sub {
	font-size: 15px;
	color: var(--pc-muted);
	text-align: center;
	margin: 0 0 24px;
}

/* Tabs */

.peel-checkin__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	background: #dcedf6;
	border-radius: 10px;
	padding: 5px;
	margin-bottom: 24px;
}

.peel-checkin__tab {
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	color: var(--pc-muted);
	background: transparent;
	border: none;
	border-radius: 7px;
	padding: 12px 8px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.peel-checkin__tab.is-active {
	background: #fff;
	color: var(--pc-ink);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

/* Fields */

.peel-checkin__label {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--pc-ink);
	margin: 18px 0 6px;
}

.peel-checkin__label:first-of-type {
	margin-top: 0;
}

.peel-checkin__label span {
	color: var(--pc-bad);
}

.peel-checkin__input {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	/* 16px stops iOS zooming the page when the field is focused */
	font-size: 16px;
	line-height: 1.4;
	color: #23323a;
	background: #fff;
	border: 1px solid var(--pc-border);
	border-radius: 8px;
	padding: 14px 13px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

textarea.peel-checkin__input {
	resize: vertical;
	min-height: 90px;
}

.peel-checkin__input:focus {
	outline: none;
	border-color: var(--pc-brand);
	box-shadow: 0 0 0 3px rgba(0, 140, 186, .18);
}

.peel-checkin__hint {
	display: block;
	font-size: 13px;
	color: var(--pc-muted);
	margin-top: 6px;
}

/* Checkbox group */

.peel-checkin__checks {
	display: grid;
	gap: 8px;
}

.peel-checkin__check {
	display: flex;
	align-items: center;
	gap: 11px;
	background: #fff;
	border: 1px solid var(--pc-border);
	border-radius: 8px;
	padding: 13px 14px;
	font-size: 16px;
	cursor: pointer;
}

.peel-checkin__check input {
	width: 21px;
	height: 21px;
	margin: 0;
	accent-color: var(--pc-brand);
	flex: 0 0 auto;
}

.peel-checkin__check:has(input:checked) {
	border-color: var(--pc-brand);
	background: #f3fbfe;
}

/* Buttons */

.peel-checkin__btn {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: var(--pc-brand);
	border: none;
	border-radius: 9px;
	padding: 17px 20px;
	margin-top: 26px;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}

.peel-checkin__btn:hover { background: var(--pc-brand-dark); }
.peel-checkin__btn:active { transform: translateY(1px); }

.peel-checkin__btn--out { background: var(--pc-ok); }
.peel-checkin__btn--out:hover { background: #086330; }

/* Already on site panel */

.peel-checkin__onsite {
	background: #fff;
	border: 1px solid var(--pc-border);
	border-left: 4px solid var(--pc-ok);
	border-radius: 10px;
	padding: 18px 20px;
}

.peel-checkin__eyebrow {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pc-ok);
	font-weight: 700;
	margin: 0 0 8px;
}

.peel-checkin__who {
	font-size: 21px;
	font-weight: 700;
	color: var(--pc-ink);
	margin: 0;
	line-height: 1.25;
}

.peel-checkin__who span {
	display: block;
	font-size: 15px;
	font-weight: 400;
	color: var(--pc-muted);
	margin-top: 2px;
}

.peel-checkin__since {
	font-size: 14px;
	color: var(--pc-muted);
	margin: 10px 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.peel-checkin * { transition: none !important; }
}
