/**
 * WSMAI Booking - formulierstijl.
 * Huisstijl: donkerblauw #0D1B2A, goudaccent #F5A623, Inter.
 */

.wsmai-booking {
	--wsmai-bg: #0D1B2A;
	--wsmai-bg-soft: #13243a;
	--wsmai-accent: #F5A623;
	--wsmai-text: #ffffff;
	--wsmai-muted: #9fb0c3;
	--wsmai-border: #2a3c54;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	max-width: 640px;
	margin: 0 auto;
	color: var(--wsmai-text);
	background: var(--wsmai-bg);
	border-radius: 14px;
	padding: 32px;
	box-sizing: border-box;
}

.wsmai-booking *,
.wsmai-booking *::before,
.wsmai-booking *::after {
	box-sizing: border-box;
}

.wsmai-step {
	margin-bottom: 28px;
}

.wsmai-step:last-child {
	margin-bottom: 0;
}

.wsmai-step-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--wsmai-accent);
	margin: 0 0 14px;
	letter-spacing: 0.3px;
}

.wsmai-empty,
.wsmai-hint,
.wsmai-slots-loading,
.wsmai-slots-empty {
	color: var(--wsmai-muted);
	font-size: 15px;
	margin: 0;
}

/* Twee kolommen: kalender en tijden */
.wsmai-cols {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}

.wsmai-cal-col {
	flex: 1;
	min-width: 270px;
}

.wsmai-slot-col {
	flex: 1;
	min-width: 200px;
}

/* Kalenderkop */
.wsmai-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.wsmai-cal-month {
	font-size: 16px;
	font-weight: 700;
}

.wsmai-nav {
	background: var(--wsmai-bg-soft);
	border: 1px solid var(--wsmai-border);
	color: var(--wsmai-text);
	width: 34px;
	height: 34px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.wsmai-nav:hover {
	border-color: var(--wsmai-accent);
}

.wsmai-nav[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* Kalenderraster */
.wsmai-dow,
.wsmai-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.wsmai-dow span {
	text-align: center;
	font-size: 12px;
	color: var(--wsmai-muted);
	padding: 4px 0;
}

.wsmai-day {
	aspect-ratio: 1;
	border: none;
	background: transparent;
	color: var(--wsmai-text);
	font-family: inherit;
	font-size: 14px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
}

.wsmai-day .wsmai-cell-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
}

.wsmai-day.is-open:hover,
.wsmai-day.is-almost:hover {
	background: var(--wsmai-bg-soft);
}

.wsmai-day.is-active {
	background: var(--wsmai-accent);
	color: var(--wsmai-bg);
	font-weight: 700;
}

.wsmai-day.is-active .wsmai-cell-dot {
	display: none;
}

.wsmai-day.is-off,
.wsmai-day.is-full {
	color: #5a6e87;
	cursor: default;
}

.wsmai-day.is-empty {
	cursor: default;
}

/* Legenda */
.wsmai-legend {
	display: flex;
	gap: 16px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--wsmai-muted);
	flex-wrap: wrap;
}

.wsmai-legend span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wsmai-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
}

.wsmai-dot-open,
.wsmai-cell-dot.is-open { background: #4caf7d; }
.wsmai-dot-almost,
.wsmai-cell-dot.is-almost { background: #f0a93f; }
.wsmai-dot-full,
.wsmai-cell-dot.is-full { background: #d9534f; }

/* Tijdsloten */
.wsmai-slots {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.wsmai-slots .wsmai-hint {
	grid-column: 1 / -1;
}

.wsmai-slot {
	appearance: none;
	border: 1px solid var(--wsmai-border);
	background: var(--wsmai-bg-soft);
	color: var(--wsmai-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	padding: 11px;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.wsmai-slot:hover {
	border-color: var(--wsmai-accent);
}

.wsmai-slot.is-active {
	background: var(--wsmai-accent);
	border-color: var(--wsmai-accent);
	color: var(--wsmai-bg);
	font-weight: 700;
}

/* Honeypot: onzichtbaar voor mensen, zichtbaar voor bots */
.wsmai-hp {
	position: absolute;
	left: -5000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Formulier */
.wsmai-form {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--wsmai-border);
}

.wsmai-chosen {
	background: var(--wsmai-bg-soft);
	border-left: 3px solid var(--wsmai-accent);
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 15px;
	margin: 0 0 22px;
	color: var(--wsmai-text);
}

.wsmai-form label {
	display: block;
	font-size: 14px;
	color: var(--wsmai-muted);
	margin-bottom: 16px;
}

.wsmai-row {
	display: flex;
	gap: 14px;
}

.wsmai-row label {
	flex: 1;
}

.wsmai-req {
	color: var(--wsmai-accent);
}

.wsmai-form input,
.wsmai-form textarea {
	width: 100%;
	margin-top: 6px;
	background: var(--wsmai-bg-soft);
	border: 1px solid var(--wsmai-border);
	border-radius: 8px;
	color: var(--wsmai-text);
	font-family: inherit;
	font-size: 15px;
	padding: 11px 13px;
}

.wsmai-form input:focus,
.wsmai-form textarea:focus {
	outline: none;
	border-color: var(--wsmai-accent);
}

.wsmai-form textarea {
	resize: vertical;
}

.wsmai-submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	appearance: none;
	border: none;
	background: var(--wsmai-accent);
	color: var(--wsmai-bg);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	padding: 14px 30px;
	border-radius: 9px;
	cursor: pointer;
	margin-top: 4px;
	transition: opacity 0.15s ease;
}

.wsmai-submit:hover {
	opacity: 0.92;
}

.wsmai-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.wsmai-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(13, 27, 42, 0.35);
	border-top-color: var(--wsmai-bg);
	border-radius: 50%;
	animation: wsmai-spin 0.7s linear infinite;
}

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

.wsmai-message {
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.55;
	padding: 13px 16px;
	border-radius: 8px;
}

.wsmai-message.is-success {
	background: rgba(21, 87, 36, 0.25);
	border: 1px solid #2e7d4f;
	color: #c8f0d6;
}

.wsmai-message.is-error {
	background: rgba(132, 32, 41, 0.25);
	border: 1px solid #a8434c;
	color: #f4cdd1;
}

@media (max-width: 520px) {
	.wsmai-booking {
		padding: 22px;
	}
	.wsmai-row {
		flex-direction: column;
		gap: 0;
	}
}
