/**
 * Review Form Styles — UROCLINIC Premium
 * /recenzii/ page
 */

/* ============================================
   Review Hero
   ============================================ */
.review-hero {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	padding: 60px 20px 50px;
	position: relative;
	overflow: hidden;
}

.review-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: -10%;
	width: 50%;
	height: 100%;
	background: radial-gradient(circle at center, rgba(13, 115, 119, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.review-hero-inner {
	max-width: 700px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	text-align: center;
}

.review-breadcrumbs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: #64748b;
	margin-bottom: 24px;
}

.review-breadcrumbs a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.review-breadcrumbs a:hover {
	color: #0D7377;
}

.review-breadcrumbs .separator {
	color: #cbd5e1;
}

.review-breadcrumbs .current {
	color: #1e293b;
	font-weight: 500;
}

.review-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(13, 115, 119, 0.1);
	color: #0D7377;
	padding: 8px 16px;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}

.review-tag::before {
	content: "";
	width: 6px;
	height: 6px;
	background: #0D7377;
	border-radius: 50%;
	animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.8); }
}

.review-hero h1 {
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 12px;
	line-height: 1.2;
}

.review-hero-description {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #64748b;
	margin: 0;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

/* ============================================
   Review Form Container
   ============================================ */
.review-form-section {
	max-width: 640px;
	margin: 0 auto;
	padding: 60px 20px 80px;
}

.review-form-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 40px;
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.02),
		0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Star Rating Widget
   ============================================ */
.star-rating-group {
	margin-bottom: 28px;
}

.star-rating-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 12px;
}

.star-rating-widget {
	display: flex;
	gap: 8px;
}

.star-rating-widget .star-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	transition: transform 0.2s ease;
	line-height: 1;
}

.star-rating-widget .star-btn:hover {
	transform: scale(1.15);
}

.star-rating-widget .star-btn svg {
	width: 36px;
	height: 36px;
	transition: all 0.2s ease;
}

.star-rating-widget .star-btn .star-empty {
	fill: #d1d5db;
}

.star-rating-widget .star-btn .star-filled {
	fill: #FBBC05;
}

.star-rating-widget .star-btn:focus-visible {
	outline: 2px solid #0D7377;
	outline-offset: 2px;
	border-radius: 4px;
}

.star-rating-error {
	color: #E85A24;
	font-size: 0.8125rem;
	margin-top: 8px;
	display: none;
}

/* ============================================
   Form Fields
   ============================================ */
.review-field {
	margin-bottom: 24px;
}

.review-field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 8px;
}

.review-field label .optional {
	font-weight: 400;
	color: #94a3b8;
	font-size: 0.8125rem;
}

.review-field input,
.review-field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 1rem;
	font-family: inherit;
	color: #1e293b;
	background: #f8fafc;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.review-field input:focus,
.review-field textarea:focus {
	outline: none;
	border-color: #0D7377;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.review-field input.has-error,
.review-field textarea.has-error {
	border-color: #E85A24;
}

.review-field textarea {
	min-height: 140px;
	resize: vertical;
}

.review-field .field-hint {
	font-size: 0.75rem;
	color: #94a3b8;
	margin-top: 6px;
}

/* Two-column row */
.review-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 480px) {
	.review-field-row {
		grid-template-columns: 1fr;
	}
}

/* Honeypot */
.review-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ============================================
   GDPR Notice
   ============================================ */
.review-gdpr {
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #94a3b8;
	margin-bottom: 28px;
	padding: 16px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.review-gdpr svg {
	vertical-align: -2px;
	margin-right: 4px;
	color: #0D7377;
}

/* ============================================
   Submit Button
   ============================================ */
.review-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 32px;
	background: linear-gradient(135deg, #0D7377 0%, #0a5a5c 100%);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(13, 115, 119, 0.3);
}

.review-submit-btn:focus-visible {
	outline: 2px solid #0D7377;
	outline-offset: 2px;
}

.review-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.review-submit-btn .btn-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

.review-submit-btn.loading .btn-spinner {
	display: block;
}

.review-submit-btn.loading .btn-text {
	display: none;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ============================================
   Response Messages
   ============================================ */
.review-response {
	display: none;
	padding: 16px 20px;
	border-radius: 12px;
	font-size: 0.9375rem;
	font-weight: 500;
	margin-top: 20px;
	text-align: center;
}

.review-response.success {
	display: block;
	background: rgba(13, 115, 119, 0.08);
	color: #0D7377;
	border: 1px solid rgba(13, 115, 119, 0.2);
}

.review-response.error {
	display: block;
	background: rgba(232, 90, 36, 0.08);
	color: #E85A24;
	border: 1px solid rgba(232, 90, 36, 0.2);
}

/* Hide form after success */
.review-form-card.submitted .review-form-inner {
	display: none;
}

/* Success State */
.review-success {
	display: none;
	text-align: center;
	padding: 40px 20px;
}

.review-success-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: rgba(13, 115, 119, 0.08);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.review-success-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 12px;
}

.review-success-text {
	font-size: 1rem;
	line-height: 1.7;
	color: #64748b;
	margin: 0 0 32px;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

.review-success-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: linear-gradient(135deg, #0D7377 0%, #0a5a5c 100%);
	color: #ffffff;
	text-decoration: none;
	border-radius: 12px;
	font-size: 0.9375rem;
	font-weight: 600;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-success-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(13, 115, 119, 0.3);
	color: #ffffff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
	.review-hero {
		padding: 48px 16px 40px;
	}

	.review-form-section {
		padding: 40px 16px 60px;
	}

	.review-form-card {
		padding: 28px 20px;
	}
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
	.star-rating-widget .star-btn,
	.review-submit-btn {
		transition: none;
	}

	.review-submit-btn:hover {
		transform: none;
	}

	.review-tag::before {
		animation: none;
	}
}
