/**
 * Sleek Comment Form
 */

.scf-widget {
	--scf-bg: #ffffff;
	--scf-border: #e8eaed;
	--scf-text: #202124;
	--scf-muted: #70757a;
	--scf-accent: #fbbc04;
	--scf-accent-hover: #f9ab00;
	--scf-radius: 12px;
	--scf-success: #1e8e3e;
	--scf-error: #d93025;
	font-family: "Google Sans", Roboto, Arial, sans-serif;
	max-width: 560px;
	margin: 0 auto;
}

.scf-widget *,
.scf-widget *::before,
.scf-widget *::after {
	box-sizing: border-box;
}

/* Header */
.scf-header {
	margin-bottom: 24px;
}

.scf-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 600;
	color: var(--scf-text);
	line-height: 1.3;
}

.scf-subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--scf-muted);
	line-height: 1.5;
}

/* Form card */
.scf-form {
	background: var(--scf-bg);
	border: 1px solid var(--scf-border);
	border-radius: var(--scf-radius);
	padding: 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.scf-field {
	margin-bottom: 20px;
}

.scf-field:last-of-type {
	margin-bottom: 0;
}

.scf-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--scf-text);
}

.scf-required {
	color: var(--scf-error);
	margin-left: 2px;
}

.scf-input,
.scf-textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--scf-text);
	background: #f8f9fa;
	border: 1px solid var(--scf-border);
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.scf-input:focus,
.scf-textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--scf-accent);
	box-shadow: 0 0 0 3px rgba(251, 188, 4, 0.25);
}

.scf-input:read-only {
	opacity: 0.7;
	cursor: not-allowed;
}

.scf-textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.55;
}

.scf-textarea::placeholder {
	color: #9aa0a6;
}

/* Honeypot – invisible to users */
.scf-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit */
.scf-actions {
	margin-top: 24px;
}

.scf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 160px;
	padding: 13px 28px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: var(--scf-text);
	background: var(--scf-accent);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.scf-submit:hover:not(:disabled) {
	background: var(--scf-accent-hover);
}

.scf-submit:active:not(:disabled) {
	transform: scale(0.98);
}

.scf-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.scf-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(32, 33, 36, 0.2);
	border-top-color: var(--scf-text);
	border-radius: 50%;
	animation: scf-spin 0.7s linear infinite;
}

.scf-form.is-loading .scf-spinner {
	display: block;
}

.scf-form.is-loading .scf-submit-text {
	opacity: 0.6;
}

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

/* Messages */
.scf-message {
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.5;
	min-height: 0;
}

.scf-message:empty {
	display: none;
}

.scf-message.is-success {
	color: var(--scf-success);
}

.scf-message.is-error {
	color: var(--scf-error);
}

.scf-notice {
	padding: 16px;
	border-radius: var(--scf-radius);
	font-size: 14px;
}

.scf-notice-closed {
	background: #f8f9fa;
	color: var(--scf-muted);
	border: 1px solid var(--scf-border);
}

/* Responsive */
@media (max-width: 600px) {
	.scf-form {
		padding: 20px;
	}

	.scf-title {
		font-size: 20px;
	}

	.scf-submit {
		width: 100%;
	}
}
