/* SDI Testimoni — public-facing styles.
 * Namespaced under sdit- so it never collides with theme classes.
 * Where the host theme already defines sdi-card / sdi-testi / sdi-grid
 * (as on sekolahdigital.com), those classes are also applied on the same
 * elements and will take visual precedence for anything they style.
 */

.sdit-form-wrap {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.sdit-title {
	margin: 0 0 12px;
	text-align: center;
	font-size: 1.9rem;
	font-weight: 700;
}

.sdit-intro {
	margin: 0 0 28px;
	font-size: 1.02rem;
	line-height: 1.6;
	color: #374151;
}

.sdit-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	text-align: left;
}

.sdit-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sdit-label {
	font-weight: 600;
	font-size: 1rem;
}

.sdit-req {
	color: #e0434c;
}

/* Honeypot: visually hidden, but present for bots to (hopefully) fill in. */
.sdit-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Star rating input, rendered right-to-left in markup so the CSS sibling
 * selector can light up "this star and everything before it" on hover/check. */
.sdit-stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 8px;
	font-size: 3.25rem;
	line-height: 1;
}

@media ( max-width: 480px ) {
	.sdit-stars {
		font-size: 2.6rem;
		gap: 6px;
	}
}

.sdit-stars input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.sdit-stars label {
	cursor: pointer;
	color: #d8dce1;
	transition: color 0.15s ease, transform 0.15s ease;
}

.sdit-stars input:checked ~ label,
.sdit-stars label:hover,
.sdit-stars label:hover ~ label {
	color: #f5a623;
}

.sdit-stars input:focus-visible + label {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 4px;
}

.sdit-textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px 14px;
	border: 1px solid #d8dce1;
	border-radius: 10px;
	font-family: inherit;
	font-size: 0.95rem;
	resize: vertical;
}

.sdit-textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.sdit-submit {
	align-self: flex-start;
	background: #111827;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.sdit-submit:hover {
	opacity: 0.9;
}

.sdit-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.sdit-error {
	color: #c0352b;
	font-size: 0.9rem;
	margin: 0;
}

.sdit-thanks {
	text-align: center;
	padding: 40px 20px;
	font-size: 1.05rem;
}

/* ---------- Public display (fallback styles for themes without sdi-*) ---------- */

.sdit-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sdit-card {
	border: 1px solid #e4eaf0;
	border-radius: 14px;
	padding: 22px;
	background: #fff;
}

.sdit-stars-display {
	color: #f5a623;
	letter-spacing: 2px;
	margin-bottom: 10px;
}

.sdit-quote {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #374151;
	margin: 0 0 16px;
}

.sdit-person {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sdit-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #eef2ff;
	color: #3730a3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	flex-shrink: 0;
}

.sdit-person-text {
	display: flex;
	flex-direction: column;
	font-size: 0.85rem;
	line-height: 1.4;
}

.sdit-person-text span {
	color: #6b7280;
}

/* ---------- Rating badge ([sdi_testimoni_rating]) ---------- */

.sdit-rating-badge {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 20px;
	border-radius: 999px;
	background: #f6f9fb;
	border: 1px solid #e4eaf0;
}

.sdit-rating-badge__stars {
	color: #f5a623;
	font-size: 1.2rem;
	letter-spacing: 1px;
}

.sdit-rating-badge__score {
	font-weight: 700;
	color: #141414;
}

.sdit-rating-badge__meta {
	color: #70787f;
	font-size: 0.9rem;
}

/* ---------- Bonus / thank-you page ([sdi_testimoni_bonus]) ---------- */

.sdit-bonus-wrap {
	max-width: 520px;
	margin: 0 auto;
	padding: 20px 16px 8px;
	text-align: center;
}

.sdit-bonus__eyebrow {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #0065b3;
}

.sdit-bonus__title {
	margin: 0 0 16px;
	font-size: 2rem;
	font-weight: 700;
}

.sdit-bonus__body {
	margin: 0 0 28px;
	font-size: 1.02rem;
	line-height: 1.65;
	color: #374151;
}

.sdit-bonus__preview {
	margin: 0 0 28px;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(17, 24, 39, 0.12);
}

.sdit-bonus__cta {
	display: inline-block;
	background: #ed7d31;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border-radius: 999px;
	padding: 14px 32px;
	font-size: 1rem;
	transition: opacity 0.15s ease;
}

.sdit-bonus__cta:hover {
	opacity: 0.9;
	color: #fff;
}

.sdit-bonus__pending {
	color: #70787f;
	font-size: 0.95rem;
}

.sdit-bonus__footer {
	margin: 28px 0 0;
	font-size: 0.9rem;
	color: #70787f;
}
