﻿/* LeadX Widget - Call Back Form */

.leadx-callback-form-widget {
	font-family: inherit;
}

.leadx-callback-form-widget .leadx-form {
	min-height: 0;
}

.leadx-callback-form-widget .leadx-form-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	color: inherit;
}

.leadx-callback-form-widget .leadx-field-row {
	display: grid;
	gap: 16px;
}

.leadx-callback-form-widget .leadx-field-row-stacked {
	grid-template-columns: 1fr;
}

.leadx-callback-form-widget .leadx-field-row-inline {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: end;
}

.leadx-callback-form-widget .leadx-field-row-inline .leadx-field {
	margin-bottom: 0;
}

.leadx-callback-form-widget .leadx-field-row-inline .leadx-submit-field {
	margin-bottom: 0;
}

.leadx-callback-form-widget .leadx-field-row-inline .leadx-field input,
.leadx-callback-form-widget .leadx-field-row-inline .leadx-form-submit {
	box-sizing: border-box;
	height: 42px;
	min-height: 42px;
}

.leadx-callback-form-widget .leadx-field-row-inline .leadx-form-submit {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.leadx-callback-form-widget .leadx-field-row {
		grid-template-columns: 1fr;
	}
}

.leadx-callback-form-widget .leadx-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.leadx-callback-form-widget .leadx-field label {
	font-weight: 600;
	font-size: 14px;
	color: inherit;
}

.leadx-callback-form-widget .leadx-required {
	color: #ef4444;
}

.leadx-callback-form-widget .leadx-field input {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s;
	background: #fff;
	color: #111827;
}

.leadx-callback-form-widget .leadx-field input:focus {
	outline: none;
	border-color: #9333ea;
	box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.leadx-callback-form-widget .leadx-submit-field {
	margin-bottom: 0;
}

.leadx-callback-form-widget .leadx-form-submit {
	background: #9333ea;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.leadx-callback-form-widget .leadx-form-submit:hover {
	background: #7c3aed;
}

.leadx-callback-form-widget .leadx-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.leadx-callback-form-widget .leadx-form-response {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 16px;
}

.leadx-callback-form-widget .leadx-form-response.leadx-success {
	background: #d1fae5;
	color: #065f46;
	border-left: 4px solid #10b981;
}

.leadx-callback-form-widget .leadx-form-response.leadx-error {
	background: #fee2e2;
	color: #991b1b;
	border-left: 4px solid #ef4444;
}
