/**
 * LX Relocations Booking — Front-end styles.
 * These are sensible defaults; Elementor's Style tab controls (registered in
 * class-lxr-elementor-widget.php) override these via inline/generated CSS
 * scoped to each widget instance, so site owners can fully restyle without
 * touching this file.
 */

.lxr-form-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px;
	background: #f9fafb;
	border-radius: 8px;
	font-family: inherit;
	box-sizing: border-box;
}

.lxr-booking-form-wrap * {
	box-sizing: border-box;
}

.lxr-form-heading {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 600;
}

/* Honeypot field: visually hidden from real visitors but still present in
   the DOM/tab order avoidance for bots that blindly fill every input. */
.lxr-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lxr-field {
	margin-bottom: 16px;
}

.lxr-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #1f2937;
}

.lxr-field input,
.lxr-field select {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #ffffff;
	color: #111827;
}

.lxr-field input:focus,
.lxr-field select:focus {
	outline: none;
	border-color: #1e3a5f;
	box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.15);
}

/* Phone field: country-code select + number input sit side by side. */
.lxr-phone-group {
	display: flex;
	gap: 8px;
}

.lxr-phone-group .lxr-phone-country {
	flex: 0 0 150px;
}

.lxr-phone-group input[type="tel"] {
	flex: 1 1 auto;
}

.lxr-submit-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: #1e3a5f;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.lxr-submit-btn:hover {
	background: #16283f;
}

.lxr-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Small inline spinner shown on the button while the AJAX request is in flight. */
.lxr-btn-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: lxr-spin 0.7s linear infinite;
}

.lxr-submit-btn.is-loading .lxr-btn-spinner {
	display: inline-block;
}

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

.lxr-form-message {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 14px;
}

.lxr-form-message.lxr-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.lxr-form-message.lxr-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* ---------------------------------------------------------------------- */
/* wp-admin status badges (used on the LXR Bookings list table & metabox) */
/* ---------------------------------------------------------------------- */
.lxr-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.lxr-badge-new { background: #fef3c7; color: #92400e; }
.lxr-badge-opened { background: #e5e7eb; color: #374151; }

.lxr-status-spam { background: #fee2e2; color: #991b1b; }
.lxr-status-on-hold { background: #fef3c7; color: #92400e; }
.lxr-status-under-review { background: #dbeafe; color: #1e40af; }
.lxr-status-contacted { background: #ede9fe; color: #5b21b6; }
.lxr-status-scheduled { background: #d1fae5; color: #065f46; }
.lxr-status-none { background: #f3f4f6; color: #6b7280; }
