/**
 * DIYP Booking — modern frontend booking experience.
 * All rules are scoped to the shortcode wrapper to avoid theme conflicts.
 */

.diyp-booking {
	--diyp-primary: #e2242b;
	--diyp-primary-dark: #b91820;
	--diyp-ink: #17202a;
	--diyp-heading: #101828;
	--diyp-muted: #667085;
	--diyp-subtle: #98a2b3;
	--diyp-line: #e7e9ee;
	--diyp-line-strong: #d8dde6;
	--diyp-bg: #ffffff;
	--diyp-soft: #f7f8fa;
	--diyp-soft-2: #fbfbfc;
	--diyp-success: #168253;
	--diyp-danger: #b42318;
	--diyp-warning: #9a6700;
	--diyp-radius-sm: 12px;
	--diyp-radius: 18px;
	--diyp-radius-lg: 24px;
	--diyp-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
	--diyp-shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.07);
	--diyp-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	font-family: var(--diyp-font);
	color: var(--diyp-ink);
	font-size: 15px;
	line-height: 1.6;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.diyp-booking *,
.diyp-booking *::before,
.diyp-booking *::after {
	box-sizing: inherit;
}

.diyp-booking button,
.diyp-booking input,
.diyp-booking select,
.diyp-booking textarea {
	font-family: inherit;
}

/*
 * Defensive reset.
 *
 * The active theme applies aggressive global rules to form controls — it hides
 * native checkboxes and radios entirely, and restyles inputs. This wizard has to
 * render identically regardless of the theme it is dropped into, so the visible
 * controls are re-asserted here. Scoped to .diyp-booking so nothing leaks out.
 */
.diyp-booking input[type="text"],
.diyp-booking input[type="email"],
.diyp-booking input[type="tel"],
.diyp-booking input[type="date"],
.diyp-booking input[type="number"],
.diyp-booking select,
.diyp-booking textarea {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	float: none !important;
	max-width: 100% !important;
	box-shadow: none;
}

.diyp-booking button {
	display: inline-flex;
	visibility: visible !important;
	opacity: 1;
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* ---------- EFT payment countdown ---------- */

.diyp-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0 0 18px;
}

.diyp-countdown-time {
	font-size: 44px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1px;
	font-variant-numeric: tabular-nums;
	color: var(--diyp-heading, #101828);
}

.diyp-countdown-time.is-urgent {
	color: var(--diyp-danger, #b42318);
}

.diyp-countdown-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--diyp-muted);
}

.diyp-eft-details {
	margin-bottom: 14px;
	text-align: left;
}

/* ---------- Payment action buttons ---------- */

.diyp-payactions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 6px;
}

/* ---------- Medical aid dialog ---------- */

.diyp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(16, 24, 40, .55);
	overflow-y: auto;
}

.diyp-modal-box {
	width: 100%;
	max-width: 460px;
	margin: auto;
	padding: 26px;
	border-radius: var(--diyp-radius);
	background: #fff;
	box-shadow: 0 24px 60px rgba(16, 24, 40, .3);
	text-align: left;
}

.diyp-modal-box h3 {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 800;
	color: var(--diyp-heading, #101828);
}

.diyp-modal-sub {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--diyp-muted);
}

.diyp-modal-form {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
}

.diyp-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

@media (max-width: 480px) {
	.diyp-modal-box {
		padding: 20px;
	}

	.diyp-modal-actions {
		flex-direction: column-reverse;
	}

	.diyp-modal-actions .diyp-btn {
		width: 100%;
	}
}

/* ---------- Proof of payment ---------- */

.diyp-popbox {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 18px 0;
	padding: 20px;
	border: 1px solid var(--diyp-line);
	border-radius: var(--diyp-radius);
	background: var(--diyp-soft-2);
}

.diyp-popbox-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--diyp-muted);
}

