/* Pearl Detailing Booking: front-end styles */
body.pb-page,
body.pb-page #page,
body.pb-page .site,
body.pb-page .site-content,
body.pb-page .entry-content,
body.pb-page main {
	background: #0d0d0d !important;
}

.pb {
	--pb-bg: #0d0d0d;
	--pb-accent: #0d0047;
	--pb-line: rgba(255, 255, 255, 0.22);
	--pb-line-soft: rgba(255, 255, 255, 0.12);
	--pb-text: #fff;
	--pb-muted: rgba(255, 255, 255, 0.66);
	--pb-radius: 14px;
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 20px 64px;
	background: var(--pb-bg);
	color: var(--pb-text);
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-size: 18px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pb button, .pb input { font-family: inherit; }

/* Header + progress */
.pb-top { margin-bottom: 36px; }
.pb-brand { font-size: 22px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 18px; }
.pb-progress { height: 4px; background: var(--pb-line-soft); border-radius: 4px; overflow: hidden; }
.pb-progress span { display: block; height: 100%; background: #fff; border-radius: 4px; transition: width 0.35s ease; }
.pb-count { margin-top: 10px; font-size: 14px; color: var(--pb-muted); font-style: italic; }

/* Slide */
.pb-slide { min-height: 240px; animation: pb-in 0.28s ease both; }
@keyframes pb-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.pb-title { margin: 0 0 24px; font-size: clamp(26px, 5vw, 34px); line-height: 1.2; font-weight: 500; color: #fff; }

/* Choice cards */
.pb-choices { display: grid; gap: 12px; }
.pb-choices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-choice {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	width: 100%; padding: 16px 18px; text-align: left; cursor: pointer;
	background: transparent; color: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-radius);
	font-size: 18px; transition: background 0.15s, border-color 0.15s;
}
.pb-choices-grid .pb-choice { flex-direction: column; align-items: flex-start; gap: 4px; }
.pb-choice:hover { background: rgba(13, 0, 71, 0.55); border-color: #fff; }
.pb-choice.is-selected { background: var(--pb-accent); border-color: #fff; }
.pb-choice-sub { font-size: 15px; color: var(--pb-muted); font-style: italic; }
.pb-choices-grid .pb-choice-sub { font-size: 20px; font-style: normal; color: #fff; }
.pb-choices-grid .pb-choice-label { color: var(--pb-muted); font-size: 16px; }

/* Fields */
.pb-fields { display: grid; gap: 18px; }
.pb-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-reveal { margin-top: 22px; animation: pb-in 0.25s ease both; }
.pb-field label { display: block; margin-bottom: 8px; font-size: 15px; color: var(--pb-muted); }
.pb-field input {
	width: 100%; padding: 14px 16px; font-size: 18px; color: #fff;
	background: rgba(255, 255, 255, 0.04); border: 1px solid var(--pb-line); border-radius: 12px;
	outline: none; transition: border-color 0.15s, background 0.15s;
}
.pb-field input:focus { border-color: #fff; background: var(--pb-accent); }

/* Calendar */
.pb-datetime { display: grid; gap: 28px; }
.pb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pb-cal-month { font-size: 21px; font-weight: 500; }
.pb-cal-nav {
	width: 42px; height: 42px; font-size: 24px; line-height: 1; cursor: pointer; color: #fff;
	background: transparent; border: 1px solid var(--pb-line); border-radius: 50%;
}
.pb-cal-nav:hover:not(:disabled) { background: var(--pb-accent); border-color: #fff; }
.pb-cal-nav:disabled { opacity: 0.25; cursor: default; }
.pb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pb-cal-dow { text-align: center; font-size: 13px; color: var(--pb-muted); padding-bottom: 4px; }
.pb-day {
	aspect-ratio: 1; min-height: 40px; font-size: 17px; cursor: pointer; color: #fff;
	background: transparent; border: 1px solid transparent; border-radius: 12px;
}
.pb-day.is-open { border-color: var(--pb-line); }
.pb-day.is-open:hover { background: rgba(13, 0, 71, 0.6); border-color: #fff; }
.pb-day:disabled { color: rgba(255, 255, 255, 0.22); cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.pb-day.is-selected { background: var(--pb-accent); border-color: #fff; font-weight: 700; }
.pb-cal.is-loading .pb-cal-grid { opacity: 0.45; }
.pb-times-title { margin: 0 0 14px; font-size: 19px; font-weight: 500; }
.pb-time-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-time {
	padding: 12px 20px; font-size: 17px; cursor: pointer; color: #fff;
	background: transparent; border: 1px solid var(--pb-line); border-radius: 999px;
}
.pb-time:hover { background: rgba(13, 0, 71, 0.6); border-color: #fff; }
.pb-time.is-selected { background: var(--pb-accent); border-color: #fff; }

/* Summary */
.pb-summary { margin: 0; border-top: 1px solid var(--pb-line-soft); }
.pb-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--pb-line-soft); }
.pb-row dt { color: var(--pb-muted); font-size: 16px; }
.pb-row dd { margin: 0; word-break: break-word; }
.pb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; font-size: 20px; }
.pb-total strong { font-size: 30px; font-weight: 600; }

/* Nav + buttons */
.pb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; }
.pb-btn {
	min-width: 150px; padding: 15px 28px; font-size: 18px; font-weight: 500; cursor: pointer; color: #fff;
	background: var(--pb-accent); border: 1px solid #fff; border-radius: 999px; transition: transform 0.12s, background 0.15s;
}
.pb-btn:active:not(:disabled) { transform: scale(0.98); }
.pb-btn:disabled { opacity: 0.55; cursor: default; }
.pb-btn-ghost { background: transparent; border-color: var(--pb-line); min-width: 0; }
.pb-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }

/* Messages */
.pb-error { margin: 18px 0 0; padding: 12px 16px; border: 1px solid #ff8a8a; border-radius: 12px; color: #ffd5d5; background: rgba(255, 90, 90, 0.08); font-size: 16px; }
.pb-muted { color: var(--pb-muted); font-size: 16px; margin: 10px 0 0; }
.pb-help { margin: 32px 0 0; font-size: 15px; color: var(--pb-muted); font-style: italic; text-align: center; }
.pb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pb-done { text-align: center; padding: 40px 0; }
.pb-done .pb-brand { margin-bottom: 36px; }
.pb-done-msg { font-size: 20px; max-width: 460px; margin: 0 auto 24px; }
.pb-noscript { color: #fff; }

/* Focus + motion */
.pb button:focus-visible, .pb input:focus-visible, .pb a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.pb-slide, .pb-reveal { animation: none; }
	.pb-progress span, .pb-btn, .pb-choice { transition: none; }
}

/* Mobile */
@media (max-width: 520px) {
	.pb { padding: 32px 16px 48px; font-size: 17px; }
	.pb-fields-2 { grid-template-columns: 1fr; }
	.pb-row { grid-template-columns: 1fr; gap: 2px; }
	.pb-btn { min-width: 0; flex: 1; }
	.pb-btn-ghost { flex: 0 0 auto; }
	.pb-cal-grid { gap: 4px; }
}

/* Always white text, never blue: inputs, autofill, links, selection, tap flash */
.pb { color-scheme: dark; -webkit-tap-highlight-color: transparent; }
.pb input, .pb input:hover, .pb input:focus, .pb input:active {
	color: #fff !important; -webkit-text-fill-color: #fff !important; caret-color: #fff;
}
.pb input::placeholder { color: rgba(255, 255, 255, 0.5); -webkit-text-fill-color: rgba(255, 255, 255, 0.5); }
.pb input:-webkit-autofill,
.pb input:-webkit-autofill:hover,
.pb input:-webkit-autofill:focus,
.pb input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #17102f inset !important;
	box-shadow: 0 0 0 1000px #17102f inset !important;
	caret-color: #fff; transition: background-color 9999s ease-in-out 0s;
}
.pb a, .pb a:visited, .pb a:hover, .pb a:active, .pb a:focus { color: #fff !important; }
.pb button, .pb button:hover, .pb button:focus, .pb button:active { color: #fff !important; }
.pb h2, .pb h3, .pb dt, .pb dd, .pb p { color: inherit; }
.pb ::selection { background: #0d0047; color: #fff; }

/* Full-page layout (used by the plugin's page template) */
body.pb-page { background: #0d0d0d !important; }
.pb-main { background: #0d0d0d; width: 100%; min-height: 75vh; padding: 0; margin: 0; }
.pb-main .pb { min-height: 75vh; }
body.pb-page .entry-title, body.pb-page .main_title, body.pb-page .page-title { display: none; }

/* Badges on the first slide */
.pb-choice.has-badge { flex-wrap: wrap; position: relative; }
.pb .pb-badge {
	order: 2; margin-left: auto; padding: 3px 12px; font-size: 13px; font-style: italic; font-weight: 500; line-height: 1.5;
	background: #fff; color: #0d0047; border-radius: 999px; white-space: nowrap;
}

/* Inputs: keep the dark background in every state so white text never vanishes
   (some themes force a white input background when not focused). */
.pb .pb-field input[type],
.pb .pb-field input[type]:hover,
.pb .pb-field input[type]:active,
.pb .pb-field input[type]:valid,
.pb .pb-field input[type]:invalid,
.pb .pb-field input[type]:not(:focus) {
	background: rgba(255, 255, 255, 0.06) !important;
	background-color: rgba(255, 255, 255, 0.06) !important;
	background-image: none !important;
	color: #fff !important; -webkit-text-fill-color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	box-shadow: none !important; -webkit-appearance: none; appearance: none;
}
.pb .pb-field input[type]:focus {
	background: #0d0047 !important; background-color: #0d0047 !important;
	border-color: #fff !important; box-shadow: none !important; outline: none;
}
.pb .pb-field input[type]:-webkit-autofill,
.pb .pb-field input[type]:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #17102f inset !important;
	box-shadow: 0 0 0 1000px #17102f inset !important;
}

/* Continue/Back buttons never change colour on hover or focus */
.pb .pb-btn, .pb .pb-btn:hover, .pb .pb-btn:focus, .pb .pb-btn:active {
	background: #0d0047 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
.pb .pb-btn-ghost, .pb .pb-btn-ghost:hover, .pb .pb-btn-ghost:focus, .pb .pb-btn-ghost:active {
	background: transparent !important; border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Option cards: only the chosen one is navy. Hover is a neutral tint and only on
   devices with a real pointer, so nothing gets "stuck" blue on phones. */
.pb .pb-choice, .pb .pb-choice:focus, .pb .pb-choice:active {
	background: transparent !important; border-color: rgba(255, 255, 255, 0.22) !important; box-shadow: none !important;
}
.pb .pb-choice.is-selected, .pb .pb-choice.is-selected:hover, .pb .pb-choice.is-selected:focus {
	background: #0d0047 !important; border-color: #fff !important;
}
.pb .pb-day.is-open, .pb .pb-time, .pb .pb-cal-nav { background: transparent !important; }
.pb .pb-day.is-selected, .pb .pb-time.is-selected { background: #0d0047 !important; border-color: #fff !important; }
@media (hover: hover) {
	.pb .pb-choice:hover:not(.is-selected),
	.pb .pb-day.is-open:hover:not(.is-selected),
	.pb .pb-time:hover:not(.is-selected),
	.pb .pb-cal-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08) !important; border-color: #fff !important; }
}

/* Info icon on each service (first slide) */
.pb .pb-choice-wrap { position: relative; }
.pb .pb-choice-wrap.has-info .pb-choice { padding-right: 72px; }
.pb .pb-info {
	position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
	width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%;
	background: transparent !important; color: #fff !important; text-decoration: none !important;
	transition: border-color 0.15s, background 0.15s;
}
.pb .pb-info::before { content: ''; position: absolute; inset: -7px; }
.pb .pb-info svg { display: block; width: 20px; height: 20px; color: #fff; }
.pb .pb-info:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pb .pb-choice-wrap .pb-choice.is-selected + .pb-info { border-color: #fff; }
@media (hover: hover) {
	.pb .pb-info:hover { background: rgba(255, 255, 255, 0.14) !important; border-color: #fff; }
}
