/* REM Booking System — scoped styles (all classes prefixed rebs- to avoid theme/plugin conflicts) */

.rebs-booking-wrapper {
	max-width: 100%;
	margin: 30px 0;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e7e2ee;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	box-sizing: border-box;
}

.rebs-booking-wrapper * {
	box-sizing: border-box;
}

.rebs-heading {
	margin: 0 0 18px;
	font-size: 20px;
	color: #3d2260;
	border-left: 4px solid #6b3fa0;
	padding-left: 10px;
}

.rebs-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

.rebs-alert-success {
	background: #e9f9ef;
	color: #1e7e42;
	border: 1px solid #bdeccb;
}

.rebs-alert-error {
	background: #fdecec;
	color: #a3271f;
	border: 1px solid #f6c6c2;
}

.rebs-row {
	display: flex;
	gap: 16px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.rebs-row-full {
	display: block;
}

.rebs-field {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
}

.rebs-field label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #3d2260;
}

.rebs-field input,
.rebs-field textarea {
	padding: 10px 12px;
	border: 1px solid #d8d2e3;
	border-radius: 6px;
	font-size: 14px;
	width: 100%;
	background: #fbfaff;
}

.rebs-field input:focus,
.rebs-field textarea:focus {
	outline: none;
	border-color: #6b3fa0;
	background: #ffffff;
}

.rebs-submit-btn {
	background: #6b3fa0;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rebs-submit-btn:hover {
	background: #572f85;
}

.rebs-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rebs-spinner {
	display: inline-block;
	margin-left: 10px;
	width: 16px;
	height: 16px;
	border: 2px solid #d8d2e3;
	border-top-color: #6b3fa0;
	border-radius: 50%;
	animation: rebs-spin 0.7s linear infinite;
	vertical-align: middle;
}

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

@media (max-width: 600px) {
	.rebs-row { flex-direction: column; gap: 10px; }
}

/* -------------------- Admin -------------------- */

.rebs-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.rebs-status-pending    { background: #fff4d6; color: #8a6100; }
.rebs-status-confirmed  { background: #e1f6e6; color: #1e7e42; }
.rebs-status-rejected   { background: #fde2e1; color: #a3271f; }
.rebs-status-cancelled  { background: #ececec; color: #555; }
.rebs-status-completed  { background: #e1ecfb; color: #1c4f9c; }

.rebs-filters {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin: 16px 0;
}

.rebs-detail-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.rebs-detail-grid { grid-template-columns: 1fr; }
}
