/*
 * Demo booking page (templates/demo.php), in the light look of the contact page:
 * cream background, Roboto light titles and a white card with the three steps.
 */
.p4-demo {
	min-height: 100vh;
	padding: 7.5rem 1.25rem 4rem;
	background-color: var(--general--color-cream);
	color: var(--general--color-black);
	font-weight: var(--font-weight-light);
}
.p4-demo-inner {
	max-width: 68rem;
	margin: 0 auto;
}
.p4-demo-title {
	font-size: 2.75rem;
	font-weight: var(--font-weight-light);
	line-height: 1.1;
}
.p4-demo-subtitle {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1rem;
}
.p4-demo-line {
	flex: none;
	width: 3rem;
	height: 0.125rem;
	background-color: #787878;
}
.p4-demo .p4-demo-subtitle h2 {
	margin-bottom: 0;
	font-size: 1.15rem;
	font-weight: var(--font-weight-medium);
	color: #787878;
}
.p4-demo-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	padding: 0.45rem 1rem;
	border-radius: 2rem;
	background-color: var(--general--color-white);
	font-size: 0.95rem;
	font-weight: var(--font-weight-regular);
}
.p4-demo svg {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.p4-demo-preview {
	margin-top: 1.5rem;
	padding: 0.9rem 1.1rem;
	border-radius: 1rem;
	background-color: #fff4cc;
	font-size: 0.9rem;
}
.p4-demo-preview a {
	color: inherit;
	text-decoration: underline;
}
.p4-demo-card,
.p4-demo-times {
	scroll-margin-top: 6rem; /* Clear of the fixed header when the page scrolls to them. */
}
.p4-demo-card {
	margin-top: 2rem;
	padding: 1.5rem 1.25rem;
	border-radius: 1.5rem;
	background-color: var(--general--color-white);
	box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.06);
}
.p4-demo h2 {
	margin-bottom: 1rem;
	font-size: 1.05rem;
	font-weight: var(--font-weight-medium);
}
.p4-demo button:focus-visible,
.p4-demo a:focus-visible {
	outline: 2px solid var(--general--color-blue);
	outline-offset: 2px;
}

/* Loading and nothing free */
.p4-demo-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	min-height: 16rem;
	color: #787878;
	text-align: center;
}
.p4-demo-status [role="status"] {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
/* WhatsApp and phone, while the calendar loads and when it can't be used. */
.p4-demo-alt {
	max-width: 30rem;
	font-size: 0.95rem;
	color: #555;
}
.p4-demo-alt a {
	color: var(--general--color-blue);
	font-weight: var(--font-weight-medium);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}
/* What the demo shows, before the calendar. */
.p4-demo-see {
	margin-top: 2rem;
}
.p4-demo .p4-demo-see h2 {
	margin-bottom: 0.75rem;
	font-size: 1.15rem;
	font-weight: var(--font-weight-medium);
}
.p4-demo-see ul {
	display: grid;
	gap: 0.65rem;
	list-style: none;
}
.p4-demo-see li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 1rem;
	line-height: 1.45;
	color: #444;
}
.p4-demo-see svg {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.1rem;
	fill: none;
	stroke: var(--general--color-blue);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (min-width: 900px) {
	.p4-demo-see ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}
.p4-demo-spinner {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid #d9d9d9;
	border-top-color: var(--general--color-black);
	border-radius: 50%;
	animation: p4-demo-spin 0.8s linear infinite;
}
@keyframes p4-demo-spin {
	to {
		transform: rotate(360deg);
	}
}
.p4-demo-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 3rem 1rem;
	text-align: center;
}

