/*
 * WeddingClinicPlus — Listeo popups: report listing (#report-listing-dialog) and send message (#small-dialog).
 * Same look as the login dialog: arch header, rounded fields, rose-gold button.
 */
#report-listing-dialog,
#small-dialog {
	--d-rose: #b98473;
	--d-rose-d: #9a6a5b;
	--d-blush: #f8efe9;
	--d-line: #ebdfd7;
	--d-ink: #3a2e2a;
	--d-muted: #8c7d76;
	--d-gold: #c9a35b;
}

html body #report-listing-dialog.zoom-anim-dialog,
html body #small-dialog.zoom-anim-dialog {
	max-width: 480px;
	padding: 0 !important;
	border-radius: 26px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 40px 90px -30px rgba(40, 24, 18, .6);
}

/* ---------- header ---------- */
#report-listing-dialog .small-dialog-header,
#small-dialog .small-dialog-header {
	position: relative;
	display: block !important;
	float: none !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	left: 0 !important;
	right: 0 !important;
	transform: none !important;
	padding: 94px 28px 40px !important;
	border: 0 !important;
	text-align: center;
	background:
		radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .6), transparent 40%),
		linear-gradient(135deg, #f3e2d8 0%, #fbeee9 55%, #f6e7c9 100%) !important;
}
#small-dialog .small-dialog-header::before,
#report-listing-dialog .small-dialog-header::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 22px;
	width: 60px;
	height: 60px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #fff center / 28px no-repeat;
	box-shadow: 0 10px 24px -10px rgba(120, 82, 66, .45);
}
/* message icon */
#small-dialog .small-dialog-header::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b98473' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H8l-4 4z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E");
}
/* flag icon */
#report-listing-dialog .small-dialog-header::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0574f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4'/%3E%3Cpath d='M5 4h11l-2 4 2 4H5'/%3E%3C/svg%3E");
}
#report-listing-dialog .small-dialog-header {
	background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .6), transparent 40%), linear-gradient(135deg, #f9e1df 0%, #fbefec 55%, #f7ead6 100%) !important;
}
#report-listing-dialog .small-dialog-header::after,
#small-dialog .small-dialog-header::after {
	content: "";
	position: absolute;
	inset: auto 0 -1px 0;
	height: 24px;
	background: #fff;
	border-radius: 24px 24px 0 0;
}
#report-listing-dialog .small-dialog-header h3,
#small-dialog .small-dialog-header h3 {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.6;
	color: #5a4036;
}
#small-dialog .small-dialog-header h3::after,
#report-listing-dialog .small-dialog-header h3::after {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	color: #8a6f63;
}
#small-dialog .small-dialog-header h3::after { content: "پیام شما مستقیم برای مجموعه فرستاده می‌شود"; }
#report-listing-dialog .small-dialog-header h3::after { content: "اگر این آگهی مشکلی دارد به ما خبر بدهید"; }
/* ---------- close ---------- */
html body #report-listing-dialog .mfp-close,
html body #small-dialog .mfp-close {
	top: 14px !important;
	left: 14px !important;
	right: auto !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	font-size: 0 !important;
	opacity: 1 !important;
	background-color: rgba(255, 255, 255, .85) !important;
	background-image: linear-gradient(var(--d-rose), var(--d-rose)), linear-gradient(var(--d-rose), var(--d-rose)) !important;
	background-size: 14px 2px, 2px 14px !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	transform: rotate(45deg);
	transition: transform .2s;
}
html body #report-listing-dialog .mfp-close:hover,
html body #small-dialog .mfp-close:hover { transform: rotate(135deg); }
html body #report-listing-dialog .mfp-close::before,
html body #report-listing-dialog .mfp-close::after,
html body #small-dialog .mfp-close::before,
html body #small-dialog .mfp-close::after { display: none !important; }

/* ---------- body ---------- */
#report-listing-dialog .message-reply,
#small-dialog .message-reply {
	margin: 0 !important;
	padding: 6px 28px 28px !important;
	border: 0 !important;
}
#report-listing-dialog .form-group { margin: 0 0 16px; }
#report-listing-dialog .form-group > label {
	display: block;
	margin: 0 0 8px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--d-ink);
}

