/*
 * IMPORTANT: aceste stiluri presupun că #motrix-booking-app stă direct pe fundalul
 * mov închis al site-ului MOTRIX (#251a30). De aceea textul "liber" e alb, nu mov.
 * Dacă la un moment dat pui widget-ul într-un container cu fundal alb, schimbă
 * culorile din secțiunea asta (marcate cu comentariul "text pe fundal mov").
 */

#motrix-booking-app.motrix-booking-app {
	max-width: 640px;
	margin: 0 auto;
	font-family: 'Poppins', sans-serif;
	color: #f5f2fa; /* text pe fundal mov */
	box-sizing: border-box;
}
#motrix-booking-app *,
#motrix-booking-app *::before,
#motrix-booking-app *::after {
	box-sizing: border-box;
}

#motrix-booking-app .motrix-legend {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	margin-bottom: 16px;
	flex-wrap: wrap;
	color: #f5f2fa; /* text pe fundal mov */
}

#motrix-booking-app .motrix-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 14px;
}

#motrix-booking-app .motrix-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}
#motrix-booking-app .motrix-dot.green  { background: #6fcf67; }
#motrix-booking-app .motrix-dot.yellow { background: #f2c94c; }
#motrix-booking-app .motrix-dot.red    { background: #eb5757; }

#motrix-booking-app .motrix-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

#motrix-booking-app .motrix-nav-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #acde67 !important;
	color: #251a30 !important;
	border: none !important;
	border-radius: 6px !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	font-family: inherit !important;
	cursor: pointer;
	box-shadow: none !important;
	text-indent: 0 !important;
	overflow: visible !important;
}
#motrix-booking-app .motrix-nav-btn::before,
#motrix-booking-app .motrix-nav-btn::after {
	content: none !important;
}
#motrix-booking-app .motrix-nav-btn:hover { opacity: 0.85; }

#motrix-booking-app .motrix-month-label {
	font-family: 'Space Mono', monospace;
	font-weight: 700;
	font-size: 18px;
	text-transform: capitalize;
	color: #f5f2fa; /* text pe fundal mov */
}

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

.motrix-cal-weekday {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #888;
	padding-bottom: 4px;
}

.motrix-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	font-family: 'Space Mono', monospace;
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	transition: transform 0.1s ease;
}
.motrix-cal-day:hover { transform: scale(1.06); }