.diyp-popbox-number {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.4px;
	color: var(--diyp-heading, #101828);
}

.diyp-btn-wa {
	background: #25d366 !important;
	border-color: #25d366 !important;
	color: #0b3d20 !important;
}

.diyp-btn-wa:hover {
	background: #1fbc5a !important;
	border-color: #1fbc5a !important;
}

/* ---------- Step transitions and loading placeholders ---------- */

.diyp-panel {
	transition: opacity .22s ease, transform .22s ease;
}

.diyp-panel.is-entering {
	opacity: 0;
	transform: translateY(6px);
}

.diyp-skel {
	display: block;
	border-radius: 8px;
	background: linear-gradient(90deg, #eef0f4 25%, #f6f7f9 37%, #eef0f4 63%);
	background-size: 400% 100%;
	animation: diyp-shimmer 1.3s ease-in-out infinite;
}

.diyp-skel-slot {
	height: 40px;
}

.diyp-skel-label {
	width: 96px;
	height: 12px;
	margin-bottom: 10px;
	background-color: #eef0f4;
}

@keyframes diyp-shimmer {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.diyp-panel,
	.diyp-skel {
		transition: none;
		animation: none;
	}
}

.diyp-loading {
	min-height: 360px;
	display: grid;
	place-items: center;
	padding: 70px 24px;
	color: var(--diyp-muted);
	background: #fff;
	border: 1px solid var(--diyp-line);
	border-radius: var(--diyp-radius-lg);
	box-shadow: var(--diyp-shadow);
}

/* ---------- Branded header ---------- */

.diyp-booking-head {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin: 0 0 18px;
	padding: 30px 32px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--diyp-radius-lg);
	background:
		radial-gradient(circle at 85% 15%, rgba(255,255,255,.13), transparent 28%),
		linear-gradient(135deg, #111827 0%, #202a38 62%, #111827 100%);
	color: #fff;
	overflow: hidden;
	box-shadow: var(--diyp-shadow);
}

.diyp-booking-head::after {
	content: "+";
	position: absolute;
	right: -18px;
	top: -74px;
	font-size: 220px;
	font-weight: 300;
	line-height: 1;
	color: rgba(255,255,255,.035);
	pointer-events: none;
}

.diyp-brand {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.diyp-brand-mark {
	width: 58px;
	height: 58px;
	border-radius: 17px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--diyp-primary);
	box-shadow: 0 12px 28px rgba(0,0,0,.24);
	flex: 0 0 auto;
	overflow: hidden;
}

.diyp-brand-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	padding: 7px;
}

.diyp-brand-symbol {
	font-size: 36px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
}

.diyp-brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.diyp-eyebrow,
.diyp-service-kicker,
.diyp-payment-kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .105em;
	text-transform: uppercase;
}

.diyp-eyebrow {
	color: rgba(255,255,255,.68);
	margin-bottom: 3px;
}

.diyp-brand-copy > strong {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
	letter-spacing: -.035em;
	font-weight: 700;
}

.diyp-head-sub {
	display: block;
	max-width: 650px;
	margin-top: 8px;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(255,255,255,.72);
}

.diyp-head-trust {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	max-width: 310px;
}

.diyp-head-trust > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 10px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 999px;
	background: rgba(255,255,255,.06);
	font-size: 11.5px;
	line-height: 1.2;
	white-space: nowrap;
	color: rgba(255,255,255,.84);
}

.diyp-head-trust i {
	font-style: normal;
	color: #86efac;
	font-weight: 800;
}

/* ---------- Main container ---------- */

.diyp-shell {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-items: start;
	background: var(--diyp-bg);
	border: 1px solid var(--diyp-line);
	border-radius: var(--diyp-radius-lg);
	box-shadow: var(--diyp-shadow);
	overflow: hidden;
}

/* ---------- Progress steps ---------- */

.diyp-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0 32px;
	background: var(--diyp-soft-2);
	border-bottom: 1px solid var(--diyp-line);
}

.diyp-steps::before {
	content: "";
	position: absolute;
	left: calc(12.5% + 32px);
	right: calc(12.5% + 32px);
	top: 30px;
	height: 2px;
	background: var(--diyp-line);
	z-index: 0;
}

