/* ==========================================================================
   Teddy Vets — Booking Wizard (public)
   ========================================================================== */

/* Brand override: brown (#6E3D22) replaces all blue accents in the wizard. */
.teddy-booking-page {
	--color-primary: #6E3D22;
	--color-primary-light: #6E3D22;
	--color-primary-bg: #f6efe9;
	--color-primary-border: #e4d3c6;
	--tv-brand: #6E3D22;
	--tv-brand-dark: #532c18;
	--tv-brand-hover-border: #b08968;
	--tv-brand-soft: #f6efe9;
}

/* Full-bleed breakout: escape the theme's constrained content column so the
   wizard renders edge-to-edge like the original app, with its own background. */
.teddy-booking-page {
	background-color: var(--color-page-bg-booking);
	min-height: 100vh;
	direction: rtl;
	font-family: var(--font-family) !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 16px;
	color: var(--color-text-body);
	box-sizing: border-box;
	/* break out of any max-width wrapper the theme applies */
	width: 100vw;
	position: relative;
	right: 50%;
	left: 50%;
	margin-right: -50vw;
	margin-left: -50vw;
}
.teddy-booking-page *, .teddy-booking-page *::before, .teddy-booking-page *::after { box-sizing: border-box; }
/* Reset theme typography/line-height leaking into the wizard */
.teddy-booking-page h1, .teddy-booking-page h2, .teddy-booking-page p,
.teddy-booking-page label, .teddy-booking-page input, .teddy-booking-page button,
.teddy-booking-page select, .teddy-booking-page div, .teddy-booking-page span {
	font-family: var(--font-family);
	box-sizing: border-box;
}
.teddy-booking-page input, .teddy-booking-page select, .teddy-booking-page button {
	max-width: 100%;
}

/* Top navbar */
.teddy-booking-page .teddy-topbar {
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 20;
	width: 100%;
	max-width: var(--content-max-width);
	height: 56px;
	border-radius: var(--radius-lg);
	margin-bottom: 24px;
}
.teddy-booking-page .teddy-topbar__inner {
	height: 100%;
	display: flex;
	align-items: center;
	padding: 0 16px;
}
.teddy-booking-page .teddy-logo { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-text-primary); }

/* Wizard container */
.teddy-booking-page .teddy-wizard {
	width: 100%;
	max-width: var(--content-max-width);
}

/* Progress dots */
.teddy-booking-page .teddy-progress {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-bottom: 24px;
}
.teddy-booking-page .teddy-progress__dot {
	width: 40px; height: 4px;
	border-radius: var(--radius-full);
	background: var(--color-border);
	transition: background 200ms ease;
}
.teddy-booking-page .teddy-progress__dot.done { background: #6E3D22; }

/* Steps */
.teddy-booking-page .teddy-step { display: none; animation: tvfade 250ms ease; }
.teddy-booking-page .teddy-step.is-active { display: block; }
@keyframes tvfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.teddy-booking-page .teddy-step__title {
	font-size: var(--text-2xl);
	font-weight: var(--font-bold);
	color: var(--color-text-primary);
	line-height: 32px;
	margin: 0 0 20px;
	text-align: right;
}

/* Labels */
.teddy-booking-page .teddy-label {
	font-size: var(--text-lg);
	font-weight: var(--font-medium);
	color: var(--color-text-secondary);
	display: block;
	margin: 16px 0 6px;
	text-align: right;
}

/* Inputs */
.teddy-booking-page .teddy-input {
	width: 100%;
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-md);
	background: var(--color-white);
	padding: 4px 12px;
	height: 40px;
	font-size: var(--text-sm);
	font-family: var(--font-family);
	color: var(--color-text-body);
	direction: rtl;
	text-align: right;
	transition: border-color 150ms;
}
.teddy-booking-page .teddy-input::placeholder { color: var(--color-text-placeholder); }
.teddy-booking-page .teddy-input:focus {
	outline: none;
	border-color: var(--color-primary-light);
	box-shadow: 0 0 0 2px rgba(110,61,34,0.2);
}

/* Clinic grid */
.teddy-booking-page .teddy-clinic-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 12px;
}
.teddy-booking-page .teddy-clinic-card {
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow-md);
	transition: all 200ms ease;
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	color: var(--color-text-primary);
	text-align: center;
}
.teddy-booking-page .teddy-clinic-card:hover {
	border-color: var(--tv-brand-hover-border);
	background: var(--tv-brand-soft);
}
.teddy-booking-page .teddy-clinic-card.selected {
	border: 2px solid var(--color-primary-light);
	background: var(--color-primary-bg);
	box-shadow: var(--shadow-lg);
}
.teddy-booking-page .teddy-clinic-card.disabled {
	border: 2px dashed #d1d5db;
	background: rgba(249,250,251,0.5);
	cursor: default;
	color: #9ca3af;
	font-size: var(--text-sm);
}