/* Step 1: month calendar and times */
.p4-demo-pick {
	display: grid;
	gap: 2.25rem;
}
.p4-demo-month {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}
.p4-demo-month-name {
	font-weight: var(--font-weight-medium);
}
.p4-demo-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.p4-demo-nav:hover:not(:disabled) {
	background-color: var(--general--color-cream);
}
.p4-demo-nav:disabled {
	opacity: 0.25;
	cursor: default;
}
.p4-demo-weekdays,
.p4-demo-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.3rem;
	text-align: center;
}
.p4-demo-weekdays {
	margin-bottom: 0.4rem;
	font-size: 0.72rem;
	font-weight: var(--font-weight-medium);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8a8a8a;
}
.p4-demo-day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	width: 100%;
	max-width: 3rem;
	aspect-ratio: 1;
	border-radius: 50%;
	font-size: 0.95rem;
	color: #bdbdbd;
}
button.p4-demo-day {
	background-color: #eaeff8;
	color: var(--general--color-blue);
	font-weight: var(--font-weight-medium);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
button.p4-demo-day:hover {
	background-color: #d9e2f3;
}
button.p4-demo-day[aria-pressed="true"] {
	background-color: var(--general--color-black);
	color: var(--general--color-white);
}
.p4-demo-day.is-today::after {
	content: "";
	position: absolute;
	bottom: 16%;
	width: 0.25rem;
	height: 0.25rem;
	border-radius: 50%;
	background-color: currentColor;
}
.p4-demo-day-name {
	margin: -0.5rem 0 1rem;
	font-size: 0.95rem;
	color: #787878;
}
.p4-demo-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
	gap: 0.6rem;
}
.p4-demo-slots button {
	height: 2.85rem;
	border: 1px solid #d6d6d6;
	border-radius: 2rem;
	color: inherit;
	font-size: 1rem;
	font-weight: var(--font-weight-regular);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.p4-demo-slots button:hover {
	border-color: var(--general--color-black);
	background-color: var(--general--color-black);
	color: var(--general--color-white);
}
.p4-demo-zone {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1.25rem;
	font-size: 0.8rem;
	color: #787878;
}
.p4-demo-zone svg {
	width: 0.95rem;
	height: 0.95rem;
}

/* Step 2: summary and details */
.p4-demo-confirm {
	display: grid;
	gap: 2rem;
}
.p4-demo-summary {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.4rem;
	border-radius: 1.1rem;
	background-color: var(--general--color-cream);
}
.p4-demo-summary p {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}
.p4-demo-summary .p4-demo-summary-title {
	margin-bottom: 0.25rem;
	font-size: 1.25rem;
	font-weight: var(--font-weight-medium);
}
.p4-demo-summary-zone {
	font-size: 0.85rem;
	color: #787878;
}
.p4-demo-change {
	align-self: flex-start;
	margin-top: 0.25rem;
	color: var(--general--color-blue);
	font-weight: var(--font-weight-medium);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}
.p4-demo-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.p4-demo-form h2 {
	margin-bottom: 0;
}
.p4-demo-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: var(--font-weight-medium);
	color: #555;
}
.p4-demo-field input,
.p4-demo-field select {
	height: 3.1rem;
	padding: 0 1rem;
	border: 1px solid #d6d6d6;
	border-radius: 0.9rem;
	background-color: var(--general--color-white);
	font: inherit;
	font-size: 1rem;
	font-weight: var(--font-weight-regular);
	color: var(--general--color-black);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Brand list: same box as the text fields, with its own arrow. */
.p4-demo-field select {
	padding-right: 2.6rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.p4-demo-field select:invalid,
.p4-demo-field select:has(option[value=""]:checked) {
	color: #757575;
}
.p4-demo-field select option {
	color: var(--general--color-black);
}
.p4-demo-field input:focus,
.p4-demo-field select:focus {
	outline: none;
	border-color: var(--general--color-black);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.p4-demo-field input[aria-invalid="true"],
.p4-demo-field select[aria-invalid="true"] {
	border-color: #d1453b;
}
.p4-demo-field small {
	font-size: inherit;
	font-weight: var(--font-weight-regular);
	color: #666;
}
.p4-demo-field-row {
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 480px) {
	.p4-demo-field-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}
.p4-demo-privacy {
	font-size: 0.8rem;
	color: #787878;
}
.p4-demo-privacy a {
	color: inherit;
	text-decoration: underline;
}

/* Brand button: black pill with the blue gradient edge, like "Contact us today". */
.p4-demo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0 2rem;
	border: 2px solid transparent;
	border-radius: 3rem;
	background: linear-gradient(var(--general--color-black), var(--general--color-black)) padding-box, var(--blue-gradient) border-box;
	color: var(--general--color-white);
	font-size: 1.05rem;
	font-weight: var(--font-weight-regular);
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow 0.3s ease, opacity 0.2s ease;
}
.p4-demo-button:hover {
	box-shadow: 0 0.5rem 1.5rem rgba(26, 71, 158, 0.35);
}
.p4-demo-button:disabled {
	opacity: 0.7;
	cursor: progress;
}
.p4-demo-submit {
	width: 100%;
}

/* Step 3: booked */
.p4-demo-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
	padding: 3rem 1rem;
	text-align: center;
	outline: none;
}
.p4-demo-done-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--blue-gradient);
	color: var(--general--color-white);
}
.p4-demo-done-icon svg {
	width: 2rem;
	height: 2rem;
	stroke-width: 2.2;
}
.p4-demo .p4-demo-done h2 {
	margin: 0.5rem 0 0;
	font-size: 1.75rem;
	font-weight: var(--font-weight-light);
}
.p4-demo-done-when {
	font-weight: var(--font-weight-medium);
}
.p4-demo-done-text {
	max-width: 30rem;
	color: #555;
}

@media (min-width: 768px) {
	.p4-demo {
		padding: 9rem 2.5rem 5rem;
	}
	.p4-demo-title {
		font-size: 4rem;
	}
	.p4-demo .p4-demo-subtitle h2 {
		font-size: 1.5rem;
	}
	.p4-demo-card {
		padding: 2.5rem;
	}
	.p4-demo-pick {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 3rem;
	}
	.p4-demo-times {
		padding-left: 3rem;
		border-left: 1px solid #ececec;
	}
	.p4-demo-confirm {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		align-items: start;
		gap: 3rem;
	}
}
@media (min-width: 1024px) {
	.p4-demo-title {
		font-size: 5rem;
	}
}