.diyp-step {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 68px;
	padding: 12px 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--diyp-subtle);
	white-space: nowrap;
}

.diyp-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 31px;
	height: 31px;
	border: 2px solid var(--diyp-line);
	border-radius: 50%;
	background: #fff;
	color: var(--diyp-subtle);
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 0 0 5px var(--diyp-soft-2);
	flex: 0 0 auto;
}

.diyp-step.is-active {
	color: var(--diyp-heading);
}

.diyp-step.is-active .diyp-step-num,
.diyp-step.is-done .diyp-step-num {
	border-color: var(--diyp-primary);
	background: var(--diyp-primary);
	color: #fff;
}

.diyp-step.is-done {
	color: var(--diyp-muted);
}

.diyp-step.is-done .diyp-step-num::before {
	content: "✓";
}

.diyp-step.is-done .diyp-step-num {
	font-size: 0;
}

.diyp-step.is-done .diyp-step-num::before {
	font-size: 13px;
}

/* ---------- Panel ---------- */

.diyp-panel {
	background: var(--diyp-bg);
	padding: 36px 38px 32px;
	min-height: 430px;
}

.diyp-panel > div > h2,
.diyp-result h2 {
	margin: 0 0 5px;
	font-size: clamp(22px, 2.5vw, 29px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.025em;
	color: var(--diyp-heading);
}

.diyp-panel .diyp-sub {
	margin: 0 0 26px;
	color: var(--diyp-muted);
	font-size: 14px;
}

/* ---------- Service cards ---------- */

.diyp-services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.diyp-service {
	position: relative;
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 138px;
	padding: 18px;
	border: 1px solid var(--diyp-line);
	border-radius: var(--diyp-radius);
	background: #fff;
	color: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(16,24,40,.02);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
	overflow: hidden;
}

.diyp-service::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	bottom: 18px;
	width: 3px;
	border-radius: 0 4px 4px 0;
	background: transparent;
	transition: background .18s ease;
}

.diyp-service:hover,
.diyp-service:focus-visible {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--diyp-primary) 46%, var(--diyp-line));
	box-shadow: var(--diyp-shadow-sm);
	outline: none;
}

.diyp-service:hover::before,
.diyp-service.is-selected::before {
	background: var(--diyp-primary);
}

.diyp-service.is-selected {
	border-color: var(--diyp-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--diyp-primary) 10%, transparent), var(--diyp-shadow-sm);
}

.diyp-service-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 17px;
	background: color-mix(in srgb, var(--diyp-primary) 9%, #fff);
	overflow: hidden;
	flex: 0 0 auto;
}

.diyp-service-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.diyp-service-icon {
	font-size: 31px;
	font-weight: 400;
	line-height: 1;
	color: var(--diyp-primary);
}

.diyp-service-body,
.diyp-service-name,
.diyp-service-desc,
.diyp-service-meta {
	display: block;
}

.diyp-service-kicker,
.diyp-payment-kicker {
	color: var(--diyp-primary);
	margin-bottom: 5px;
}

.diyp-service-name {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
	color: var(--diyp-heading);
	margin-bottom: 4px;
}

.diyp-service-desc {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--diyp-muted);
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.diyp-service-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.diyp-duration,
.diyp-price {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
}

.diyp-duration {
	background: var(--diyp-soft);
	color: var(--diyp-muted);
}

