/* DashCRM Lead Capture Form Styles */

.dashcrm-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 30px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dashcrm-form-title {
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 10px 0;
	line-height: 1.2;
}

.dashcrm-form-description {
	font-size: 14px;
	color: #666666;
	margin: 0 0 30px 0;
	line-height: 1.6;
}

.dashcrm-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dashcrm-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dashcrm-form-label {
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	display: flex;
	align-items: center;
	gap: 4px;
}

.dashcrm-required {
	color: #e74c3c;
	font-weight: 600;
}

.dashcrm-form-input,
.dashcrm-form-textarea {
	padding: 12px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.2s ease;
	background: #ffffff;
	color: #1a1a1a;
}

.dashcrm-form-input:focus,
.dashcrm-form-textarea:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dashcrm-form-input::placeholder,
.dashcrm-form-textarea::placeholder {
	color: #999999;
}

.dashcrm-form-textarea {
	resize: vertical;
	min-height: 120px;
	font-family: inherit;
}

.dashcrm-form-button {
	padding: 14px 24px;
	background: #3498db;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-transform: none;
	letter-spacing: normal;
}

.dashcrm-form-button:hover {
	background: #2980b9;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.dashcrm-form-button:active {
	transform: translateY(0);
}

.dashcrm-form-button:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: none;
}

.dashcrm-form-message {
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.dashcrm-form-message-hidden {
	display: none;
}

.dashcrm-form-message.dashcrm-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.dashcrm-form-message.dashcrm-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.dashcrm-form-error {
	padding: 15px;
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	font-size: 14px;
}

/* Loading state */
.dashcrm-form-button.dashcrm-loading {
	position: relative;
	color: transparent;
}

.dashcrm-form-button.dashcrm-loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: dashcrm-spin 0.6s linear infinite;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.dashcrm-form-wrapper {
		background: #2a2a2a;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	}

	.dashcrm-form-title {
		color: #ffffff;
	}

	.dashcrm-form-description {
		color: #cccccc;
	}

	.dashcrm-form-label {
		color: #ffffff;
	}

	.dashcrm-form-input,
	.dashcrm-form-textarea {
		background: #1a1a1a;
		color: #ffffff;
		border-color: #404040;
	}

	.dashcrm-form-input::placeholder,
	.dashcrm-form-textarea::placeholder {
		color: #666666;
	}

	.dashcrm-form-input:focus,
	.dashcrm-form-textarea:focus {
		border-color: #3498db;
		box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.dashcrm-form-wrapper {
		padding: 20px;
	}

	.dashcrm-form-title {
		font-size: 24px;
	}

	.dashcrm-form-button {
		padding: 12px 20px;
		font-size: 15px;
	}
}
