/* EP Testimonials — Frontend Styles */

.ep-testimonials {
	display: grid;
	gap: 24px;
	margin: 32px 0;
}
.ep-testimonials--cols-2 { grid-template-columns: 1fr; }
.ep-testimonials--cols-3 { grid-template-columns: 1fr; }
.ep-testimonials--cols-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
	.ep-testimonials--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.ep-testimonials--cols-3 { grid-template-columns: repeat(2, 1fr); }
	.ep-testimonials--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.ep-testimonials--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.ep-testimonials--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.ep-testimonial-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ep-testimonial-quote {
	width: 32px;
	height: 32px;
	color: #d1d5db;
}
.ep-testimonial-quote svg {
	width: 100%;
	height: 100%;
}
.ep-testimonial-body {
	font-size: 15px;
	line-height: 1.6;
	color: #374151;
	flex: 1;
}
.ep-testimonial-rating {
	display: flex;
	gap: 2px;
}
.ep-stars {
	display: inline-flex;
	gap: 1px;
}
.ep-star {
	font-size: 16px;
	color: #d1d5db;
}
.ep-star--filled {
	color: #f59e0b;
}
.ep-testimonial-author {
	border-top: 1px solid #f3f4f6;
	padding-top: 12px;
}
.ep-testimonial-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}
.ep-testimonial-meta {
	display: block;
	font-size: 13px;
	color: #6b7280;
	margin-top: 2px;
}

/* Submission form */
.ep-testimonial-form-wrapper {
	margin: 32px 0;
	max-width: 600px;
}
.ep-testimonial-form-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}
.ep-testimonial-field {
	margin-bottom: 16px;
}
.ep-testimonial-field label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
	color: #374151;
}
.ep-testimonial-field input[type="text"],
.ep-testimonial-field input[type="email"],
.ep-testimonial-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}
.ep-testimonial-field textarea {
	resize: vertical;
}
.ep-testimonial-field input:focus,
.ep-testimonial-field textarea:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.ep-testimonial-hint {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 2px;
	display: block;
}
.ep-required {
	color: #ef4444;
}
.ep-testimonial-submit {
	display: inline-block;
	padding: 10px 24px;
	background: #4f46e5;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
}
.ep-testimonial-submit:hover {
	background: #4338ca;
}
.ep-testimonial-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ep-testimonial-response {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	display: none;
}
.ep-testimonial-response:not(:empty) {
	display: block;
}
.ep-testimonial-response--success {
	background: #dcfce7;
	color: #166534;
}
.ep-testimonial-response--error {
	background: #fee2e2;
	color: #991b1b;
}
.ep-testimonial-response--info {
	background: #dbeafe;
	color: #1e40af;
}

/* Star rating input */
.ep-star-input {
	border: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
}
.ep-star-input input {
	display: none;
}
.ep-star-input label {
	font-size: 24px;
	color: #d1d5db;
	cursor: pointer;
	transition: color 0.1s;
	display: inline-block !important;
	margin: 0 !important;
	font-weight: normal !important;
}
.ep-star-input label:hover,
.ep-star-input label:hover ~ label {
	color: #f59e0b;
}
.ep-star-input input:checked ~ label {
	color: #f59e0b;
}

/* Honeypot */
.ep-hp {
	position: absolute;
	left: -9999px;
}