.diyp-price {
	background: color-mix(in srgb, var(--diyp-primary) 10%, #fff);
	color: var(--diyp-primary);
}

.diyp-service-arrow {
	font-size: 20px;
	color: var(--diyp-subtle);
	transition: color .18s ease, transform .18s ease;
}

.diyp-service:hover .diyp-service-arrow {
	color: var(--diyp-primary);
	transform: translateX(3px);
}

/* ---------- Calendar and slots ---------- */

.diyp-datetime {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
	gap: 22px;
	align-items: stretch;
}

.diyp-datetime > div:first-child,
.diyp-slots {
	border: 1px solid var(--diyp-line);
	border-radius: var(--diyp-radius);
	background: #fff;
}

.diyp-datetime > div:first-child {
	padding: 20px;
}

.diyp-cal-head {
	display: grid;
	grid-template-columns: 38px 1fr 38px;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.diyp-cal-title {
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	color: var(--diyp-heading);
}

.diyp-cal-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--diyp-line);
	border-radius: 11px;
	background: var(--diyp-soft-2);
	color: var(--diyp-heading);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.diyp-cal-nav:hover:not(:disabled) {
	border-color: var(--diyp-primary);
	background: color-mix(in srgb, var(--diyp-primary) 6%, #fff);
}

.diyp-cal-nav:disabled {
	opacity: .35;
	cursor: default;
}

.diyp-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 5px;
}

.diyp-cal-dow {
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	color: var(--diyp-subtle);
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 4px 0 7px;
}

.diyp-day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	min-width: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 11px;
	background: transparent;
	color: var(--diyp-heading);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.diyp-day:hover:not(:disabled) {
	border-color: color-mix(in srgb, var(--diyp-primary) 35%, var(--diyp-line));
	background: color-mix(in srgb, var(--diyp-primary) 6%, #fff);
}

.diyp-day:disabled {
	color: #c7ccd4;
	cursor: default;
}

.diyp-day.is-selected {
	border-color: var(--diyp-primary);
	background: var(--diyp-primary);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--diyp-primary) 24%, transparent);
}

.diyp-day.is-empty {
	visibility: hidden;
}

.diyp-slots {
	padding: 18px;
	max-height: 470px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--diyp-line-strong) transparent;
}

.diyp-slot-group {
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--diyp-subtle);
	margin: 18px 0 8px;
}

.diyp-slot-group:first-child {
	margin-top: 0;
}

.diyp-slot-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.diyp-slot {
	min-height: 42px;
	padding: 8px 7px;
	border: 1px solid var(--diyp-line);
	border-radius: 11px;
	background: var(--diyp-soft-2);
	color: var(--diyp-heading);
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
}

.diyp-slot:hover:not(:disabled) {
	transform: translateY(-1px);
	border-color: var(--diyp-primary);
	background: color-mix(in srgb, var(--diyp-primary) 5%, #fff);
	color: var(--diyp-primary);
}

.diyp-slot:disabled {
	opacity: .42;
	cursor: default;
	text-decoration: line-through;
}

.diyp-slot.is-selected {
	border-color: var(--diyp-primary);
	background: var(--diyp-primary);
	color: #fff;
	font-weight: 700;
}

/* ---------- Patient details form ---------- */

.diyp-fields-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 17px 18px;
}

.diyp-field {
	margin: 0;
	min-width: 0;
}

.diyp-field-textarea,
.diyp-field-radio,
.diyp-field-check {
	grid-column: 1 / -1;
}

.diyp-field > label:not(.diyp-check) {
	display: block;
	margin-bottom: 7px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--diyp-heading);
}

.diyp-req {
	color: var(--diyp-primary);
	margin-left: 3px;
}

.diyp-field input[type="text"],
.diyp-field input[type="email"],
.diyp-field input[type="tel"],
.diyp-field input[type="date"],
.diyp-field input[type="number"],
.diyp-field select,
.diyp-field textarea {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid var(--diyp-line-strong);
	border-radius: 12px;
	background: #fff;
	color: var(--diyp-heading);
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 1px 2px rgba(16,24,40,.02);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.diyp-field input::placeholder,
.diyp-field textarea::placeholder {
	color: #a8afba;
	opacity: 1;
}

.diyp-field textarea {
	min-height: 112px;
	resize: vertical;
}

.diyp-field input:focus,
.diyp-field select:focus,
.diyp-field textarea:focus {
	outline: none;
	border-color: var(--diyp-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--diyp-primary) 10%, transparent);
}

