/* Testimonials Manager — self-contained styles.
   Override the --tsm-* custom properties in your theme to match any site's
   brand instead of editing this file. */

:root {
	--tsm-primary: #3667d8;
	--tsm-ink: #16213a;
	--tsm-body: #4a5568;
	--tsm-body-light: #7a8699;
	--tsm-border: #e2e6ee;
	--tsm-bg-card: #fff;
	--tsm-radius: 16px;
	--tsm-shadow: 0 10px 30px rgba(22, 33, 58, 0.08);
	--tsm-star: #f5a623;
}

.tsm-heading {
	text-align: center;
	margin-bottom: 24px;
}

.tsm-empty-notice {
	border: 1px dashed var(--tsm-border);
	border-radius: var(--tsm-radius);
	padding: 20px;
	text-align: center;
	color: var(--tsm-body-light);
	font-size: 14px;
}
.tsm-empty-notice a { color: var(--tsm-primary); }

.tsm-stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 14px; }
.tsm-tile .tsm-stars { justify-content: flex-start; }
.tsm-stars__icon { width: 18px; height: 18px; color: var(--tsm-border); }
.tsm-stars__icon.is-filled { color: var(--tsm-star); }
.tsm-stars__icon svg { width: 100%; height: 100%; display: block; }

/* Carousel ---------------------------------------------------------------- */

.tsm-carousel { overflow: hidden; border-radius: var(--tsm-radius); }
.tsm-carousel__track {
	display: flex;
	transition: transform 0.4s ease;
}
.tsm-card {
	width: 100%;
	flex: 0 0 100%;
	box-sizing: border-box;
	background: var(--tsm-bg-card);
	border-radius: var(--tsm-radius);
	box-shadow: var(--tsm-shadow);
	padding: 40px;
	margin: 0;
	text-align: center;
}
.tsm-card blockquote {
	margin: 0 0 20px;
	font-size: 19px;
	font-weight: 600;
	color: var(--tsm-ink);
	line-height: 1.5;
	overflow-wrap: break-word;
}
.tsm-card figcaption span { display: block; color: var(--tsm-body-light); font-size: 14px; margin-top: 4px; }
.tsm-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.tsm-carousel__dot {
	width: 9px; height: 9px; border-radius: 50%;
	border: none; background: var(--tsm-border); cursor: pointer; padding: 0;
}
.tsm-carousel__dot.is-active { background: var(--tsm-primary); }

/* Grid ---------------------------------------------------------------------*/

.tsm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.tsm-tile {
	text-align: left;
	background: var(--tsm-bg-card);
	border-radius: var(--tsm-radius);
	box-shadow: var(--tsm-shadow);
	padding: 28px;
	margin: 0;
}
.tsm-tile blockquote {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 600;
	color: var(--tsm-ink);
	overflow-wrap: break-word;
}
.tsm-tile figcaption span { display: block; color: var(--tsm-body-light); font-size: 13px; margin-top: 2px; }

/* Public submission form --------------------------------------------------- */

.tsm-form-wrap {
	background: var(--tsm-bg-card);
	border: 1px solid var(--tsm-border);
	border-radius: var(--tsm-radius);
	box-shadow: var(--tsm-shadow);
	padding: 32px;
	max-width: 720px;
	margin: 0 auto;
}
.tsm-form-title { margin: 0 0 6px; color: var(--tsm-ink); }
.tsm-form-intro { margin: 0 0 20px; color: var(--tsm-body); }
.tsm-form { display: grid; gap: 16px; }
.tsm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tsm-form label { display: grid; gap: 6px; font-weight: 600; color: var(--tsm-ink); font-size: 14px; }
.tsm-form input,
.tsm-form select,
.tsm-form textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	color: var(--tsm-ink);
	background: #fff;
	border: 1px solid var(--tsm-border);
	border-radius: 10px;
	box-sizing: border-box;
}
.tsm-form textarea { resize: vertical; min-height: 120px; }
.tsm-form input:focus,
.tsm-form select:focus,
.tsm-form textarea:focus {
	outline: none;
	border-color: var(--tsm-primary);
	box-shadow: 0 0 0 3px rgba(54, 103, 216, 0.15);
}
.tsm-form-btn {
	justify-self: start;
	background: var(--tsm-primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px 26px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.tsm-form-btn:hover { transform: translateY(-1px); opacity: 0.94; }
.tsm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tsm-alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.tsm-alert--ok { background: rgba(40, 180, 100, 0.1); border: 1px solid rgba(40, 180, 100, 0.3); color: #1c7a44; }
.tsm-alert--err { background: rgba(220, 60, 65, 0.08); border: 1px solid rgba(220, 60, 65, 0.28); color: #a3282c; }

@media (max-width: 560px) {
	.tsm-form-row { grid-template-columns: 1fr; }
	.tsm-form-wrap { padding: 24px 20px; }
}
