/*
 * Wellcure Reviews — Public Submission Form
 *
 * All classes here are prefixed `wlcr-form-` and scoped inside
 * #wellcure-review-form so they do NOT clash with the display
 * classes used by the marquee/card frontend (wellcure-review-card,
 * wellcure-stars, wellcure-card-*, etc.).
 */

#wellcure-review-form.wlcr-form-wrapper {
	--wlcr-primary:        #66bc89;
	--wlcr-primary-dark:   #4ea072;
	--wlcr-primary-soft:   #e8f5ee;
	--wlcr-primary-faint:  #f3faf6;
	--wlcr-text:           #111827;
	--wlcr-text-muted:     #6b7280;
	--wlcr-text-soft:      #9ca3af;
	--wlcr-border:         #d1d5db;
	--wlcr-border-soft:    #e5e7eb;
	--wlcr-bg:             #ffffff;
	--wlcr-bg-soft:        #f9fafb;
	--wlcr-star-empty:     #e5e7eb;
	--wlcr-error:          #b91c1c;
	--wlcr-error-soft:     #fef2f2;
	--wlcr-success:        #15803d;
	--wlcr-success-soft:   #f0fdf4;
	--wlcr-radius:         12px;
	--wlcr-shadow:         0 4px 14px rgba(17, 24, 39, 0.05);

	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 32px auto;
	padding: 32px 30px;
	background: var(--wlcr-bg);
	border: 1px solid var(--wlcr-border-soft);
	border-radius: 18px;
	box-shadow: var(--wlcr-shadow);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--wlcr-text);
	line-height: 1.5;
}

#wellcure-review-form.wlcr-form-wrapper *,
#wellcure-review-form.wlcr-form-wrapper *::before,
#wellcure-review-form.wlcr-form-wrapper *::after {
	box-sizing: border-box;
}

#wellcure-review-form .wlcr-form-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--wlcr-text);
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}

#wellcure-review-form .wlcr-form-intro {
	color: var(--wlcr-text-muted);
	font-size: 14.5px;
	margin: 0 0 24px;
}

#wellcure-review-form .wlcr-form-req {
	color: var(--wlcr-primary-dark);
	font-weight: 700;
}

/* --- Field rows -------------------------------------------------------- */

#wellcure-review-form .wlcr-form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 4px;
}

#wellcure-review-form .wlcr-form-row-two .wlcr-form-field {
	flex: 1;
	min-width: 0;
}

#wellcure-review-form .wlcr-form-field {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
}

#wellcure-review-form .wlcr-form-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wlcr-text);
	margin-bottom: 6px;
	display: inline-block;
}

#wellcure-review-form .wlcr-form-help {
	color: var(--wlcr-text-soft);
	font-size: 12.5px;
	margin-top: 4px;
}

#wellcure-review-form .wlcr-form-input,
#wellcure-review-form .wlcr-form-textarea {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--wlcr-text);
	background: var(--wlcr-bg);
	border: 1.5px solid var(--wlcr-border);
	border-radius: var(--wlcr-radius);
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
	line-height: 1.4;
}

#wellcure-review-form .wlcr-form-input:focus,
#wellcure-review-form .wlcr-form-textarea:focus {
	outline: none;
	border-color: var(--wlcr-primary);
	box-shadow: 0 0 0 3px rgba(102, 188, 137, 0.18);
}

#wellcure-review-form .wlcr-form-textarea {
	resize: vertical;
	min-height: 120px;
}

#wellcure-review-form .wlcr-form-input.is-invalid,
#wellcure-review-form .wlcr-form-textarea.is-invalid {
	border-color: var(--wlcr-error);
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

/* --- Star rating input ------------------------------------------------- */

#wellcure-review-form .wlcr-form-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 0;
}

#wellcure-review-form .wlcr-form-star-row {
	display: inline-flex;
	gap: 4px;
}

#wellcure-review-form .wlcr-form-star {
	background: transparent;
	border: 0;
	padding: 4px;
	cursor: pointer;
	color: var(--wlcr-star-empty);
	border-radius: 6px;
	transition: transform .15s ease, color .15s ease;
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#wellcure-review-form .wlcr-form-star svg {
	display: block;
	fill: currentColor;
	transition: fill .15s ease;
}

