/**
 * LexSlot — Interface client
 */

.rdv-booking-root {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 8px 0 32px;
	background: transparent;
	border: none;
	box-shadow: none;
	overflow-x: hidden;
	box-sizing: border-box;
}

.rdv-page-title {
	margin: 0 0 28px;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
	color: var(--lex-primary);
	letter-spacing: -0.02em;
}

.rdv-dual-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.rdv-single-grid {
	max-width: 520px;
	margin: 0 auto;
}

@media (max-width: 820px) {
	.rdv-dual-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rdv-calendar-instance {
		padding: 18px 14px 22px;
		border-radius: 20px;
	}
}

@media (max-width: 480px) {
	.rdv-page-title {
		font-size: 1.25rem;
		margin-bottom: 20px;
	}

	.rdv-calendar-day {
		min-height: 32px;
		font-size: 0.78rem;
		border-radius: 10px;
	}

	.rdv-calendar-grid,
	.rdv-calendar-weekdays {
		gap: 3px;
	}

	.rdv-slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
	}
}

.rdv-calendar-instance {
	position: relative;
	padding: 24px 20px 28px;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 28px;
	box-shadow: none;
	overflow: hidden;
}

.rdv-lawyer-title {
	margin: 0 0 16px;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
	color: var(--lex-secondary);
}

.rdv-steps-indicator {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 22px;
}

.rdv-step-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lex-border);
	transition: background 0.2s, transform 0.2s;
}

.rdv-step-dot.active {
	background: var(--lex-secondary);
	transform: scale(1.25);
}

.rdv-step-dot.done {
	background: var(--lex-primary);
}

.rdv-step-title {
	margin: 0 0 18px;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	color: var(--lex-primary);
}

.rdv-step[hidden] {
	display: none !important;
}

.rdv-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.rdv-calendar-month-label {
	font-weight: 600;
	font-size: 1rem;
	text-transform: capitalize;
	color: var(--lex-primary);
}

.rdv-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 6px;
	text-align: center;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--lex-text-muted);
	text-transform: uppercase;
}

.rdv-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.rdv-calendar-day {
	aspect-ratio: 1;
	min-height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.4);
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.rdv-calendar-day.empty {
	background: transparent;
	border: none;
	cursor: default;
}

.rdv-calendar-day.bookable:not(.selected) {
	background: rgba(34, 197, 94, 0.22);
	border-color: rgba(34, 197, 94, 0.45);
	color: #15803d;
	font-weight: 600;
}

.rdv-calendar-day.bookable:not(.selected):hover {
	background: rgba(34, 197, 94, 0.35);
}

.rdv-calendar-day.selected {
	background: var(--lex-secondary) !important;
	border-color: var(--lex-secondary) !important;
	color: #fff !important;
	font-weight: 600;
}

.rdv-calendar-day.disabled {
	background: rgba(0, 0, 0, 0.03);
	color: var(--lex-text-light);
	cursor: not-allowed;
	opacity: 0.55;
}

.rdv-selected-date-label {
	text-align: center;
	color: var(--lex-text-muted);
	margin-bottom: 14px;
	font-size: 0.9rem;
}

.rdv-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
	max-width: 100%;
	overflow: hidden;
}

.rdv-slot-btn {
	padding: 11px 6px;
	border: 1px solid var(--lex-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.7);
	font: inherit;
	font-size: 0.88rem;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	color: var(--lex-primary);
}

.rdv-slot-btn:hover,
.rdv-slot-btn.selected {
	border-color: var(--lex-secondary);
	background: var(--lex-accent-bg);
}

.rdv-no-slots {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--lex-text-muted);
	padding: 16px;
}

.rdv-recap {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid var(--lex-border);
	border-radius: 18px;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.rdv-recap p {
	margin: 0 0 5px;
	font-size: 0.9rem;
}

.rdv-booking-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	font-size: 0.85rem;
	color: var(--lex-primary);
}

.rdv-booking-form .required {
	color: var(--lex-danger);
}

.rdv-booking-form input,
.rdv-booking-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--lex-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.75);
	font: inherit;
	box-sizing: border-box;
	margin-bottom: 12px;
}

.rdv-booking-form input:focus,
.rdv-booking-form textarea:focus {
	outline: none;
	border-color: var(--lex-secondary);
	box-shadow: 0 0 0 3px var(--lex-accent-bg);
}

.rdv-form-actions {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 6px;
	flex-wrap: wrap;
}

.rdv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border: 1px solid var(--lex-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.75);
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	color: var(--lex-primary);
}

.rdv-btn-primary {
	background: var(--lex-secondary);
	border-color: var(--lex-secondary);
	color: #fff;
}

.rdv-btn-primary:hover {
	background: var(--lex-secondary-hover);
}

.rdv-calendar-nav .rdv-btn {
	min-width: 38px;
	padding: 8px 12px;
	border-radius: 14px;
	font-size: 1.1rem;
}

.rdv-success {
	text-align: center;
	padding: 28px 12px;
}

.rdv-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--lex-success);
	color: #fff;
	font-size: 1.75rem;
	line-height: 56px;
}

.rdv-success h4 {
	margin: 0 0 10px;
	color: var(--lex-success);
	font-size: 1.2rem;
}

.rdv-success p {
	color: var(--lex-text-muted);
	line-height: 1.55;
	font-size: 0.9rem;
}

.rdv-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(4px);
	border-radius: 28px;
	z-index: 10;
}

.rdv-loading[hidden] {
	display: none !important;
}

.rdv-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--lex-border);
	border-top-color: var(--lex-secondary);
	border-radius: 50%;
	animation: rdv-spin 0.7s linear infinite;
}

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

.rdv-error-msg {
	color: var(--lex-danger);
	font-size: 0.8rem;
	margin-top: -6px;
	margin-bottom: 8px;
	display: block;
}