.motrix-cal-day.green  { background: #6fcf67; }
.motrix-cal-day.yellow { background: #f2c94c; color: #251a30; }
.motrix-cal-day.red    { background: #eb5757; }
.motrix-cal-day.closed,
.motrix-cal-day.past,
.motrix-cal-day.empty {
	background: #eee;
	color: #bbb;
	cursor: default;
}
.motrix-cal-day.selected {
	outline: 3px solid #251a30;
}

#motrix-booking-app .motrix-slots-container,
#motrix-booking-app .motrix-booking-form-container {
	margin-top: 24px;
	padding: 16px;
	background: #f9f8fb;
	border-radius: 10px;
	color: #251a30; /* text pe fundal deschis - invers față de restul widget-ului */
}
#motrix-booking-app .motrix-slots-container h3,
#motrix-booking-app .motrix-slots-container p,
#motrix-booking-app .motrix-booking-form-container p {
	color: #251a30;
}

.motrix-duration-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.motrix-duration-btn {
	flex: 1;
	padding: 10px;
	border: 2px solid #251a30;
	background: #fff;
	color: #251a30;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}
.motrix-duration-btn.active {
	background: #251a30;
	color: #acde67;
}

.motrix-slots-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 8px;
}

.motrix-slot-btn {
	padding: 10px 6px;
	border: 2px solid #acde67;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-family: 'Space Mono', monospace;
	font-weight: 600;
	text-align: center;
}
.motrix-slot-btn:hover { background: #eefbe4; }
.motrix-slot-btn.selected {
	background: #251a30;
	border-color: #251a30;
	color: #acde67;
}
.motrix-slot-btn.unavailable {
	border-color: #ddd;
	color: #ccc;
	cursor: not-allowed;
	text-decoration: line-through;
}

.motrix-form-group {
	margin-bottom: 14px;
}
.motrix-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 14px;
}
.motrix-form-group input[type="text"],
.motrix-form-group input[type="email"],
.motrix-form-group input[type="tel"],
.motrix-form-group input[type="number"] {
	width: 100% !important;
	padding: 10px !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	box-sizing: border-box !important;
	background: #fff !important;
	color: #251a30 !important;
	font-family: inherit !important;
}

.motrix-radio-group {
	display: flex;
	gap: 16px;
}

.motrix-both-rooms-notice {
	background: #fff3cd;
	border: 1px solid #f2c94c;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 14px;
	font-size: 14px;
}

.motrix-submit-btn {
	background: #acde67;
	color: #251a30;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	font-size: 15px;
}
.motrix-submit-btn:hover { opacity: 0.9; }
.motrix-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.motrix-message {
	margin-top: 16px;
	padding: 14px;
	border-radius: 8px;
	font-weight: 600;
}
.motrix-message.success { background: #e6f8e2; color: #2f7a1f; }
.motrix-message.error   { background: #fde8e8; color: #c0392b; }

.motrix-alt-actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.motrix-alt-actions button {
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid #251a30;
	background: #fff;
	cursor: pointer;
}

#motrix-booking-app .motrix-both-rooms-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #251a30;
	color: #acde67;
	font-weight: 700;
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 20px;
	margin-bottom: 14px;
}

#motrix-booking-app .motrix-price-box {
	background: #251a30;
	color: #fff;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 14px;
	font-size: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#motrix-booking-app .motrix-price-box .motrix-price-value {
	font-family: 'Space Mono', monospace;
	font-weight: 700;
	font-size: 20px;
	color: #acde67;
}
#motrix-booking-app .motrix-price-full {
	text-decoration: line-through;
	opacity: 0.6;
	font-size: 14px;
	margin-right: 8px;
}
#motrix-booking-app .motrix-edit-banner {
	background: #f2c94c;
	color: #251a30;
	padding: 10px 14px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 14px;
}
#motrix-booking-app .motrix-people-hint {
	display: block;
	font-size: 12px;
	color: #d8cbe6;
	font-weight: 400;
	margin-top: 2px;
}
#motrix-booking-app .motrix-slots-container .motrix-people-hint,
#motrix-booking-app .motrix-booking-form-container .motrix-people-hint {
	color: #7a6f85;
}
#motrix-booking-app .motrix-people-summary {
	font-weight: 600;
	font-size: 15px;
	margin: 0 0 14px;
	color: #251a30;
}
#motrix-booking-app .motrix-calendar-add-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 18px;
	background: #251a30;
	color: #acde67;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
#motrix-booking-app .motrix-calendar-add-btn:hover { opacity: 0.85; }
#motrix-booking-app .motrix-large-group-notice {
	background: #f2c94c;
	color: #251a30;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 14px;
	line-height: 1.4;
}

/* Program săptămânal — folosit atât în panoul de admin, cât și în shortcode-ul public [motrix_weekly] */
.motrix-weekly-app {
	font-family: 'Poppins', sans-serif;
}
.motrix-weekly-title {
	font-family: 'Space Mono', monospace;
}
.motrix-weekly-nav-btn {
	display: inline-block;
	padding: 6px 12px;
	background: #251a30;
	color: #acde67;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}
.motrix-weekly-nav-btn:hover { opacity: 0.85; color: #acde67; }
.motrix-weekly-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
	align-items: start;
	margin-top: 14px;
}
@media (max-width: 900px) {
	.motrix-weekly-grid { grid-template-columns: repeat(2, 1fr); }
}
.motrix-weekly-day {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	min-height: 120px;
}
.motrix-weekly-date {
	color: #888;
	font-size: 12px;
}
.motrix-weekly-empty {
	color: #bbb;
	font-size: 12px;
}
.motrix-weekly-block {
	color: #fff;
	border-radius: 6px;
	padding: 6px 8px;
	margin-bottom: 6px;
	font-size: 12px;
	line-height: 1.4;
}
.motrix-weekly-room1 { background: #251a30; }
.motrix-weekly-room2 { background: #3f7d3f; }
