/* ==========================================================================
   Legal Pro — Testimonials section + FAB + Modal (v1.9.3)
   ========================================================================== */

/* ----- Section ----- */
.lp-testimonials {
	padding: clamp(56px, 8vw, 96px) 0;
	background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}
.lp-testimonials-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(32px, 5vw, 48px);
}
/* "أضف رأيك" button placed under the subtitle, centered. */
.lp-tm-add-btn-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 10px 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, #1e40af, #1d4ed8);
	color: #ffffff;
	border: none;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 8px 22px -10px rgba(29, 78, 216, 0.6), 0 2px 4px rgba(0, 0, 0, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	white-space: nowrap;
}
.lp-tm-add-btn-top svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.lp-tm-add-btn-top:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -10px rgba(29, 78, 216, 0.75), 0 4px 8px rgba(0, 0, 0, 0.08);
	background: linear-gradient(135deg, #1d4ed8, #1e40af);
}
.lp-tm-add-btn-top:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 3px;
}
@media (max-width: 720px) {
	.lp-tm-add-btn-top { padding: 9px 16px; font-size: 0.9rem; }
}
.lp-testimonials-head .lp-section-title {
	margin: 0 0 12px;
	color: #111827;
	font-size: clamp(1.65rem, 3.2vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}
.lp-testimonials-head .lp-section-sub {
	margin: 0;
	color: #4b5563;
	font-size: 1.05rem;
	line-height: 1.7;
}
.lp-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 22px;
	align-items: stretch;
}
.lp-testimonial-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
}
.lp-testimonial-card::before {
	content: "”";
	position: absolute;
	top: -8px;
	left: 14px;
	font-size: 88px;
	color: #d1d5db;
	font-family: Georgia, serif;
	line-height: 1;
	pointer-events: none;
}
[dir="rtl"] .lp-testimonial-card::before {
	left: auto;
	right: 14px;
	content: "“";
}
.lp-testimonial-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px -16px rgba(15, 23, 42, 0.18);
	border-color: #cbd5e1;
}
.lp-testimonial-head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.lp-testimonial-logo {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: contain;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	flex-shrink: 0;
}
.lp-testimonial-meta {
	min-width: 0;
}
.lp-testimonial-company {
	margin: 0 0 4px;
	font-size: 1.05rem;
	color: #111827;
	font-weight: 700;
}
.lp-testimonial-location {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #6b7280;
	font-size: 0.88rem;
}
.lp-testimonial-body {
	margin: 0;
	color: #374151;
	font-size: 0.97rem;
	line-height: 1.85;
	flex: 1;
}
.lp-testimonial-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e5e7eb;
	font-size: 0.9rem;
}
.lp-testimonial-author { color: #111827; font-weight: 600; }
.lp-testimonial-website {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}
.lp-testimonial-website:hover { text-decoration: underline; }
.lp-testimonials-empty {
	text-align: center;
	color: #6b7280;
	padding: 32px;
	background: #ffffff;
	border: 1px dashed #e5e7eb;
	border-radius: 14px;
}

/* ----- Floating Action Button (FAB) ----- */
.lp-tm-fab {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	right: 16px;
	z-index: 9990;
	background: linear-gradient(135deg, #1e40af, #1d4ed8);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 14px 18px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 10px 28px -10px rgba(29, 78, 216, 0.6), 0 4px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	font-size: 0.94rem;
	font-weight: 700;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	writing-mode: vertical-rl;
	text-orientation: mixed;
}
[dir="rtl"] .lp-tm-fab {
	right: auto;
	left: 16px;
	writing-mode: vertical-rl;
}
.lp-tm-fab svg {
	width: 20px;
	height: 20px;
	writing-mode: horizontal-tb;
}
.lp-tm-fab-label { writing-mode: horizontal-tb; display: inline-block; transform: rotate(0); }
.lp-tm-fab:hover {
	transform: translateY(-50%) scale(1.04);
	box-shadow: 0 16px 38px -10px rgba(29, 78, 216, 0.75), 0 4px 10px rgba(0, 0, 0, 0.12);
}
.lp-tm-fab:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 3px;
}
@media (max-width: 640px) {
	.lp-tm-fab { writing-mode: horizontal-tb; padding: 12px 16px; top: auto; bottom: 18px; right: 16px; transform: none; }
	[dir="rtl"] .lp-tm-fab { right: auto; left: 16px; }
	.lp-tm-fab:hover { transform: scale(1.04); }
}

/* ----- Modal ----- */
.lp-tm-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
}
.lp-tm-modal.is-open { display: flex; }
.lp-tm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}
.lp-tm-modal-dialog {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	padding: 28px clamp(20px, 3vw, 32px);
	max-width: 720px;
	width: 100%;
	box-shadow: 0 24px 70px -20px rgba(15, 23, 42, 0.45);
	margin: auto;
	animation: lp-tm-pop 0.18s ease-out;
}
@keyframes lp-tm-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lp-tm-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	gap: 12px;
}
.lp-tm-modal-title { margin: 0; font-size: 1.35rem; font-weight: 800; color: #111827; }
.lp-tm-modal-close {
	background: transparent;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.lp-tm-modal-close:hover { background: #f3f4f6; color: #111827; }

.lp-tm-flash {
	padding: 10px 14px;
	border-radius: 10px;
	margin-bottom: 14px;
	font-size: 0.95rem;
	font-weight: 500;
}
.lp-tm-modal-intro {
	margin: -6px 0 14px;
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.7;
}
.lp-tm-flash.is-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.lp-tm-flash.is-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.lp-tm-form .lp-tm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.lp-tm-form .lp-tm-col-2 { grid-column: span 2; }
@media (max-width: 640px) {
	.lp-tm-form .lp-tm-grid { grid-template-columns: 1fr; }
	.lp-tm-form .lp-tm-col-2 { grid-column: span 1; }
}
.lp-tm-field { display: flex; flex-direction: column; gap: 6px; }
.lp-tm-field label {
	font-weight: 600;
	color: #111827;
	font-size: 0.93rem;
}
.lp-tm-req { color: #dc2626; }
.lp-tm-field input[type="text"],
.lp-tm-field input[type="email"],
.lp-tm-field input[type="tel"],
.lp-tm-field input[type="url"],
.lp-tm-field input[type="file"],
.lp-tm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 0.96rem;
	font-family: inherit;
	background: #ffffff;
	color: #111827;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-tm-field input:focus,
.lp-tm-field textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.lp-tm-field textarea {
	resize: vertical;
	min-height: 110px;
}
.lp-tm-hint { color: #6b7280; font-size: 0.82rem; }

.lp-tm-captcha-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.lp-tm-captcha-img {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f9fafb;
	padding: 6px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
}
.lp-tm-captcha-img svg { display: block; max-width: 100%; height: auto; }
@media (max-width: 640px) {
	.lp-tm-captcha-row { grid-template-columns: 1fr; }
}

.lp-tm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e5e7eb;
}
.lp-tm-actions .lp-btn { padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent; }
.lp-tm-actions .lp-btn-primary { background: #1d4ed8; color: #fff; }
.lp-tm-actions .lp-btn-primary:hover { background: #1e40af; }
.lp-tm-actions .lp-btn-ghost { background: transparent; color: #4b5563; border-color: #e5e7eb; }
.lp-tm-actions .lp-btn-ghost:hover { background: #f3f4f6; }

/* لو الـ FAB أُخفي بفلتر */
.lp-tm-fab[hidden] { display: none !important; }