.diyp-field.has-error input,
.diyp-field.has-error select,
.diyp-field.has-error textarea {
	border-color: var(--diyp-danger);
	background: #fffafa;
}

.diyp-help {
	margin-top: 5px;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--diyp-muted);
}

.diyp-error {
	margin-top: 5px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--diyp-danger);
}

.diyp-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.diyp-choice,
.diyp-check {
	/* Contains the off-screen native input. */
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.diyp-choice {
	padding: 10px 13px;
	border: 1px solid var(--diyp-line);
	border-radius: 11px;
	background: var(--diyp-soft-2);
}

.diyp-check {
	padding: 14px;
	border: 1px solid var(--diyp-line);
	border-radius: 12px;
	background: var(--diyp-soft-2);
}

/*
 * Checkboxes and radios are drawn by us, not by the browser.
 *
 * The Medixi theme applies `display:none; visibility:hidden; opacity:0` to every
 * native checkbox and radio on the site so it can substitute its own. That made
 * the consent tickbox, the gender choice and the gateway selector invisible and
 * unusable. Rather than fight it with !important on the native widget, the real
 * input is parked off-screen — still focusable, still keyboard-operable, still
 * the source of truth for form state — and .diyp-box paints the visible control.
 * Nothing here depends on how the theme treats native inputs.
 */
.diyp-booking .diyp-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	/* Kept in the layout so it can still receive focus. */
	display: block !important;
	visibility: visible !important;
	opacity: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.diyp-booking .diyp-box {
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 2px solid var(--diyp-line-strong, #c9ced6);
	background: #fff;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.diyp-booking .diyp-box-radio {
	border-radius: 50%;
}

.diyp-booking .diyp-box-check {
	border-radius: 6px;
}

/* Filled state */
.diyp-booking .is-checked .diyp-box,
.diyp-booking .is-selected .diyp-box {
	border-color: var(--diyp-primary);
	background: var(--diyp-primary);
}

/* Radio dot */
.diyp-booking .is-checked .diyp-box-radio::after,
.diyp-booking .is-selected .diyp-box-radio::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: #fff;
}

/* Checkbox tick */
.diyp-booking .is-checked .diyp-box-check::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

/* Keyboard focus ring, drawn on the visible control. */
.diyp-booking .diyp-native:focus-visible + .diyp-box {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--diyp-primary) 28%, transparent);
	border-color: var(--diyp-primary);
}

.diyp-booking .diyp-choice:hover .diyp-box,
.diyp-booking .diyp-check:hover .diyp-box,
.diyp-booking .diyp-gateway:hover .diyp-box {
	border-color: var(--diyp-primary);
}

.diyp-booking .diyp-choice.is-checked,
.diyp-booking .diyp-check.is-checked {
	border-color: var(--diyp-primary);
	background: color-mix(in srgb, var(--diyp-primary) 5%, #fff);
}

/* An unticked required consent box should read as an error, not just red text. */
.diyp-booking .has-error .diyp-box {
	border-color: var(--diyp-danger);
}

/* ---------- Summary and payment ---------- */

.diyp-summary-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(290px, .95fr);
	gap: 18px;
	align-items: start;
}

.diyp-summary-card,
.diyp-payment-card {
	padding: 20px;
	border: 1px solid var(--diyp-line);
	border-radius: var(--diyp-radius);
	background: #fff;
}

.diyp-summary {
	margin: 10px 0 0;
	padding: 0;
	border: 0;
}

.diyp-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--diyp-line);
	font-size: 12.5px;
}

.diyp-summary-row:last-child {
	border-bottom: 0;
}

.diyp-summary-row dt {
	margin: 0;
	flex: 0 0 38%;
	color: var(--diyp-muted);
}

.diyp-summary-row dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
	color: var(--diyp-heading);
	word-break: break-word;
}

.diyp-summary-total {
	margin-top: 6px;
	padding: 14px 13px;
	border: 0;
	border-radius: 12px;
	background: var(--diyp-soft);
	font-size: 15px;
	font-weight: 700;
}

