/**
 * Easy IT Pros Lead Tools - Frontend Styles
 */

/* Container */
.easyitpros-tool {
	max-width: 800px;
	margin: 2em auto;
	padding: 2em;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Typography */
.easyitpros-title {
	font-size: 1.75em;
	font-weight: 600;
	margin: 0 0 0.5em;
	color: #1a1a1a;
}

.easyitpros-description {
	font-size: 1em;
	color: #666;
	margin: 0 0 2em;
	line-height: 1.6;
}

/* Form Fields */
.easyitpros-field {
	margin-bottom: 1.5em;
}

.easyitpros-label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5em;
	color: #333;
	font-size: 0.95em;
}

.easyitpros-label.required::after {
	content: " *";
	color: #d63638;
}

.easyitpros-input,
.easyitpros-input select {
	width: 100%;
	padding: 0.75em;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	font-family: inherit;
	transition: border-color 0.2s;
}

.easyitpros-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.easyitpros-input:invalid {
	border-color: #d63638;
}

/* Radio Groups */
.easyitpros-radio-group {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.easyitpros-radio-label {
	display: flex;
	align-items: center;
	padding: 0.75em;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.easyitpros-radio-label:hover {
	background-color: #f5f5f5;
	border-color: #2271b1;
}

.easyitpros-radio {
	margin-right: 0.75em;
	cursor: pointer;
}

.easyitpros-radio-label input[type="radio"]:checked + span {
	font-weight: 500;
	color: #2271b1;
}

.easyitpros-radio-label:has(input[type="radio"]:checked) {
	background-color: #f0f6fc;
	border-color: #2271b1;
}

/* Select Dropdown */
.easyitpros-input select {
	background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E);
	background-repeat: no-repeat;
	background-position: right 0.75em center;
	padding-right: 2.5em;
	appearance: none;
}

/* Buttons */
.easyitpros-actions {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid #eee;
}

.easyitpros-button {
	padding: 0.875em 1.75em;
	font-size: 1em;
	font-weight: 500;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
}

.easyitpros-button-primary {
	background-color: #2271b1;
	color: #fff;
}

.easyitpros-button-primary:hover:not(:disabled) {
	background-color: #135e96;
}

.easyitpros-button-primary:active:not(:disabled) {
	transform: translateY(1px);
}

.easyitpros-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Results */
.easyitpros-results {
	padding: 2em;
	background: #f9f9f9;
	border-radius: 8px;
	border: 2px solid #2271b1;
}

.easyitpros-results-title {
	font-size: 1.5em;
	font-weight: 600;
	margin: 0 0 1.5em;
	color: #1a1a1a;
}

.easyitpros-recommendation {
	margin-bottom: 2em;
	padding: 1.5em;
	background: #fff;
	border-radius: 6px;
	border-left: 4px solid #2271b1;
}

.easyitpros-recommendation h4 {
	margin: 0 0 0.75em;
	font-size: 1.1em;
	color: #333;
}

.easyitpros-recommendation-text {
	font-size: 1.25em;
	font-weight: 600;
	color: #2271b1;
	margin: 0;
}

.easyitpros-score {
	margin-bottom: 2em;
	padding: 1em;
	background: #fff;
	border-radius: 6px;
	text-align: center;
}

.easyitpros-score-label {
	margin: 0;
	font-size: 1em;
	color: #666;
}

.easyitpros-score-value {
	font-size: 1.5em;
	font-weight: 600;
	color: #2271b1;
}

.easyitpros-details {
	margin-top: 2em;
}

.easyitpros-details h4 {
	font-size: 1.1em;
	margin: 0 0 0.75em;
	color: #333;
}

.easyitpros-reasoning,
.easyitpros-breakdown,
.easyitpros-steps-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5em;
}

.easyitpros-reasoning li,
.easyitpros-breakdown li,
.easyitpros-steps-list li {
	padding: 0.5em 0;
	padding-left: 1.5em;
	position: relative;
	line-height: 1.6;
}

.easyitpros-reasoning li::before,
.easyitpros-breakdown li::before,
.easyitpros-steps-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #2271b1;
	font-weight: 700;
}

.easyitpros-risk-flags,
.easyitpros-red-flags {
	margin-top: 1.5em;
	padding: 1em;
	background: #fff3cd;
	border-radius: 6px;
	border-left: 4px solid #ffc107;
}

.easyitpros-red-flags {
	background: #f8d7da;
	border-left-color: #dc3545;
}

.easyitpros-risk-list,
.easyitpros-red-list {
	list-style: none;
	padding: 0;
	margin: 0.5em 0 0;
}

.easyitpros-risk-list li,
.easyitpros-red-list li {
	padding: 0.5em 0;
	padding-left: 1.5em;
	position: relative;
	line-height: 1.6;
}

.easyitpros-risk-list li::before,
.easyitpros-red-list li::before {
	content: "⚠";
	position: absolute;
	left: 0;
}

.easyitpros-next-steps {
	margin-top: 1.5em;
	padding: 1em;
	background: #d1ecf1;
	border-radius: 6px;
	border-left: 4px solid #0c5460;
}

.easyitpros-maturity-band {
	margin-top: 1em;
	padding: 1em;
	background: #fff;
	border-radius: 6px;
}

.easyitpros-results-footer {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid #ddd;
	text-align: center;
}

.easyitpros-thank-you {
	margin: 0;
	color: #666;
	font-style: italic;
}

/* Error Messages */
.easyitpros-error {
	display: none;
	padding: 1em;
	margin-bottom: 1em;
	background: #f8d7da;
	color: #721c24;
	border-radius: 4px;
	border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {

	.easyitpros-tool {
		margin: 1em;
		padding: 1.5em;
	}

	.easyitpros-title {
		font-size: 1.5em;
	}

	.easyitpros-results {
		padding: 1.5em;
	}
}
