/**
 * NEF Inquiry Form Styles
 *
 * @package NEF_Platform_Core
 * @since 1.0.0
 */

/* ==========================================================================
   1. Form Wrapper & Container
   ========================================================================== */

.nef-inquiry-form-wrapper {
	max-width: 800px;
	margin: 40px auto;
	padding: 0;
}

.nef-inquiry-form-container {
	background: #ffffff;
	border-radius: 8px;
	padding: 40px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nef-inquiry-form-container h3 {
	margin: 0 0 12px 0;
	font-size: 24px;
	font-weight: 600;
	color: #111827;
}

.nef-inquiry-description {
	margin: 0 0 32px 0;
	color: #6b7280;
	font-size: 16px;
	line-height: 1.6;
}

/* ==========================================================================
   2. Price Range Display
   ========================================================================== */

.nef-inquiry-price-range {
	background: #f9fafb;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
	border: 1px solid #e5e7eb;
}

.nef-inquiry-price-range h3 {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #374151;
}

.nef-price-display {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nef-price {
	font-size: 24px;
	font-weight: 500;
	color: #919281;
	display: inline-block;
}

/* ==========================================================================
   3. External Link Section
   ========================================================================== */

.nef-inquiry-external {
	margin-bottom: 32px;
}

.nef-btn-external {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #111827;
	color: #ffffff;
	padding: 14px 24px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: none;
}

.nef-btn-external:hover {
	background: #374151;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nef-btn-external svg {
	width: 16px;
	height: 16px;
}

.nef-inquiry-divider {
	margin: 24px 0;
	text-align: center;
	position: relative;
}

.nef-inquiry-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e5e7eb;
}

.nef-inquiry-divider span {
	position: relative;
	background: #ffffff;
	padding: 0 16px;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
}

/* ==========================================================================
   4. Form Elements
   ========================================================================== */

.nef-inquiry-form {
	margin: 0;
}

.nef-form-row {
	margin-bottom: 20px;
}

.nef-form-row-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.nef-form-group {
	margin-bottom: 0;
}

.nef-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
}

.nef-form-group .required {
	color: #ef4444;
	margin-left: 2px;
}

.nef-form-control {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	line-height: 1.5;
	color: #111827;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	transition: all 0.2s ease;
	font-family: inherit;
}

.nef-form-control:focus {
	outline: none;
	border-color: #D5B22A;
	box-shadow: 0 0 0 3px rgba(213, 178, 42, 0.1);
}

.nef-form-control::placeholder {
	color: #9ca3af;
}

textarea.nef-form-control {
	resize: vertical;
	min-height: 120px;
}

/* ==========================================================================
   5. Form Actions & Buttons
   ========================================================================== */

.nef-form-actions {
	margin-top: 32px;
}

.nef-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.nef-btn-primary {
	background: #D5B22A;
	color: #ffffff;
}

.nef-btn-primary:hover:not(:disabled) {
	background: #919281;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(145, 146, 129, 0.3);
}

.nef-btn-primary:active:not(:disabled) {
	transform: translateY(0);
}

.nef-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   6. Loading Spinner
   ========================================================================== */