#wellcure-review-form .wlcr-form-star.is-active {
	color: var(--wlcr-primary);
}

#wellcure-review-form .wlcr-form-star:hover,
#wellcure-review-form .wlcr-form-star:focus-visible {
	transform: scale(1.12);
	outline: none;
	color: var(--wlcr-primary-dark);
}

#wellcure-review-form .wlcr-form-star:focus-visible {
	box-shadow: 0 0 0 2px rgba(102, 188, 137, 0.45);
}

/* --- Sub-rating grid --------------------------------------------------- */

#wellcure-review-form .wlcr-form-subfieldset {
	border: 1px solid var(--wlcr-primary-soft);
	background: var(--wlcr-primary-faint);
	border-radius: var(--wlcr-radius);
	padding: 18px 20px 8px;
	margin: 8px 0 24px;
}

#wellcure-review-form .wlcr-form-sublegend {
	padding: 0 8px;
	font-weight: 700;
	color: var(--wlcr-text);
	font-size: 14.5px;
}

#wellcure-review-form .wlcr-form-subgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 28px;
}

#wellcure-review-form .wlcr-form-subrow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px dashed rgba(102, 188, 137, 0.22);
}

#wellcure-review-form .wlcr-form-subrow:last-child,
#wellcure-review-form .wlcr-form-subrow:nth-last-child(2):nth-child(odd) {
	border-bottom: 0;
}

#wellcure-review-form .wlcr-form-sublabel {
	font-size: 13.5px;
	font-weight: 500;
	color: #374151;
}

#wellcure-review-form .wlcr-form-rating-small .wlcr-form-star {
	padding: 2px;
}

/* --- Honeypot (hidden from real users) --------------------------------- */

#wellcure-review-form .wlcr-form-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

/* --- Submit button & messages ----------------------------------------- */

#wellcure-review-form .wlcr-form-actions {
	margin-top: 8px;
}

#wellcure-review-form .wlcr-form-submit {
	background: linear-gradient(135deg, var(--wlcr-primary) 0%, var(--wlcr-primary-dark) 100%);
	color: #fff;
	border: 0;
	padding: 13px 32px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	border-radius: var(--wlcr-radius);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
	box-shadow: 0 4px 12px rgba(102, 188, 137, 0.28);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 180px;
	-webkit-appearance: none;
	appearance: none;
}

#wellcure-review-form .wlcr-form-submit:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(102, 188, 137, 0.38);
}

#wellcure-review-form .wlcr-form-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

#wellcure-review-form .wlcr-form-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wlcr-spin 0.8s linear infinite;
}

#wellcure-review-form.is-submitting .wlcr-form-spinner {
	display: inline-block;
}

@keyframes wlcr-spin {
	to { transform: rotate(360deg); }
}

#wellcure-review-form .wlcr-form-message {
	margin-top: 18px;
	padding: 0;
	border-radius: var(--wlcr-radius);
	font-size: 14.5px;
	line-height: 1.5;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease, padding .3s ease, margin .3s ease;
}

#wellcure-review-form .wlcr-form-message.is-success {
	background: var(--wlcr-success-soft);
	color: var(--wlcr-success);
	border: 1px solid #bbf7d0;
	padding: 14px 16px;
	max-height: 200px;
}

#wellcure-review-form .wlcr-form-message.is-error {
	background: var(--wlcr-error-soft);
	color: var(--wlcr-error);
	border: 1px solid #fecaca;
	padding: 14px 16px;
	max-height: 200px;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 640px) {
	#wellcure-review-form.wlcr-form-wrapper {
		padding: 24px 20px;
		margin: 20px auto;
		border-radius: 14px;
	}
	#wellcure-review-form .wlcr-form-title {
		font-size: 21px;
	}
	#wellcure-review-form .wlcr-form-row {
		flex-direction: column;
		gap: 0;
	}
	#wellcure-review-form .wlcr-form-subgrid {
		grid-template-columns: 1fr;
		gap: 0;
	}
	#wellcure-review-form .wlcr-form-subrow {
		flex-wrap: wrap;
		gap: 4px;
	}
	#wellcure-review-form .wlcr-form-submit {
		width: 100%;
		min-width: 0;
	}
#wellcure-review-form .wlcr-form-subfieldset {
    padding: 18px 10px 8px;
}
}
