/* Testimoniale Pro — Frontend styles */
.tp-carousel-wrap, .tp-page-wrap, .tp-form-wrap {
	--tp-accent: #6c5ce7;
	--tp-ink: #1a1a2e;
	--tp-muted: #6b7280;
	--tp-bg-soft: #f7f7fb;
	--tp-border: #eceef5;
	--tp-radius: 18px;
	--tp-shadow: 0 4px 20px rgba(20, 20, 43, 0.06);
	--tp-shadow-hover: 0 12px 32px rgba(20, 20, 43, 0.12);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
	color: var(--tp-ink);
	text-transform: none;
}
.tp-carousel-wrap *, .tp-page-wrap *, .tp-form-wrap * { box-sizing: border-box; }

.tp-section-title {
	font-size: clamp(1.5rem, 2.5vw, 2.1rem);
	font-weight: 800;
	text-align: center;
	margin: 0 0 8px;
	letter-spacing: -0.02em;
	text-transform: none !important;
}
.tp-empty { text-align: center; color: var(--tp-muted); padding: 40px 0; }

/* ---------- Stars ---------- */
.tp-stars { display: inline-flex; gap: 2px; }
.tp-star { width: 16px; height: 16px; fill: #e2e2ea; }
.tp-star-filled { fill: #f5b400; }

/* ---------- Card ---------- */
.tp-card-item {
	position: relative;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	padding: 26px 24px 22px;
	box-shadow: var(--tp-shadow);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}
.tp-card-featured {
	border: 1px solid color-mix(in srgb, var(--tp-accent) 35%, transparent);
	background: linear-gradient(180deg, color-mix(in srgb, var(--tp-accent) 6%, #fff) 0%, #fff 40%);
}
.tp-badge-featured {
	position: relative;
	z-index: 1;
	display: inline-block;
	align-self: flex-start;
	background: linear-gradient(135deg, var(--tp-accent), color-mix(in srgb, var(--tp-accent) 60%, #ff7ac6));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: .02em;
	margin-bottom: 14px;
}
.tp-card-rating { margin: 16px 0 4px; }
.tp-card-text {
	position: relative;
	z-index: 1;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tp-ink);
	flex-grow: 1;
	margin: 0;
	text-transform: none !important;
}

/* Hover lift only on devices that actually support hover (skip touch/tap) */
@media (hover: hover) and (pointer: fine) {
	.tp-card-item:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-hover); }
}
.tp-card-item:active { transform: none; box-shadow: var(--tp-shadow); border-color: var(--tp-border); }
.tp-card-featured:active { border-color: color-mix(in srgb, var(--tp-accent) 35%, transparent); }
.tp-card-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tp-avatar {
	width: 42px; height: 42px; border-radius: 50%;
	background: linear-gradient(135deg, var(--tp-accent), color-mix(in srgb, var(--tp-accent) 55%, #34c9eb));
	color: #fff; font-weight: 700; font-size: 14px;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.tp-card-author { display: flex; flex-direction: column; }
.tp-author-name { font-weight: 700; font-size: 14px; }
.tp-author-meta { font-size: 12.5px; color: var(--tp-muted); }

/* ---------- Carousel ---------- */
.tp-carousel-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 10px; }
.tp-carousel { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.tp-carousel-track-wrap { overflow: hidden; flex: 1; }
.tp-carousel-track { display: flex; gap: 20px; transition: transform .5s cubic-bezier(.65,0,.35,1); will-change: transform; }
.tp-carousel-slide { flex: 0 0 calc(33.333% - 14px); min-width: 0; }
@media (max-width: 900px) { .tp-carousel-slide { flex-basis: calc(50% - 10px); } }
@media (max-width: 600px) { .tp-carousel-slide { flex-basis: 100%; } }

.tp-carousel-nav {
	flex-shrink: 0;
	width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--tp-border);
	background: #fff;
	font-size: 22px;
	line-height: 1;
	color: var(--tp-ink);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--tp-shadow);
	transition: background .2s ease, color .2s ease, transform .15s ease;
}
.tp-carousel-nav:hover { background: var(--tp-accent); color: #fff; transform: scale(1.06); }
.tp-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.tp-carousel-dots button {
	width: 8px; height: 8px; border-radius: 50%; border: none; background: #dcdce6; cursor: pointer; padding: 0;
	transition: all .2s ease;
}
.tp-carousel-dots button.is-active { background: var(--tp-accent); width: 22px; border-radius: 4px; }

/* ---------- Page / grid ---------- */
.tp-page-wrap { max-width: 1200px; margin: 0 auto; padding: 50px 16px 70px; }
.tp-page-header { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.tp-page-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; text-transform: none !important; }
.tp-page-subtitle { color: var(--tp-muted); font-size: 16px; margin: 0 0 18px; text-transform: none !important; }
.tp-page-summary { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--tp-muted); margin-bottom: 22px; }
.tp-page-summary .tp-star { width: 18px; height: 18px; }

.tp-grid-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
@media (max-width: 900px) { .tp-grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tp-grid-cards { grid-template-columns: 1fr; } }

.tp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.tp-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 10px;
	border-radius: 10px; border: 1px solid var(--tp-border);
	color: var(--tp-ink); text-decoration: none; font-size: 14px; font-weight: 600;
	transition: all .15s ease;
}
.tp-pagination .page-numbers.current, .tp-pagination .page-numbers:hover { background: var(--tp-accent); color: #fff; border-color: var(--tp-accent); }

/* ---------- Buttons ---------- */
.tp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 26px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.tp-btn-primary {
	background: #0C49D1 !important;
	color: #FFFFFF !important;
	box-shadow: 0 8px 20px rgba(12, 73, 209, .28);
}
.tp-btn-primary:hover, .tp-btn-primary:focus {
	background: #0a3aab !important;
	color: #FFFFFF !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(12, 73, 209, .35);
}
.tp-btn-primary:active { transform: translateY(0); }
.tp-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.tp-btn-block { width: 100%; }

/* ---------- Form ---------- */
.tp-form-wrap { max-width: 640px; margin: 0 auto; padding: 46px 16px; }
.tp-form-intro { text-align: center; color: var(--tp-muted); margin: 0 0 32px; }
.tp-form {
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	padding: 32px;
	box-shadow: var(--tp-shadow);
}
.tp-form-row { margin-bottom: 20px; }
.tp-form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .tp-form-row-group { grid-template-columns: 1fr; } }
.tp-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.tp-req { color: #e0245e; }
.tp-optional { color: var(--tp-muted); font-weight: 500; }
.tp-form input[type=text], .tp-form input[type=email], .tp-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1.5px solid var(--tp-border);
	background: var(--tp-bg-soft);
	font-size: 15px;
	font-family: inherit;
	transition: border-color .15s ease, background .15s ease;
}
.tp-form input:focus, .tp-form textarea:focus {
	outline: none;
	border-color: var(--tp-accent);
	background: #fff;
}
.tp-form textarea { resize: vertical; min-height: 110px; }
.tp-form .tp-field-error { border-color: #e0245e !important; }
.tp-hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Star rating input */
.tp-star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 30px; }
.tp-star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.tp-star-input label { color: #e2e2ea; cursor: pointer; transition: color .15s ease, transform .15s ease; margin: 0; font-weight: 400; }
.tp-star-input input:checked ~ label,
.tp-star-input label:hover,
.tp-star-input label:hover ~ label { color: #f5b400; }
.tp-star-input:hover label { color: #e2e2ea; }
.tp-star-input label:hover, .tp-star-input label:hover ~ label { color: #f5b400; }

.tp-form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	display: none;
}
.tp-form-message.is-success { display: block; background: #e9fbf0; color: #1b7d4d; }
.tp-form-message.is-error { display: block; background: #fdeeee; color: #b3261e; }

@media (max-width: 480px) {
	.tp-carousel-nav { display: none; }
}