.diyp-summary-total dd {
	font-size: 17px;
	color: var(--diyp-primary);
}

.diyp-payment-card h3 {
	margin: 0 0 3px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--diyp-heading);
}

.diyp-payment-note {
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--diyp-muted);
}

.diyp-gateways {
	display: grid;
	gap: 9px;
	margin: 0;
}

.diyp-gateway {
	position: relative;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid var(--diyp-line);
	border-radius: 12px;
	background: var(--diyp-soft-2);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.diyp-gateway:hover {
	border-color: color-mix(in srgb, var(--diyp-primary) 40%, var(--diyp-line));
}

.diyp-gateway.is-selected {
	border-color: var(--diyp-primary);
	background: color-mix(in srgb, var(--diyp-primary) 5%, #fff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--diyp-primary) 8%, transparent);
}

/* The gateway radio uses the same drawn control as the rest of the form. */
.diyp-gateway .diyp-box {
	margin-top: 2px;
}

.diyp-gateway-title {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: var(--diyp-heading);
}

.diyp-gateway-desc {
	margin-top: 2px;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--diyp-muted);
}

.diyp-secure-note {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin-top: 13px;
	padding-top: 13px;
	border-top: 1px solid var(--diyp-line);
	font-size: 10.5px;
	line-height: 1.5;
	color: var(--diyp-muted);
}

.diyp-secure-note > span {
	color: var(--diyp-success);
	font-weight: 800;
}

/* ---------- Buttons and actions ---------- */

.diyp-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--diyp-line);
}

.diyp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	border: 1px solid var(--diyp-primary);
	border-radius: 12px;
	background: var(--diyp-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--diyp-primary) 22%, transparent);
	transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.diyp-btn:hover:not(:disabled),
.diyp-btn:focus-visible:not(:disabled) {
	transform: translateY(-1px);
	background: var(--diyp-primary-dark);
	border-color: var(--diyp-primary-dark);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--diyp-primary) 26%, transparent);
	outline: none;
}

.diyp-btn:disabled {
	opacity: .46;
	cursor: default;
	box-shadow: none;
}

.diyp-btn-ghost {
	border-color: transparent;
	background: transparent;
	color: var(--diyp-muted);
	box-shadow: none;
	padding-left: 0;
}

.diyp-btn-ghost:hover:not(:disabled),
.diyp-btn-ghost:focus-visible:not(:disabled) {
	transform: none;
	border-color: transparent;
	background: transparent;
	color: var(--diyp-heading);
	box-shadow: none;
}

/* ---------- Notices, empty states and loading ---------- */

.diyp-notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid;
	border-radius: 12px;
	font-size: 12.5px;
	line-height: 1.5;
}

.diyp-notice-error {
	border-color: #f6c7c3;
	background: #fff3f2;
	color: var(--diyp-danger);
}

.diyp-notice-info {
	border-color: #c8daf7;
	background: #f3f7ff;
	color: #184c8c;
}

.diyp-notice-warn {
	border-color: #f3d79e;
	background: #fff9eb;
	color: var(--diyp-warning);
}

.diyp-empty {
	display: grid;
	place-items: center;
	min-height: 160px;
	padding: 30px 18px;
	border: 1px dashed var(--diyp-line-strong);
	border-radius: var(--diyp-radius);
	background: var(--diyp-soft-2);
	text-align: center;
	color: var(--diyp-muted);
	font-size: 13px;
}

.diyp-spinner {
	display: inline-block;
	width: 36px;
	height: 36px;
	border: 3px solid var(--diyp-line);
	border-top-color: var(--diyp-primary);
	border-radius: 50%;
	animation: diyp-spin .8s linear infinite;
}

@keyframes diyp-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Status / result ---------- */

.diyp-result {
	max-width: 720px;
	margin: 0 auto;
	padding: 54px 26px;
	text-align: center;
}

