/**
 * BluForms Frontend Styles
 *
 * @package BluForms
 * @since 1.0.0
 */

.bluforms-frontend-wrapper {
	max-width: 600px;
	margin: 2rem auto;
	padding: 2rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(16, 25, 36, 0.06);
}

.bluforms-frontend-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bluforms-form-title {
	margin: 0 0 1rem 0;
	font-size: 28px;
	font-weight: 700;
	color: #0d141b;
}

.bluforms-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.bluforms-label {
	font-weight: 600;
	font-size: 14px;
	color: #374151;
}

.bluforms-required {
	color: #dc2626;
	margin-left: 4px;
}

.bluforms-unique-indicator {
	color: #7c3aed;
	font-size: 12px;
	font-weight: 500;
	margin-left: 8px;
	background: #f3e8ff;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #d8b4fe;
}

.bluforms-field-unique .bluforms-input {
	border-color: #d8b4fe;
}

.bluforms-field-unique .bluforms-input:focus {
	border-color: #7c3aed;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.bluforms-input {
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.bluforms-input:focus {
	outline: none;
	border-color: #137fec;
	box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.1);
}

.bluforms-input::placeholder {
	color: #9ca3af;
}

textarea.bluforms-input {
	min-height: 100px;
	resize: vertical;
}

.bluforms-radio-group,
.bluforms-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bluforms-radio-label,
.bluforms-checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-weight: normal;
}

.bluforms-radio-label input[type="radio"],
.bluforms-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.bluforms-form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

.bluforms-submit-btn {
	background: #137fec;
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.bluforms-submit-btn:hover {
	background: #0d6acc;
}

.bluforms-submit-btn:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

.bluforms-message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-top: 1rem;
}

.bluforms-message.success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.bluforms-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.bluforms-error {
	color: #dc2626;
	padding: 1rem;
	background: #fee2e2;
	border-radius: 8px;
	border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
	.bluforms-frontend-wrapper {
		padding: 1.5rem;
		margin: 1rem;
	}

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