/* Simple Testimonials & Reviews - front-end styles */

.st-wrap {
	/* Themeable brand colors — overridden inline per-site from Settings > Colors. */
	--st-color-dark: #111827;
	--st-color-primary: #f5a623;
	--st-color-primary-rgb: 245, 166, 35;
	--st-star: #fbbf24;
	--st-quote-bg: #22c55e;
	--st-quote-icon-color: #111827;
	--st-border: #e5e7eb;

	/* Fixed neutrals, kept consistent for readability regardless of brand color. */
	--st-text-muted: #6b7280;
	--st-text-body: #57606f;
	--st-input-bg: #f8fafc;
	--st-input-border: #e2e8f0;

	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.st-wrap *, .st-wrap *::before, .st-wrap *::after { box-sizing: inherit; }

/* ---------- List / cards ---------- */
.st-list { position: relative; }

.st-track { display: grid; gap: 24px; }
.st-layout-grid .st-track { grid-template-columns: repeat(3, 1fr); }
.st-layout-list .st-track { grid-template-columns: 1fr; }

.st-layout-slider.st-has-arrows { padding: 0 28px; }
.st-layout-slider .st-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding-bottom: 4px;
}
.st-layout-slider .st-track::-webkit-scrollbar { display: none; }
.st-layout-slider .st-card { flex: 0 0 calc(33.333% - 16px); scroll-snap-align: start; }

@media (max-width: 900px) {
	.st-layout-grid .st-track { grid-template-columns: repeat(2, 1fr) !important; }
	.st-layout-slider .st-card { flex-basis: calc(50% - 12px); }
}
@media (max-width: 600px) {
	.st-layout-grid .st-track { grid-template-columns: 1fr !important; }
	.st-layout-slider .st-card { flex-basis: 85%; }
}

.st-card {
	border: 1px solid var(--st-border);
	border-radius: 12px;
	padding: 28px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: box-shadow .15s ease, transform .15s ease;
	text-decoration: none;
	color: inherit;
}
.st-card:hover {
	box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
	transform: translateY(-2px);
}
.st-card:focus-visible {
	outline: 2px solid var(--st-color-primary);
	outline-offset: 3px;
}

.st-card-header { display: flex; align-items: center; gap: 10px; }
.st-card-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.st-card-logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--st-color-dark);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.st-card-business { font-weight: 700; font-size: 17px; color: #111827; letter-spacing: -0.01em; }

.st-card-quote p {
	margin: 0;
	color: var(--st-text-body);
	line-height: 1.7;
	font-size: 15.5px;
}
.st-quote-mark { color: #9ca3af; font-size: 1.2em; line-height: 0; }
.st-read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--st-color-primary);
}

.st-card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; gap: 12px; }
.st-card-name { font-weight: 700; font-size: 16px; color: #111827; }
.st-card-role { font-size: 13px; color: var(--st-text-muted); margin-top: 2px; }

.st-quote-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--st-quote-bg);
	color: var(--st-quote-icon-color);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.st-stars { display: inline-flex; gap: 2px; }
.st-star { color: #d1d5db; font-size: 14px; }
.st-star-filled { color: var(--st-star); }

.st-empty { color: var(--st-text-muted); text-align: center; padding: 40px 0; grid-column: 1 / -1; }

/* Slider arrows */
.st-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--st-border);
	background: #fff;
	cursor: pointer;
	font-size: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.st-arrow-prev { left: 0; }
