/* BookRocket front-end styles. Scoped under .brk-wrap; themable via --brk-accent. */

.brk-wrap {
	--brk-accent: #0d5bd8;
	--brk-bg: #f4f6f9;
	--brk-line: #e2e7ee;
	max-width: 680px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}

.brk-title {
	margin: 0 0 4px;
}

.brk-intro {
	margin: 0 0 22px;
	opacity: 0.82;
}

.brk-step {
	border: 1px solid var(--brk-line);
	border-radius: 12px;
	padding: 16px 18px 18px;
	margin: 0 0 16px;
}

.brk-step > legend {
	font-weight: 700;
	padding: 0 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.brk-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--brk-accent);
	color: #fff;
	font-size: 0.85rem;
}

/* Service cards */
.brk-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.brk-service {
	position: relative;
	display: block;
	cursor: pointer;
}

.brk-service input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.brk-service-body {
	display: block;
	border: 2px solid var(--brk-line);
	border-radius: 10px;
	padding: 12px 14px;
	height: 100%;
	transition: border-color .15s, box-shadow .15s;
}

.brk-service input:checked + .brk-service-body {
	border-color: var(--brk-accent);
	box-shadow: 0 0 0 3px rgba(13, 91, 216, .12);
}

.brk-service input:focus-visible + .brk-service-body {
	outline: 2px solid var(--brk-accent);
	outline-offset: 2px;
}

.brk-service-label {
	display: block;
	font-weight: 600;
}

.brk-service-meta {
	display: block;
	font-size: 0.85em;
	color: var(--brk-accent);
	margin-top: 2px;
}

.brk-service-desc {
	display: block;
	font-size: 0.85em;
	opacity: 0.7;
	margin-top: 4px;
}

/* Fields */
.brk-field {
	display: block;
	margin: 0 0 12px;
}

.brk-field > span {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.brk-form input[type="text"],
.brk-form input[type="email"],
.brk-form input[type="date"],
.brk-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd3dd;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	box-sizing: border-box;
}

.brk-form textarea {
	resize: vertical;
}

/* Time slots */
.brk-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.brk-slot {
	border: 1px solid #ccd3dd;
	background: #fff;
	border-radius: 8px;
	padding: 8px 14px;
	cursor: pointer;
	font: inherit;
}

.brk-slot:hover {
	border-color: var(--brk-accent);
}

.brk-slot.is-active {
	background: var(--brk-accent);
	color: #fff;
	border-color: var(--brk-accent);
}

.brk-slots-msg {
	margin: 4px 2px;
	opacity: 0.75;
}

/* On-request note (shown instead of the time slots on request-only days). */
.brk-req-note {
	opacity: 1;
	background: #eef3fb;
	border: 1px solid #c9d9ef;
	border-radius: 10px;
	padding: 12px 14px;
	color: #33475b;
	font-size: .95rem;
	line-height: 1.5;
}

/* Honeypot.
   Hidden by clipping, NOT by pushing it off to the left: in a right-to-left
   language a box at left:-9999px counts as scrollable overflow, the document
   becomes ten thousand pixels wide and the whole page is pushed out of view. */
.brk-hp {
	position: absolute !important;
	/* !important because the form's own "inputs are 100% wide" rule would
	   otherwise stretch this one back out and re-create the overflow. */
	width: 1px !important;
	max-width: 1px !important;
	height: 1px !important;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	opacity: 0;
}

.brk-submit {
	border: 0;
	background: var(--brk-accent);
	color: #fff;
	border-radius: 8px;
	padding: 12px 22px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	font-size: 1.02rem;
}

.brk-submit:hover {
	filter: brightness(1.08);
}

.brk-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.brk-note {
	font-size: 0.85em;
	opacity: 0.7;
	margin: 8px 2px 0;
}

.brk-error {
	color: #b3261e;
	margin: 10px 2px 0;
	font-weight: 600;
}

/* Success */
.brk-done {
	text-align: center;
	padding: 30px 20px;
	background: var(--brk-bg);
	border: 1px solid var(--brk-line);
	border-radius: 14px;
}

.brk-check {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #1f9d55;
	color: #fff;
	font-size: 30px;
	line-height: 56px;
}

@media (max-width: 480px) {
	.brk-services {
		grid-template-columns: 1fr;
	}
}
