* {
	box-sizing: border-box;
}

:root {
	--ink: #2c2340;
	--purple: #7449bd;
	--purple-dark: #53308f;
	--purple-soft: #f5f0fc;
	--orange: #f58220;
	--orange-soft: #fff6ed;
	--canvas: #f4f7fa;
	--line: #ddd6e8;
	--muted: #665e74;
	--surface-soft: #fbfafc;
	--success: #147653;
	--brand: #7449bd;
	--brand-dark: #53308f;
	--brand-soft: #f5f0fc;
}

html {
	background: var(--canvas);
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font: 16px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
	font: inherit;
}

.scheduler-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
	width: min(1040px, calc(100% - 32px));
	min-height: 580px;
	margin: 12px auto;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(44, 35, 64, .11);
}

.scheduler-calendar-pane {
	min-width: 0;
	padding: 24px 32px 32px;
	border-right: 1px solid var(--line);
}

.scheduler-detail-pane {
	min-width: 0;
	padding: 26px 32px;
	background: var(--surface-soft);
}

.scheduler-eyebrow,
.scheduler-duration {
	display: inline-flex;
	align-items: center;
	margin: 0;
	color: var(--brand-dark);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.scheduler-duration {
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--brand-soft);
	letter-spacing: .03em;
}

.scheduler-intro h1 {
	margin: 9px 0 8px;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.12;
	letter-spacing: -.025em;
}

.scheduler-intro > p:not(.scheduler-eyebrow):not(.scheduler-meta),
.scheduler-help,
.scheduler-meta {
	color: var(--muted);
}

.scheduler-intro > p:not(.scheduler-eyebrow):not(.scheduler-meta) {
	max-width: 620px;
	margin: 0 0 8px;
}

.scheduler-meta {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
}

.scheduler-location-panel {
	margin: 0 0 24px;
	padding: 18px;
	border: 1px solid var(--brand-soft);
	border-radius: 12px;
	background: var(--brand-soft);
}

.scheduler-location-panel label {
	display: block;
	color: #40374f;
	font-size: 14px;
	font-weight: 850;
}

.scheduler-location-panel select {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 8px;
	padding: 11px 12px;
	border: 1px solid var(--brand);
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
}

.scheduler-form input:focus,
.scheduler-form select:focus,
.scheduler-form textarea:focus {
	border-color: var(--brand);
}

.scheduler-toolbar {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.scheduler-toolbar h2 {
	margin: 0;
	text-align: center;
	font-size: 17px;
}

.scheduler-toolbar button {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 23px;
	cursor: pointer;
}

.scheduler-toolbar button:hover {
	border-color: var(--brand);
	background: var(--brand-soft);
}

.scheduler-days {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.scheduler-days button,
.scheduler-slots button {
	min-height: 48px;
	padding: 10px;
	border: 1px solid var(--brand);
	border-radius: 10px;
	background: #fff;
	color: var(--brand-dark);
	font-weight: 800;
	cursor: pointer;
}

.scheduler-days button:hover,
.scheduler-days button.selected,
.scheduler-slots button:hover,
.scheduler-slots button.selected {
	border-color: var(--brand-dark);
	background: var(--brand);
	color: #fff;
}

.scheduler-detail-pane h2 {
	margin: 13px 0 7px;
	font-size: 23px;
	line-height: 1.25;
}

.scheduler-help {
	margin: 0 0 22px;
}

.scheduler-slots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-height: 360px;
	overflow: auto;
	padding: 2px;
}

.scheduler-form label {
	display: block;
	margin: 0 0 13px;
	color: #40374f;
	font-size: 13px;
	font-weight: 800;
}

.scheduler-form input,
.scheduler-form select,
.scheduler-form textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	margin-top: 6px;
	padding: 11px 12px;
	border: 1px solid #bdb3ca;
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
}

.scheduler-form textarea {
	min-height: 86px;
	resize: vertical;
}

.scheduler-optional {
	margin-left: 6px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
}