/* Pet type */
.teddy-booking-page .teddy-pet-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-top: 12px;
}
.teddy-booking-page .teddy-pet-card {
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	height: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: var(--shadow-md);
	transition: all 200ms ease;
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	color: var(--color-text-primary);
}
.teddy-booking-page .teddy-pet-card:hover { border-color: var(--tv-brand-hover-border); background: var(--tv-brand-soft); }
.teddy-booking-page .teddy-pet-card .icon { font-size: 24px; color: #9ca3af; }
.teddy-booking-page .teddy-pet-card.selected {
	border: 2px solid var(--color-primary-light);
	background: var(--color-primary-bg);
	box-shadow: var(--shadow-lg);
}
.teddy-booking-page .teddy-pet-card.selected .icon { color: var(--color-primary-light); }

/* Service cards */
.teddy-booking-page .teddy-service-card {
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 200ms ease;
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	margin-bottom: 12px;
	box-shadow: var(--shadow-md);
}
.teddy-booking-page .teddy-service-card:hover { border-color: var(--tv-brand-hover-border); background: var(--tv-brand-soft); }
.teddy-booking-page .teddy-service-card.selected {
	border: 2px solid var(--color-primary-light);
	background: var(--color-primary-bg);
}
.teddy-booking-page .teddy-service-card .icon-shield { color: var(--color-primary-light); font-size: 22px; }
.teddy-booking-page .teddy-service-card .icon-heart { color: #f472b6; font-size: 22px; }
.teddy-booking-page .teddy-vaccine-card .icon { font-size: 24px; line-height: 1; }

/* Vaccine grid */
.teddy-booking-page .teddy-vaccine-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}
.teddy-booking-page .teddy-vaccine-card {
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 16px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transition: all 200ms;
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text-primary);
	text-align: center;
}
.teddy-booking-page .teddy-vaccine-card:hover { border-color: var(--tv-brand-hover-border); }
.teddy-booking-page .teddy-vaccine-card.selected { border-color: var(--color-primary-light); background: var(--color-primary-bg); }
.teddy-booking-page .teddy-vaccine-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary-light); }

/* Time slots */
.teddy-booking-page .teddy-time-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 12px;
}
.teddy-booking-page .teddy-time-slot {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 8px 12px;
	text-align: center;
	cursor: pointer;
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text-secondary);
	transition: all 150ms;
}
.teddy-booking-page .teddy-time-slot:hover { border-color: var(--color-primary-light); background: var(--color-primary-bg); }
.teddy-booking-page .teddy-time-slot.selected { background: var(--tv-brand); color: #fff; border-color: var(--tv-brand); }

/* Buttons */
.teddy-booking-page .teddy-btn-primary {
	background-color: var(--color-primary);
	color: #fff;
	border: none;
	border-radius: var(--radius-full);
	padding: 24px 16px;
	font-size: var(--text-lg);
	font-weight: var(--font-semibold);
	width: 100%;
	max-width: 400px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 150ms;
	margin: 24px auto 0;
	font-family: var(--font-family);
}
.teddy-booking-page .teddy-btn-primary:hover { background-color: var(--tv-brand-dark); }

.teddy-booking-page .teddy-btn-outline {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	padding: 12px 24px;
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	color: var(--color-text-secondary);
	cursor: pointer;
	font-family: var(--font-family);
}
.teddy-booking-page .teddy-btn-outline:hover { border-color: var(--tv-brand-hover-border); }
.teddy-booking-page .teddy-btn-block { display: block; width: 100%; max-width: 400px; margin: 12px auto 0; text-align: center; }

.teddy-booking-page .teddy-btn-confirm {
	background-color: var(--color-success);
	color: #fff;
	border: none;
	border-radius: var(--radius-md);
	padding: 14px 20px;
	font-size: 15px;
	font-weight: var(--font-semibold);
	cursor: pointer;
	font-family: var(--font-family);
}
.teddy-booking-page .teddy-btn-confirm:hover { background-color: #15803d; }

.teddy-booking-page .teddy-wizard-nav {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}
/* Inside the nav row, buttons share the row evenly instead of full-width */
.teddy-booking-page .teddy-wizard-nav .teddy-btn-primary,
.teddy-booking-page .teddy-wizard-nav .teddy-btn-confirm {
	width: auto;
	flex: 1 1 0;
	max-width: 260px;
	margin: 0;
	padding: 14px 20px;
	font-size: var(--text-base);
	border-radius: var(--radius-full);
	display: inline-flex;
}
.teddy-booking-page .teddy-wizard-nav .teddy-btn-outline {
	flex: 0 0 auto;
	min-width: 110px;
}

/* Summary */
.teddy-booking-page .teddy-summary-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	padding: 24px;
	max-width: 380px;
	margin: 0 auto;
}
.teddy-booking-page .teddy-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: var(--text-sm);
	direction: rtl;
}
.teddy-booking-page .teddy-summary-row:last-child { border-bottom: none; }
.teddy-booking-page .teddy-summary-row__label { color: var(--color-text-muted); font-weight: var(--font-medium); }
.teddy-booking-page .teddy-summary-row__value { color: var(--color-text-primary); font-weight: var(--font-semibold); text-align: left; }

