/* ============================================================
   Client Message Center - the bottom-right ContactBox widget
   (src/views/components/ContactBox.php). The Message Center modal
   itself uses the shared .v2-modal styles in /css/modal.css.
   ============================================================ */

/* Contact Box - Fixed bottom-right */
.g3ContactBox {
	position: fixed;
	bottom: 1em;
	right: 1em;
	width: 26em;
	max-width: calc(100vw - 40px);
	background-color: #ffffff;
	border: 1px solid #d3d4d4;
	border-radius: 0.5em;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
	z-index: 1000;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	overflow: hidden;
}

.g3ContactBox--Collapsed .g3ContactBox__Content {
	display: none;
}

.g3ContactBox__Header {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1em 1.25em;
	background: #003c89;
	color: #ffffff;
	position: relative;
}

.g3ContactBox__Header h5 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	width: 100%;
}

.g3ContactBox__Toggle {
	background: none;
	border: none;
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: opacity 0.2s ease;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 0.75em;
}

.g3ContactBox__Toggle:hover {
	opacity: 0.8;
}

.g3ContactBox__Content {
	padding: 1.25em;
	background-color: #f7f8fe;
}

#g3ContactBox__Form .form-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #003c89;
	margin-bottom: 0.35em;
}

#g3ContactBox__Form .form-control-sm {
	font-size: 0.95rem;
	border: 1px solid #c7cde5;
	border-radius: 0.5em;
	background-color: #ffffff;
}

#g3ContactBox__Form .form-control-sm:focus {
	border-color: #0044b5;
	box-shadow: 0 0 0 0.2rem rgba(0, 68, 181, 0.2);
}

#g3ContactBox__Form .btn-sm {
	font-size: 1rem;
	font-weight: 600;
	width: 100%;
	line-height: 2.2;
	margin-top: 0.75em;
	border-radius: 0.5em;
}

#g3ContactBox__Form .btn-primary.btn-sm {
	background-color: #003c89;
	border-color: #0044b5;
	width: 100%;
}

#g3ContactBox__Form .btn-primary:hover {
	background-color: #003a9a;
	border-color: #003a9a;
}

.g3ContactBox__ViewMessages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 0.75em;
	padding: 0.5em;
	color: #003c89;
	text-decoration: none;
	font-size: 0.9rem !important;
	font-weight: 600;
	cursor: pointer;
	border: none;
	background: none;
	width: 100%;
	transition: opacity 0.2s ease;
	line-height: 1.5;
}

.g3ContactBox__ViewMessages:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.g3ContactBox__ViewMessagesIcon {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.g3ContactBox__Message {
	font-size: 0.875rem;
}

.g3ContactBox__Message .alert {
	margin-bottom: 0;
	padding: 8px 12px;
	font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 576px) {
	.g3ContactBox {
		width: calc(100vw - 20px);
		max-width: calc(100vw - 20px);
		right: 10px;
		bottom: 10px;
	}
}