.scheduler-field-help {
	margin: -4px 0 14px;
	color: var(--muted);
	font-size: 13px;
}

.scheduler-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 9px;
}

.scheduler-checkbox input {
	width: auto;
	min-height: 0;
	margin: 3px 0 0;
}

.scheduler-form button[type="submit"] {
	display: inline-flex;
	width: 100%;
	min-height: 49px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--brand);
	color: #fff;
	font-weight: 900;
	cursor: pointer;
}

.scheduler-form button[type="submit"]:hover {
	background: var(--brand-dark);
}

.scheduler-link {
	min-height: 42px;
	padding: 9px 13px;
	border: 1px solid var(--brand);
	border-radius: 9px;
	background: var(--brand-soft);
	color: var(--brand-dark);
	font-weight: 800;
	cursor: pointer;
}

.scheduler-link:hover {
	background: var(--brand);
	color: #fff;
}

.scheduler-summary {
	margin: 12px 0 20px;
	padding: 13px 14px;
	border: 1px solid var(--brand-soft);
	border-radius: 10px;
	background: var(--brand-soft);
	color: var(--brand-dark);
	font-size: 14px;
	font-weight: 750;
}

.scheduler-warning {
	margin: 24px 0 0;
	padding: 13px 14px;
	border-left: 4px solid var(--orange);
	background: var(--orange-soft);
	color: #544539;
	font-size: 14px;
}

.scheduler-status {
	margin-top: 14px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.scheduler-status.error {
	padding: 12px 13px;
	border: 1px solid #e0aaaa;
	border-radius: 9px;
	background: #fff1f1;
	color: #8c1d1d;
}

.scheduler-confirmation {
	grid-column: 1 / -1;
	display: grid;
	min-height: 620px;
	place-content: center;
	justify-items: center;
	padding: 64px clamp(24px, 8vw, 100px);
	background: linear-gradient(145deg, #fff 0%, var(--brand-soft) 100%);
	text-align: center;
}

.scheduler-confirmation[hidden] {
	display: none;
}

.scheduler-confirmation-mark {
	display: grid;
	width: 88px;
	height: 88px;
	place-items: center;
	margin-bottom: 24px;
	border-radius: 50%;
	background: #ddf5eb;
	color: var(--success);
	font-size: 46px;
	font-weight: 900;
}

.scheduler-confirmation h2 {
	max-width: 700px;
	margin: 10px 0 18px;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.08;
	letter-spacing: -.03em;
}

.scheduler-confirmation-time {
	max-width: 720px;
	margin: 0;
	color: var(--brand-dark);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 900;
}

.scheduler-confirmation-message {
	max-width: 640px;
	margin: 24px 0 8px;
	font-size: 18px;
	font-weight: 750;
}

.scheduler-confirmation-note {
	max-width: 680px;
	margin: 18px 0 0;
	padding: 16px 18px;
	border-left: 4px solid var(--orange);
	background: #fff;
	color: #544539;
	font-size: 15px;
	text-align: left;
}

.scheduler-mode-embeddedpublic,
.scheduler-mode-embeddedpublic html {
	background: #fff;
}

.scheduler-mode-embeddedpublic .scheduler-shell {
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent);
	outline-offset: 2px;
}

@media (max-width: 820px) {
	html,
	body {
		background: #fff;
	}

	.scheduler-shell {
		display: block;
		width: 100%;
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.scheduler-calendar-pane {
		padding: 20px 22px 24px;
		border-right: 0;
		border-bottom: 8px solid var(--canvas);
	}

	.scheduler-detail-pane {
		padding: 22px 22px 30px;
		background: #fff;
	}

	.scheduler-slots {
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 520px) {
	.scheduler-calendar-pane,
	.scheduler-detail-pane {
		padding-right: 16px;
		padding-left: 16px;
	}

	.scheduler-intro h1 {
		font-size: 26px;
	}

	.scheduler-days {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.scheduler-slots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 359px) {
	.scheduler-days,
	.scheduler-slots {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