.nef-spinner {
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   7. Feedback Messages
   ========================================================================== */

.nef-form-feedback {
	margin-top: 20px;
	padding: 16px 20px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.6;
	font-weight: 500;
}

.nef-feedback-success {
	background: #d1fae5;
	color: #065f46;
	border-left: 4px solid #10b981;
}

.nef-feedback-error {
	background: #fee2e2;
	color: #991b1b;
	border-left: 4px solid #ef4444;
}

/* ==========================================================================
   8. Validation States
   ========================================================================== */

.nef-form-control.error {
	border-color: #ef4444;
}

.nef-form-control.error:focus {
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.nef-form-control.success {
	border-color: #10b981;
}

.nef-form-control.success:focus {
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   9. Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
	.nef-inquiry-form-wrapper {
		margin: 24px 0;
	}

	.nef-inquiry-form-container {
		padding: 24px;
	}

	.nef-inquiry-form-container h3 {
		font-size: 20px;
	}

	.nef-inquiry-description {
		font-size: 14px;
	}

	.nef-form-row-2col {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.nef-price {
		font-size: 28px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.nef-inquiry-form-container {
		padding: 20px;
		border-radius: 6px;
	}

	.nef-inquiry-price-range {
		padding: 16px;
	}

	.nef-inquiry-form-container h3 {
		font-size: 18px;
	}

	.nef-price {
		font-size: 24px;
	}

	.nef-form-control {
		padding: 10px 14px;
		font-size: 16px; /* Prevent zoom on iOS */
	}

	.nef-btn {
		width: 100%;
		padding: 12px 24px;
	}

	.nef-btn-external {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   10. Accessibility
   ========================================================================== */

/* Focus visible (keyboard navigation) */
.nef-form-control:focus-visible {
	outline: 2px solid #D5B22A;
	outline-offset: 2px;
}

.nef-btn:focus-visible {
	outline: 2px solid #D5B22A;
	outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.nef-form-control,
	.nef-btn,
	.nef-btn-external {
		transition: none !important;
	}

	.nef-spinner {
		animation: none !important;
	}

	.nef-btn-primary:hover {
		transform: none;
	}
}

/* High contrast mode */
@media (prefers-contrast: high) {
	.nef-form-control {
		border-width: 2px;
	}

	.nef-btn {
		border: 2px solid currentColor;
	}
}

/* ==========================================================================
   11. Print Styles
   ========================================================================== */

@media print {
	.nef-inquiry-form-wrapper {
		display: none;
	}
}

/* ==========================================================================
   12. Integration with Elementor
   ========================================================================== */

/* When used in Elementor widgets */
.elementor-widget .nef-inquiry-form-wrapper {
	margin: 0;
}

/* When used in Elementor containers */
.elementor-element .nef-inquiry-form-container {
	box-shadow: none; /* Let Elementor handle shadows */
}

/* ==========================================================================
   13. Book Now CTA (For Non-Logged In Users)
   ========================================================================== */

.nef-inquiry-cta {
	background: #ffffff;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nef-inquiry-cta .nef-inquiry-message {
	font-size: 18px;
	color: #111827;
	margin: 0 0 24px 0;
	font-weight: 500;
}

.nef-inquiry-cta .nef-inquiry-book-btn {
	font-size: 18px;
	padding: 16px 48px;
	margin-bottom: 16px;
}

.nef-inquiry-cta .nef-inquiry-note {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

.nef-inquiry-cta .nef-inquiry-note small {
	font-size: 14px;
}

/* ==========================================================================
   14. Step Header
   ========================================================================== */

.nef-inquiry-step-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.nef-inquiry-step-header .nef-step-number {
	background: #D5B22A;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 20px;
	display: inline-block;
}

.nef-inquiry-step-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #111827;
}

/* ==========================================================================
   15. Thank You Message
   ========================================================================== */

.nef-inquiry-thank-you {
	background: #ffffff;
	border-radius: 8px;
	padding: 60px 40px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nef-inquiry-thank-you .nef-thank-you-icon {
	margin: 0 0 24px 0;
}

.nef-inquiry-thank-you .nef-thank-you-icon svg {
	display: inline-block;
}

.nef-inquiry-thank-you h3 {
	font-size: 28px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 16px 0;
}

.nef-inquiry-thank-you p {
	font-size: 16px;
	color: #6b7280;
	margin: 0 0 32px 0;
	line-height: 1.6;
}

.nef-inquiry-thank-you .nef-thank-you-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.nef-inquiry-thank-you .nef-thank-you-actions .nef-btn {
	min-width: 180px;
}

@media (max-width: 640px) {
	.nef-inquiry-thank-you {
		padding: 40px 24px;
	}

	.nef-inquiry-thank-you h3 {
		font-size: 24px;
	}

	.nef-inquiry-thank-you .nef-thank-you-actions {
		flex-direction: column;
	}

	.nef-inquiry-thank-you .nef-thank-you-actions .nef-btn {
		width: 100%;
	}
}