/* Error message */
.teddy-booking-page .teddy-error {
	color: var(--color-danger);
	font-size: var(--text-sm);
	text-align: center;
	margin-top: 12px;
	min-height: 18px;
}

/* Done */
.teddy-booking-page .teddy-done { text-align: center; padding: 40px 20px; }
.teddy-booking-page .teddy-done__icon {
	width: 72px; height: 72px;
	border-radius: var(--radius-full);
	background: var(--color-success-bg);
	color: var(--color-success);
	font-size: 40px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 16px;
}
.teddy-booking-page .teddy-done p { color: var(--color-text-muted); font-size: var(--text-base); }

/* Responsive */
@media (max-width: 640px) {
.teddy-booking-page .teddy-clinic-grid { grid-template-columns: repeat(2, 1fr); }
.teddy-booking-page .teddy-time-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ CHECKUP CONCERNS SUB-STEP ============ */
.teddy-booking-page .teddy-step__sub {
	color: #64748b;
	font-size: var(--text-base);
	text-align: right;
	margin: -12px 0 8px;
}
.teddy-booking-page .teddy-concern-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 8px 0 8px;
}
@media (max-width: 640px) { .teddy-booking-page .teddy-concern-grid { grid-template-columns: repeat(2, 1fr); } }
.teddy-booking-page .teddy-concern-card {
	background: #fff;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 14px 10px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: all 200ms ease;
	box-shadow: var(--shadow-sm);
	text-align: center;
	position: relative;
}
.teddy-booking-page .teddy-concern-card:hover { border-color: var(--tv-brand-hover-border); }
.teddy-booking-page .teddy-concern-card.selected {
	border-color: var(--tv-brand);
	background: var(--tv-brand-soft);
}
.teddy-booking-page .teddy-concern-card__icon { font-size: 22px; line-height: 1; }
.teddy-booking-page .teddy-concern-card__label { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--color-text-primary); }
.teddy-booking-page .teddy-concern-card__check {
	width: 18px; height: 18px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	display: inline-block;
	margin-top: 2px;
	position: relative;
	transition: all 150ms;
}
.teddy-booking-page .teddy-concern-card.selected .teddy-concern-card__check {
	background: var(--tv-brand);
	border-color: var(--tv-brand);
}
.teddy-booking-page .teddy-concern-card.selected .teddy-concern-card__check::after {
	content: '✓';
	color: #fff;
	font-size: 12px;
	position: absolute;
	top: -3px; left: 2px;
}
/* urgent (red) card */
.teddy-booking-page .teddy-concern-card.urgent {
	background: #ef4444;
	border-color: #ef4444;
}
.teddy-booking-page .teddy-concern-card.urgent .teddy-concern-card__label,
.teddy-booking-page .teddy-concern-card.urgent .teddy-concern-card__icon { color: #fff; }
.teddy-booking-page .teddy-concern-card.urgent .teddy-concern-card__check { border-color: #fff; }
.teddy-booking-page .teddy-concern-card.urgent.selected {
	background: #dc2626;
	border-color: #dc2626;
}
.teddy-booking-page .teddy-concern-card.urgent.selected .teddy-concern-card__check { background: #fff; }
.teddy-booking-page .teddy-concern-card.urgent.selected .teddy-concern-card__check::after { color: #dc2626; }

/* free-text area */
.teddy-booking-page .teddy-textarea {
	height: 96px;
	padding-top: 10px;
	resize: vertical;
	line-height: 1.5;
}