.diyp-result-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 18px;
	border-radius: 22px;
	font-size: 32px;
	line-height: 1;
}

.diyp-result-icon.is-ok {
	background: #eaf8f1;
	color: var(--diyp-success);
}

.diyp-result-icon.is-wait {
	background: #edf4ff;
	color: #175cd3;
}

.diyp-result-icon.is-bad {
	background: #fff0ef;
	color: var(--diyp-danger);
}

.diyp-result p {
	max-width: 520px;
	margin: 0 auto 8px;
	color: var(--diyp-muted);
	font-size: 14px;
}

.diyp-result .diyp-summary {
	max-width: 480px;
	margin: 25px auto;
	padding: 18px;
	border: 1px solid var(--diyp-line);
	border-radius: var(--diyp-radius);
	background: #fff;
	text-align: left;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.diyp-booking-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.diyp-head-trust {
		justify-content: flex-start;
		max-width: none;
	}

	.diyp-services {
		grid-template-columns: 1fr;
	}

	.diyp-summary-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 780px) {
	.diyp-booking-head {
		padding: 24px;
		border-radius: 20px;
	}

	.diyp-shell {
		border-radius: 20px;
	}

	.diyp-steps {
		padding: 0 16px;
	}

	.diyp-step {
		min-height: 62px;
		font-size: 0;
		gap: 0;
	}

	.diyp-step-num {
		width: 30px;
		height: 30px;
	}

	.diyp-steps::before {
		left: calc(12.5% + 16px);
		right: calc(12.5% + 16px);
		top: 29px;
	}

	.diyp-panel {
		padding: 28px 22px 24px;
	}

	.diyp-datetime {
		grid-template-columns: 1fr;
	}

	.diyp-slots {
		max-height: none;
	}

	.diyp-fields-grid {
		grid-template-columns: 1fr;
	}

	.diyp-field {
		grid-column: 1;
	}
}

@media (max-width: 560px) {
	.diyp-booking {
		font-size: 14px;
	}

	.diyp-booking-head {
		margin-bottom: 12px;
		padding: 21px 18px;
	}

	.diyp-brand {
		align-items: flex-start;
		gap: 13px;
	}

	.diyp-brand-mark {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.diyp-brand-copy > strong {
		font-size: 23px;
	}

	.diyp-head-sub {
		font-size: 12px;
	}

	.diyp-head-trust {
		gap: 6px;
	}

	.diyp-head-trust > span {
		padding: 6px 8px;
		font-size: 10px;
	}

	.diyp-panel {
		padding: 24px 16px 20px;
	}

	.diyp-panel > div > h2 {
		font-size: 22px;
	}

	.diyp-panel .diyp-sub {
		margin-bottom: 21px;
		font-size: 12.5px;
	}

	.diyp-service {
		grid-template-columns: 50px minmax(0, 1fr) auto;
		gap: 12px;
		min-height: 120px;
		padding: 15px 13px;
	}

	.diyp-service-visual {
		width: 50px;
		height: 50px;
		border-radius: 14px;
	}

	.diyp-service-kicker {
		font-size: 9.5px;
	}

	.diyp-service-name {
		font-size: 14.5px;
	}

	.diyp-service-desc {
		font-size: 11px;
		margin-bottom: 9px;
	}

	.diyp-datetime > div:first-child,
	.diyp-slots,
	.diyp-summary-card,
	.diyp-payment-card {
		padding: 14px;
		border-radius: 15px;
	}

	.diyp-cal-grid {
		gap: 2px;
	}

	.diyp-day {
		border-radius: 8px;
		font-size: 12px;
	}

	.diyp-slot-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.diyp-summary-row {
		font-size: 11.5px;
	}

	.diyp-actions {
		margin-top: 22px;
		padding-top: 18px;
	}

	.diyp-btn {
		min-height: 44px;
		padding: 10px 16px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.diyp-booking *,
	.diyp-booking *::before,
	.diyp-booking *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

.diyp-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
