/* File: assets/css/frontend.css */
:root {
	--mdos-color: #78A083;
	--mdos-radius: 56px;
	--mdos-panel-width: min(360px, 90vw);
	--mdos-btn-color: #78A083;
}

.mdos-launcher {
	position: fixed;
	bottom: 20px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--mdos-color);
	box-shadow: 0 10px 25px rgba(0,0,0,0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 9999;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mdos-launcher img {
	max-width: 60%;
	max-height: 60%;
	object-fit: contain;
}
.mdos-launcher::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(120,160,131,0.5);
	animation: mdos-pulse var(--mdos-pulse-duration, 2.8s) ease-in-out infinite;
	animation-delay: var(--mdos-pulse-delay, 10s);
}
.mdos-launcher:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

@keyframes mdos-pulse {
	0% { transform: scale(1); opacity: 0.7; }
	50% { box-shadow: 0 0 0 20px rgba(120,160,131,0); opacity: 0; }
	100% { transform: scale(1); opacity: 0; }
}

.mdos-panel {
	position: fixed;
	bottom: 100px;
	width: var(--mdos-panel-width);
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(0,0,0,0.2);
	padding: 20px;
	z-index: 10000;
	transform: translateY(30px);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.mdos-panel.mdos-open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.mdos-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}
.mdos-panel-title {
	font-size: 15px;
	font-weight: 600;
	color: #121212;
	line-height: 1.6;
}
.mdos-close {
	background: none;
	border: 0;
	font-size: 22px;
	color: #777;
	cursor: pointer;
}

.mdos-form-group {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}
.mdos-field {
	position: relative;
	flex: 1;
}
.mdos-field textarea,
.mdos-field input {
	width: 100%;
	border-radius: 12px;
	border: 1px solid #d9d9d9;
	padding: 12px 14px;
	margin: 0 0 5px 0;
	font-size: 14px;
}
.mdos-field textarea {
	resize: vertical;
	min-height: 90px;
}
.mdos-field input {
	min-height: 48px;
}

.mdos-submit {
	background: var(--mdos-color);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 10px 18px;
	cursor: pointer;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.3s ease;
}
.mdos-submit:hover {
	background: #668970;
}

.mdos-status {
	margin-top: 10px;
	font-size: 13px;
}
.mdos-status-success { color: #1f8752; }
.mdos-status-error { color: #d63638; }

.mdos-socials {
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.mdos-social-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 12px;
	background: rgba(120,160,131,0.08);
	transition: transform 0.2s ease, background 0.2s ease;
}
.mdos-social-item:hover {
	transform: translateY(-2px);
	background: rgba(120,160,131,0.16);
}
.mdos-social-item img {
	max-width: 28px;
	max-height: 28px;
	object-fit: contain;
}

@media (max-width: 480px) {
	.mdos-form-group {
		flex-direction: column;
	}
	.mdos-panel {
		bottom: 90px;
	}
}

/* سازگاری با کلاس قدیمی */
.mdos-form button[type="submit"] {
	border-radius: 5px;
	background: var(--mdos-btn-color);
}
