/* ==========================================================================
   BytMaster34 Addons: Live Dispatch, Quick Callback Modal, Pulse Button & Error Codes
   ========================================================================== */

/* 1. Live Dispatch Section */
.repair-dispatch-section {
	margin: 36px 0;
	padding: 28px 24px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.repair-dispatch-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px;
}

.repair-dispatch-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.repair-dispatch-pulse {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #16a34a;
	box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
	animation: bmPulse 2s infinite;
}

@keyframes bmPulse {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
	70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.repair-dispatch-title {
	font-size: clamp(1.25rem, 2.3vw, 1.65rem);
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

.repair-dispatch-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0fdf4;
	border: 1px solid #86efac;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13.5px;
	font-weight: 700;
	color: #15803d;
}

.repair-dispatch-lead {
	font-size: 14.5px;
	color: #475569;
	margin-bottom: 22px;
	line-height: 1.6;
}

.repair-dispatch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.repair-dispatch-card {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.repair-dispatch-card:hover {
	border-color: #0284c7;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}

.repair-dispatch-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 8px;
}

.repair-dispatch-card-top strong {
	font-size: 15.5px;
	color: #0f172a;
	font-weight: 800;
}

.repair-dispatch-tag {
	font-size: 11.5px;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 3px 8px;
	border-radius: 6px;
	white-space: nowrap;
}

.repair-dispatch-sub {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 10px;
	line-height: 1.45;
}

.repair-dispatch-row {
	font-size: 13px;
	color: #334155;
	margin-bottom: 6px;
}

.repair-dispatch-time {
	color: #16a34a;
	font-weight: 800;
}

.repair-dispatch-actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #e2e8f0;
}

.repair-dispatch-actions .repair-button {
	flex: 1;
	padding: 8px 12px;
	font-size: 13.5px;
	text-align: center;
	justify-content: center;
}

.repair-dispatch-call-btn {
	flex: 0 0 42px !important;
	padding: 8px !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 2. Modal Overlay & Dialog */
.bm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bm-modal-overlay.visible {
	opacity: 1;
	visibility: visible;
}

.bm-modal-dialog {
	background: #ffffff;
	border-radius: 20px;
	max-width: 440px;
	width: 100%;
	padding: 32px 28px 24px;
	position: relative;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
	transform: scale(0.94);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bm-modal-overlay.visible .bm-modal-dialog {
	transform: scale(1);
}

.bm-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: #f1f5f9;
	border: none;
	font-size: 24px;
	line-height: 1;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bm-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.bm-modal-head {
	text-align: center;
	margin-bottom: 18px;
}

.bm-modal-icon {
	font-size: 38px;
	margin-bottom: 6px;
}

.bm-modal-title {
	font-size: 21px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 6px;
}

.bm-modal-desc {
	font-size: 13.5px;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

.bm-form-group {
	margin-bottom: 14px;
}

.bm-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.bm-form-group input {
	width: 100%;
	font-size: 15px;
	padding: 11px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	box-sizing: border-box;
}

.bm-form-group input:focus {
	outline: none;
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.bm-form-agree {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 16px;
	line-height: 1.4;
}

.bm-form-agree label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.bm-form-agree input[type="checkbox"] {
	margin-top: 2px;
}

.bm-submit-btn {
	width: 100%;
	padding: 13px;
	font-size: 15.5px;
	font-weight: 800;
	justify-content: center;
}
