/* GPS Mail & Booking - booking form. Everything is scoped under .gpsm-booking. */
.gpsm-booking {
	--gpsm-primary: #00AD8F;
	--gpsm-primary-soft: #e0f1ec;
	--gpsm-primary-line: #c2e2dd;
	--gpsm-bg: #eaedf0;
	--gpsm-border: #e1e1e1;
	--gpsm-text: #222;
	--gpsm-muted: #878a9c;
	max-width: 760px;
	margin: 0 auto;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--gpsm-text);
	background: var(--gpsm-bg);
	box-sizing: border-box;
}
@supports (color: color-mix(in srgb, red 50%, white)) {
	.gpsm-booking {
		--gpsm-primary-soft: color-mix(in srgb, var(--gpsm-primary) 14%, #fff);
		--gpsm-primary-line: color-mix(in srgb, var(--gpsm-primary) 35%, #fff);
	}
}
.gpsm-booking *, .gpsm-booking *::before, .gpsm-booking *::after { box-sizing: border-box; }
.gpsm-booking [hidden] { display: none !important; }
.gpsm-booking p { margin: 0 0 5px; font-size: 13px; font-weight: 600; line-height: 24px; }
.gpsm-booking button { font-family: inherit; }

.gpsm-loading { padding: 40px; text-align: center; color: var(--gpsm-muted); background: #fff; }

.gpsm-header, .gpsm-body, .gpsm-footer {
	padding: 15px;
	background: #fff;
	box-shadow: rgba(99, 99, 99, .2) 0 2px 8px 0;
}
.gpsm-body { background: var(--gpsm-bg); box-shadow: none; min-height: 240px; }

.gpsm-brand { text-align: center; margin-bottom: 12px; }
.gpsm-logo { max-height: 70px; max-width: 220px; height: auto; display: inline-block; }
.gpsm-address { color: var(--gpsm-muted); font-weight: 500 !important; }

.gpsm-tabs { display: flex; gap: 8px; }
.gpsm-tab {
	flex: 1;
	text-align: center;
	background: var(--gpsm-bg);
	padding: 8px 6px;
	border-radius: 5px;
	color: #000;
	transition: background .2s, color .2s;
}
.gpsm-tab svg { width: 20px; height: 20px; fill: currentColor; display: block; margin: 0 auto 2px; }
.gpsm-tab p { margin: 0 !important; line-height: 22px !important; }
.gpsm-tab-active { background: var(--gpsm-primary-soft); color: var(--gpsm-primary); }
.gpsm-tab-done { background: var(--gpsm-primary); color: #fff; }

.gpsm-dots { display: flex; margin-top: 10px; }
.gpsm-dot-wrap { flex: 1; position: relative; }
.gpsm-dot {
	height: 22px; width: 22px; margin: auto;
	border-radius: 50%;
	background: #bbb;
	border: 5px solid #efefef;
	position: relative; z-index: 1;
}
.gpsm-dot-line { position: absolute; width: 72%; border-top: 2.5px dashed var(--gpsm-bg); top: 45%; left: -36%; }
.gpsm-dot-active .gpsm-dot { background: var(--gpsm-primary); border-color: var(--gpsm-primary-line); }
.gpsm-dot-done .gpsm-dot { background: var(--gpsm-primary); border-color: var(--gpsm-primary); }
.gpsm-dot-active .gpsm-dot-line, .gpsm-dot-done .gpsm-dot-line { border-color: var(--gpsm-primary-line); }

.gpsm-step { display: none; }
.gpsm-step.gpsm-active { display: block; animation: gpsm-fade .25s ease-out; }
@keyframes gpsm-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.gpsm-title { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 10px 0 15px; }
.gpsm-subtitle { margin-top: 16px !important; }

.gpsm-alert { padding: 10px 14px; border-radius: 5px; margin-bottom: 10px; font-weight: 500; }
.gpsm-error { background: #fdecea; color: #a1281b; border: 1px solid #f5c2bc; }
.gpsm-ok { background: var(--gpsm-primary-soft); color: #145c4f; border: 1px solid var(--gpsm-primary-line); }

/* Accordion */
.gpsm-acc {
	display: block; width: 100%;
	position: relative;
	text-align: left;
	text-transform: uppercase;
	font-size: 14px; font-weight: 600; line-height: 22px;
	color: #444;
	background: #fff;
	border: 0; border-radius: 5px;
	margin: 5px 0 0;
	padding: 12px 44px 12px 16px;
	cursor: pointer;
}
.gpsm-acc::after {
	content: "";
	position: absolute; right: 20px; top: 18px;
	width: 8px; height: 8px;
	border-right: 2px solid #666; border-bottom: 2px solid #666;
	transform: rotate(45deg);
	transition: transform .3s;
}
.gpsm-acc.gpsm-open::after { transform: rotate(-135deg); top: 22px; }
.gpsm-acc:focus-visible, .gpsm-btn:focus-visible, .gpsm-slot:focus-visible, .gpsm-cal-day:focus-visible { outline: 2px solid var(--gpsm-primary); outline-offset: 2px; }
.gpsm-acc-summary { text-transform: none; }
.gpsm-acc-summary:empty { display: none; }
.gpsm-acc-summary .gpsm-ex-total { margin-top: 10px !important; }

.gpsm-panel {
	background: #fff;
	border-radius: 0 0 5px 5px;
	padding: 0 18px;
	max-height: 0; overflow: hidden;
	opacity: 0;
	transition: max-height .35s ease-out, opacity .35s, padding .35s;
}
.gpsm-panel.gpsm-panel-open { max-height: 5000px; opacity: 1; padding: 12px 18px; }
.gpsm-staff { border-radius: 5px; }

.gpsm-option {
	display: block; position: relative;
	padding: 0 0 12px 35px; margin-bottom: 12px;
	line-height: 24px;
	cursor: pointer; user-select: none;
	overflow: hidden;
}
.gpsm-option:not(:last-child) { border-bottom: 1px solid var(--gpsm-bg); }
.gpsm-option:last-child { margin-bottom: 0; padding-bottom: 0; }
.gpsm-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.gpsm-check { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: #eee; }
.gpsm-option input:checked ~ .gpsm-check { background: var(--gpsm-primary); }
.gpsm-option input:checked ~ .gpsm-check::after {
	content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px;
	border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.gpsm-option input:focus-visible ~ .gpsm-check { outline: 2px solid var(--gpsm-primary); outline-offset: 2px; }
.gpsm-option.gpsm-disabled { opacity: .45; cursor: not-allowed; }
.gpsm-name { font-weight: 500; }
.gpsm-price { float: right; color: var(--gpsm-primary); font-weight: 600; }
.gpsm-time { float: right; margin-right: 15px; color: var(--gpsm-muted); }

.gpsm-ex-total { background: #f3f3f3; border-radius: 5px; padding: 8px 12px; margin: 0 0 8px !important; font-weight: 600; text-transform: none; }
.gpsm-ex-total span { float: right; color: var(--gpsm-primary); }
.gpsm-ex-ser { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0 !important; }
.gpsm-ex-ser span { padding: 2px 10px; border: 1px solid #d3cfcf; border-radius: 5px; font-weight: 500; }
.gpsm-date-label { background: #fff; }

/* Calendar */
.gpsm-cal { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.gpsm-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gpsm-cal-title { font-weight: 600; font-size: 15px; }
.gpsm-cal-nav {
	width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
	font-size: 24px; line-height: 1; color: #555; cursor: pointer;
}
.gpsm-cal-nav:hover:not(:disabled) { background: #f2f2f2; }
.gpsm-cal-nav:disabled { opacity: .3; cursor: default; }
.gpsm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.gpsm-cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--gpsm-muted); padding: 4px 0; }
.gpsm-cal-day {
	aspect-ratio: 1 / 1; min-height: 34px;
	border: 1px solid transparent; border-radius: 50%;
	background: transparent; color: var(--gpsm-text);
	font-size: 14px; cursor: pointer;
}
.gpsm-cal-day:hover:not(:disabled) { background: var(--gpsm-primary-soft); }
.gpsm-cal-day:disabled { color: #c4c4c4; cursor: default; text-decoration: line-through; }
.gpsm-cal-day.gpsm-today { border-color: var(--gpsm-primary-line); }
.gpsm-cal-day.gpsm-selected { background: var(--gpsm-primary); color: #fff; }

/* Slots */
.gpsm-slots { background: #fff; border-radius: 8px; padding: 12px; }
.gpsm-slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gpsm-slot {
	border: 1px solid var(--gpsm-border); border-radius: 4px;
	background: #fff; color: var(--gpsm-text);
	padding: 8px 4px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.gpsm-slot:hover { border-color: var(--gpsm-primary); }
.gpsm-slot.gpsm-selected { background: var(--gpsm-primary); border-color: var(--gpsm-primary); color: #fff; }
.gpsm-hint { color: var(--gpsm-muted); font-weight: 500 !important; text-align: center; margin: 6px 0 !important; }

/* Info */
.gpsm-card { background: #fff; border-radius: 5px; padding: 18px; display: grid; }
.gpsm-label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.gpsm-req { color: #d63638; }
.gpsm-card input[type="text"], .gpsm-card input[type="tel"], .gpsm-card input[type="email"] {
	width: 100%; margin: 5px 0; padding: 12px 14px;
	border: 1px solid #cdcdcd; border-radius: 6px; font-size: 15px; background: #fff; color: var(--gpsm-text);
}
.gpsm-card input:focus { outline: none; border-color: var(--gpsm-primary); box-shadow: 0 0 0 2px var(--gpsm-primary-soft); }
.gpsm-card input.gpsm-invalid { border-color: #d63638; }
.gpsm-field-error { color: #d63638; font-size: 12px; margin-bottom: 4px; }
.gpsm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.gpsm-summary p { font-weight: 500; }
.gpsm-right { float: right; }
.gpsm-group { border-top: 1px solid var(--gpsm-bg); padding-top: 6px; margin-top: 6px; }
.gpsm-group-title { font-weight: 700 !important; text-transform: uppercase; }
.gpsm-total { border-top: 2px solid var(--gpsm-bg); margin-top: 8px !important; padding-top: 6px; font-weight: 700 !important; }
.gpsm-total .gpsm-right { color: var(--gpsm-primary); }
.gpsm-policy { margin-top: 14px !important; }
.gpsm-agree { display: flex; align-items: center; gap: 8px; color: var(--gpsm-muted); }
.gpsm-agree input { width: 20px; height: 20px; margin: 0; accent-color: var(--gpsm-primary); }
.gpsm-agree label { font-weight: 500; cursor: pointer; }
.gpsm-turnstile { margin-top: 12px; }

/* Footer */
.gpsm-footer { display: flex; gap: 10px; justify-content: center; }
.gpsm-btn {
	flex: 1; max-width: 320px;
	border: 0; border-radius: 99px;
	background: var(--gpsm-primary); color: #fff;
	padding: 12px 18px; font-size: 14px; font-weight: 600;
	cursor: pointer; text-align: center; text-decoration: none;
	transition: filter .2s;
}
.gpsm-btn:hover { filter: brightness(.93); color: #fff; }
.gpsm-btn:disabled { opacity: .6; cursor: wait; }
.gpsm-prev { background: #fff; color: var(--gpsm-primary); border: 1px solid var(--gpsm-primary); }
.gpsm-prev:hover { color: var(--gpsm-primary); }

/* Finish */
.gpsm-finish { text-align: center; background: #fff; padding: 40px 16px; border-radius: 5px; }
.gpsm-done-icon svg { width: 64px; height: 64px; fill: var(--gpsm-primary); }
.gpsm-done-msg { font-size: 16px !important; }
.gpsm-ref strong { color: var(--gpsm-primary); letter-spacing: .05em; }
.gpsm-home { display: inline-block; margin-top: 24px; min-width: 200px; }

@media (max-width: 520px) {
	.gpsm-header, .gpsm-body, .gpsm-footer { padding: 10px; }
	.gpsm-tab p { font-size: 11px; }
	.gpsm-slot-grid { grid-template-columns: repeat(3, 1fr); }
	.gpsm-time { float: none; display: block; margin: 0; }
	.gpsm-panel.gpsm-panel-open { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.gpsm-booking * { animation: none !important; transition: none !important; }
}