#report-listing-dialog textarea,
#small-dialog textarea {
	display: block;
	width: 100% !important;
	min-height: 130px;
	margin: 0 !important;
	padding: 14px 16px !important;
	border: 1.5px solid var(--d-line) !important;
	border-radius: 16px !important;
	background: #fcf9f6 !important;
	box-shadow: none !important;
	color: var(--d-ink) !important;
	font-size: 15px !important;
	line-height: 1.9 !important;
	resize: vertical;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
#report-listing-dialog textarea::placeholder,
#small-dialog textarea::placeholder { color: #a8998f; }
#report-listing-dialog textarea:focus,
#small-dialog textarea:focus {
	border-color: var(--d-rose) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(226, 194, 179, .25) !important;
	outline: none;
}

/* select2 (reason) */
#report-listing-dialog .select2-container { width: 100% !important; }
#report-listing-dialog .select2-container .select2-selection--single {
	height: 52px !important;
	border: 1.5px solid var(--d-line) !important;
	border-radius: 14px !important;
	background: #fcf9f6 !important;
	box-shadow: none !important;
}
#report-listing-dialog .select2-container .select2-selection__rendered {
	line-height: 49px !important;
	padding: 0 16px 0 40px !important;
	color: var(--d-ink) !important;
	font-size: 15px;
	text-align: right;
}
#report-listing-dialog .select2-container .select2-selection__arrow {
	height: 50px !important;
	left: 12px !important;
	right: auto !important;
}
#report-listing-dialog .select2-container--open .select2-selection--single,
#report-listing-dialog .select2-container--focus .select2-selection--single {
	border-color: var(--d-rose) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(226, 194, 179, .25) !important;
}
/* the dropdown is appended to <body> by select2 */
.select2-container--open .select2-dropdown { border-color: #ebdfd7 !important; border-radius: 14px !important; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(120, 82, 66, .35); }
.select2-container--open .select2-results__option--highlighted[aria-selected],
.select2-container--open .select2-results__option--highlighted { background: #f8efe9 !important; color: #9a6a5b !important; }
/* plain select fallback (before select2 loads) */
#report-listing-dialog select#report_reason:not(.select2-hidden-accessible) {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1.5px solid var(--d-line);
	border-radius: 14px;
	background: #fcf9f6;
}

/* ---------- button ---------- */
html body #report-listing-dialog button.button,
html body #small-dialog button.button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100% !important;
	height: 54px !important;
	margin: 18px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: linear-gradient(135deg, var(--d-rose), var(--d-rose-d)) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	box-shadow: 0 14px 26px -12px rgba(154, 106, 91, .8) !important;
	cursor: pointer;
	transition: transform .15s, filter .2s;
}
html body #report-listing-dialog button.button { background: linear-gradient(135deg, #c96a62, #a64f49) !important; box-shadow: 0 14px 26px -12px rgba(166, 79, 73, .8) !important; }
html body #report-listing-dialog button.button:hover,
html body #small-dialog button.button:hover { transform: translateY(-1px); filter: brightness(1.05); }
/* the spinner only shows while sending (Listeo adds .loading) */
#small-dialog button.button i.fa-spin { display: none; margin: 0 !important; }
#small-dialog button.button.loading i.fa-spin,
#small-dialog button.button[disabled] i.fa-spin { display: inline-block; }

/* ---------- notices ---------- */
#report-listing-dialog .notification,
#small-dialog .notification { border-radius: 12px !important; font-size: 13.5px; line-height: 1.8; }
#small-dialog .notification:empty { display: none !important; }

@media (max-width: 480px) {
	html body #report-listing-dialog.zoom-anim-dialog,
	html body #small-dialog.zoom-anim-dialog { border-radius: 22px; margin: 12px auto; }
	#report-listing-dialog .message-reply,
	#small-dialog .message-reply { padding: 4px 18px 22px !important; }
	#report-listing-dialog .small-dialog-header,
	#small-dialog .small-dialog-header { padding: 92px 20px 38px !important; }
}
