/**
 * StorefrontPlus — Components (Contact Form, Reviews, Parallax Hero)
 */

/* ── Contact Form ─────────────────────────────────────── */
.sp-contact-form {
	max-width: 600px;
}

.sp-contact-form__row {
	margin-bottom: 1.5em;
}

.sp-contact-form__row label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	font-size: 0.95em;
}

.sp-contact-form__row label .required {
	color: #e74c3c;
}

.sp-contact-form__row input[type="text"],
.sp-contact-form__row input[type="email"],
.sp-contact-form__row input[type="tel"],
.sp-contact-form__row textarea {
	width: 100%;
	padding: 0.75em 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-contact-form__row input:focus,
.sp-contact-form__row textarea:focus {
	border-color: var(--sp-color-primary);
	box-shadow: 0 0 0 2px rgba(150, 88, 138, 0.15);
	outline: none;
}

.sp-contact-form__submit {
	display: flex;
	align-items: center;
	gap: 1em;
}

.sp-contact-form__submit .button {
	padding: 0.75em 2em;
}

.sp-contact-form__spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #ddd;
	border-top-color: var(--sp-color-primary);
	border-radius: 50%;
	animation: spSpin 0.6s linear infinite;
}

@keyframes spSpin {
	to { transform: rotate(360deg); }
}

.sp-contact-form__feedback {
	margin-top: 1em;
	padding: 1em;
	border-radius: 4px;
	font-weight: 500;
}

.sp-contact-form__feedback--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.sp-contact-form__feedback--error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ── Reviews ──────────────────────────────────────────── */
.sp-reviews__card {
	background: #fff;
	border-radius: 8px;
	padding: 1.5em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease;
}

.sp-reviews__card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sp-reviews__stars {
	margin-bottom: 0.8em;
}

.sp-reviews__stars svg {
	vertical-align: middle;
	margin-right: 1px;
}

.sp-reviews__text {
	font-size: 0.95em;
	line-height: 1.6;
	color: var(--sp-color-text);
	margin-bottom: 1em;
	border: none;
	padding: 0;
	font-style: italic;
}

.sp-reviews__meta {
	font-size: 0.85em;
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
}

.sp-reviews__author {
	font-weight: 600;
	color: var(--sp-color-heading);
}

.sp-reviews__product {
	color: #888;
}

.sp-reviews__empty {
	text-align: center;
	color: #888;
	padding: 2em;
}

/* ── Standalone Parallax Hero ─────────────────────────── */
.sp-hero--standalone {
	margin: 2em 0;
	border-radius: 8px;
}
