/**
 * Frontend Styling für Solumondo Lead-Gebietsprüfung [solu_gebietspruefung]
 * Mobile-First, WCAG 2.1 AA konform, Solumondo Navy & Orange Branding.
 */

.solu-lead-check-wrapper {
	background: linear-gradient(135deg, #071527 0%, #0d2740 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 2rem 1.5rem;
	box-shadow: 0 10px 30px rgba(5, 11, 20, 0.25);
	border: 1px solid rgba(0, 194, 203, 0.25);
	position: relative;
	box-sizing: border-box;
	max-width: 900px;
	margin: 2rem auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
	.solu-lead-check-wrapper {
		padding: 2.5rem;
	}
}

/* Header & Kicker */
.solu-lead-check-header {
	margin-bottom: 1.75rem;
	text-align: center;
}

.solu-lead-check-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 194, 203, 0.15);
	color: #38e1ea;
	border: 1px solid rgba(0, 194, 203, 0.35);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.solu-lead-check-badge-dot {
	width: 8px;
	height: 8px;
	background: #38e1ea;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 8px #00c2cb;
}

.solu-lead-check-wrapper h3,
.solu-lead-check-wrapper .solu-lead-check-title,
.solu-lead-check-title {
	font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
	font-weight: 800;
	color: #ffffff !important;
	margin: 0 0 0.5rem 0;
	line-height: 1.25;
}

.solu-lead-check-subtitle {
	color: #94a3b8;
	font-size: 0.95rem;
	margin: 0;
	line-height: 1.5;
}

/* Form & Inputs */
.solu-lead-check-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.solu-lead-check-inputs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.solu-lead-check-inputs {
		grid-template-columns: 2fr 1fr 1.5fr;
	}
}

.solu-lead-input-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	text-align: left;
}

.solu-lead-input-group label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #cbd5e1;
}

.solu-lead-input-group input {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	color: #ffffff;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

.solu-lead-input-group input::placeholder {
	color: #64748b;
}

.solu-lead-input-group input:focus-visible {
	outline: none;
	border-color: #00c2cb;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.25);
}

/* Submit Button */
.solu-lead-check-actions {
	display: flex;
	justify-content: center;
	margin-top: 0.5rem;
}

.solu-lead-check-submit {
	background: linear-gradient(135deg, #ff6a00 0%, #ff8533 100%);
	color: #ffffff !important;
	border: none;
	border-radius: 8px;
	padding: 0.85rem 2rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(255, 106, 0, 0.35);
	transition: all 0.2s ease-in-out;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	width: 100%;
}

@media (min-width: 640px) {
	.solu-lead-check-submit {
		width: auto;
		min-width: 280px;
	}
}

.solu-lead-check-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 106, 0, 0.5);
	background: linear-gradient(135deg, #ff7a1a 0%, #ff944d 100%);
}

.solu-lead-check-submit:disabled {
	opacity: 0.75;
	cursor: wait;
}

/* Spinner */
.solu-submit-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: solu-spin 0.7s linear infinite;
	display: inline-block;
}

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

/* Inline Result Container */
.solu-lead-check-result {
	margin-top: 2rem;
	padding: 1.5rem;
	border-radius: 12px;
	animation: solu-fade-in 0.35s ease;
	box-sizing: border-box;
}

@keyframes solu-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Result Styles: Free (Grün) */
.solu-lead-check-result--free {
	background: rgba(16, 185, 129, 0.12);
	border: 1px solid rgba(16, 185, 129, 0.4);
}

.solu-lead-check-result--free .solu-result-status-icon::before {
	content: "✅";
	font-size: 1.8rem;
}

.solu-lead-check-result--free .solu-result-title {
	color: #34d399;
}

.solu-lead-check-result--free .solu-result-cta-btn {
	background: #10b981;
	color: #ffffff !important;
}

.solu-lead-check-result--free .solu-result-cta-btn:hover {
	background: #059669;
}

/* Result Styles: Blocked (Orange/Rot) */
.solu-lead-check-result--blocked {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.4);
}

.solu-lead-check-result--blocked .solu-result-status-icon::before {
	content: "🛡️";
	font-size: 1.8rem;
}

.solu-lead-check-result--blocked .solu-result-title {
	color: #f87171;
}

.solu-lead-check-result--blocked .solu-result-cta-btn {
	background: #475569;
	color: #ffffff !important;
}

.solu-lead-check-result--blocked .solu-result-cta-btn:hover {
	background: #334155;
}

/* Result Styles: Warning (Lila) */
.solu-lead-check-result--warning {
	background: rgba(168, 85, 247, 0.12);
	border: 1px solid rgba(168, 85, 247, 0.4);
}

.solu-lead-check-result--warning .solu-result-status-icon::before {
	content: "⏳";
	font-size: 1.8rem;
}

.solu-lead-check-result--warning .solu-result-title {
	color: #c084fc;
}

.solu-lead-check-result--warning .solu-result-cta-btn {
	background: #8b5cf6;
	color: #ffffff !important;
}

.solu-lead-check-result--warning .solu-result-cta-btn:hover {
	background: #7c3aed;
}

/* Result Layout */
.solu-result-inner {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1.25rem;
}

.solu-result-title {
	margin: 0 0 0.4rem 0;
	font-size: 1.25rem;
	font-weight: 800;
}

.solu-result-message {
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
	color: #e2e8f0;
	line-height: 1.5;
}

.solu-result-geo-info {
	font-size: 0.85rem;
	color: #94a3b8;
}

.solu-result-action {
	display: flex;
	justify-content: flex-start;
}

.solu-result-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.75rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
	transition: all 0.2s ease;
	width: 100%;
}

@media (min-width: 640px) {
	.solu-result-cta-btn {
		width: auto;
	}
}
