/**
 * QL Forms Frontend Styles
 */

.ql-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
}

.ql-form {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ql-form-title {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: 600;
	color: #343a40;
}

.ql-form-description {
	margin: 0 0 25px 0;
	color: #6c757d;
	line-height: 1.6;
}

.ql-form-field {
	margin-bottom: 20px;
}

.ql-field-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #343a40;
}

.ql-field-label .required {
	color: #dc3545;
	margin-left: 3px;
}

.ql-field-description {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: #6c757d;
}

.ql-field-input {
	width: 100%;
	padding: 10px 15px;
	font-size: 14px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.ql-field-input:focus {
	outline: none;
	border-color: #ff0e56;
	box-shadow: 0 0 0 3px rgba(255, 14, 86, 0.1);
}

.ql-field-input.error {
	border-color: #dc3545;
}

.ql-field-error {
	display: none;
	margin-top: 5px;
	color: #dc3545;
	font-size: 13px;
}

.ql-field-error.active {
	display: block;
}

/* Textarea */
.ql-field-textarea {
	min-height: 120px;
	resize: vertical;
}

/* Select */
.ql-field-select {
	appearance: none;
	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='%23343a40' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 12px;
	padding-right: 40px;
}

/* Radio & Checkbox */
.ql-field-choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ql-field-choice {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ql-field-choice input[type="radio"],
.ql-field-choice input[type="checkbox"] {
	width: auto;
	margin: 0;
}

/* Submit Button */
.ql-form-submit {
	text-align: center;
	margin-top: 25px;
}

.ql-submit-button {
	background: #ff0e56;
	color: #fff;
	padding: 12px 40px;
	font-size: 16px;
	font-weight: 500;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ql-submit-button:hover {
	background: #e00c4d;
}

.ql-submit-button:disabled {
	background: #6c757d;
	cursor: not-allowed;
}

/* Success Message */
.ql-form-message {
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
}

.ql-form-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.ql-form-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Loading Spinner */
.ql-loading-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: ql-spin 0.8s linear infinite;
	margin-left: 8px;
}

@keyframes ql-spin {
	to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
	.ql-form-wrapper {
		padding: 10px;
	}
	
	.ql-form {
		padding: 20px;
	}
}