.st-arrow-next { right: 0; }
.st-arrow:hover { background: #f9fafb; }

/* Dot navigation */
.st-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}
.st-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 999px;
	border: none;
	background: #d1d5db;
	cursor: pointer;
	transition: background .15s ease, width .15s ease;
}
.st-dot:hover { background: #9ca3af; }
.st-dot.is-active { background: var(--st-color-dark); width: 22px; }

/* ---------- Summary bar ---------- */
.st-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 32px;
}
.st-summary-stars { display: flex; align-items: center; gap: 8px; }
.st-summary-stars .st-star { font-size: 20px; }
.st-summary-score { font-weight: 700; color: #111827; }
.st-summary-count { color: var(--st-text-muted); font-size: 14px; }

/* ---------- Buttons ---------- */
.st-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	border: none;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
}
.st-btn-dark,
.st-open-form-btn { background: var(--st-color-dark); color: #fff; }
.st-btn-dark:hover,
.st-open-form-btn:hover { filter: brightness(1.15); color: #fff; }
.st-write-review-wrap { text-align: center; margin-top: 24px; }

/* ---------- Modal ---------- */
.st-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, .55);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
	z-index: 100000;
}
.st-modal-overlay[hidden] { display: none; }
.st-modal {
	background: #fff;
	border-radius: 14px;
	max-width: 640px;
	width: 100%;
	padding: 36px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	animation: st-fade-in .18s ease-out;
}
@keyframes st-fade-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}
.st-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: transparent;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}
.st-modal-close:hover { background: #f3f4f6; color: #111827; }

/* ---------- Form ---------- */
.st-form-title { text-align: center; margin: 0 0 6px; font-size: 23px; color: #111827; }
.st-form-subtitle { text-align: center; margin: 0 0 26px; font-size: 14px; color: var(--st-text-muted); }

.st-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.st-form-grid .st-form-row { margin-bottom: 0; }
@media (max-width: 560px) {
	.st-form-grid { grid-template-columns: 1fr; }
}

.st-form-row { margin-bottom: 18px; }
.st-form-row label,
.st-form-label { display: block; margin-bottom: 6px; font-size: 13px; color: #374151; font-weight: 600; }
.st-required { color: #ef4444; }

.st-form-row input[type="text"],
.st-form-row input[type="email"],
.st-form-row select,
.st-form-row textarea {
	width: 100%;
	padding: 11px 13px;
	border-radius: 8px;
	border: 1px solid var(--st-input-border);
	background: var(--st-input-bg);
	font-size: 14px;
	font-family: inherit;
	color: #111827;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.st-form-row input:focus,
.st-form-row select:focus,
.st-form-row textarea:focus {
	outline: none;
	border-color: var(--st-color-primary);
	box-shadow: 0 0 0 3px rgba(var(--st-color-primary-rgb), .15);
	background: #fff;
}
.st-form-row textarea { resize: vertical; }

.st-toggle-row { margin-top: 4px; }
.st-toggle-group { display: flex; gap: 10px; }
.st-toggle { position: relative; cursor: pointer; }
.st-toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.st-toggle span {
	display: inline-flex;
	align-items: center;
	padding: 9px 22px;
	border-radius: 999px;
	border: 1px solid var(--st-input-border);
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.st-toggle input:checked + span {
	background: var(--st-color-dark);
	border-color: var(--st-color-dark);
	color: #fff;
}
.st-toggle input:focus-visible + span {
	outline: 2px solid var(--st-color-primary);
	outline-offset: 2px;
}

.st-submit-btn {
	background: var(--st-color-primary);
	color: #fff;
	width: 100%;
	justify-content: center;
	padding: 13px;
	font-size: 15px;
	margin-top: 6px;
}
.st-submit-btn:hover { filter: brightness(1.08); color: #fff; }
.st-submit-btn:disabled { opacity: .6; cursor: default; }

.st-form-message { margin-top: 12px; font-size: 14px; text-align: center; min-height: 1em; }
.st-form-message.st-success { color: #067647; }
.st-form-message.st-error { color: #b42318; }

.st-form-inline .st-form-container {
	max-width: 640px;
	margin: 0 auto;
	border: 1px solid var(--st-border);
	border-radius: 14px;
	padding: 36px;
}

/* ---------- Single review page ---------- */
.st-single-wrap { padding: 56px 20px 80px; }
.st-single-inner { max-width: 720px; margin: 0 auto; }

.st-single-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 28px;
	font-size: 14px;
	font-weight: 600;
	color: var(--st-text-muted);
	text-decoration: none;
}
.st-single-back:hover { color: #111827; }

.st-single-card {
	background: #fff;
	border: 1px solid var(--st-border);
	border-radius: 16px;
	padding: 48px;
}
@media (max-width: 600px) {
	.st-single-card { padding: 32px 24px; }
}

.st-single-quote-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--st-quote-bg);
	color: var(--st-quote-icon-color);
	margin-bottom: 24px;
}

.st-single-quote {
	margin: 0 0 36px;
	padding: 0;
	border: none;
	font-size: 20px;
	line-height: 1.8;
	color: #1f2937;
	font-weight: 500;
}
.st-single-quote p:last-child { margin-bottom: 0; }

.st-single-footer {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 28px;
	border-top: 1px solid var(--st-border);
	flex-wrap: wrap;
}
.st-single-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.st-single-logo.st-card-logo-fallback { font-size: 18px; }
.st-single-person { flex: 1 1 auto; min-width: 160px; }
.st-single-name { font-weight: 700; font-size: 17px; color: #111827; }
.st-single-meta { font-size: 14px; color: var(--st-text-muted); display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.st-single-rating .st-star { font-size: 18px; }
