/**
 * Louis Contact Form Front-end Stylesheet
 * Independent from Divi Theme
 */

.lcf-form-wrapper {
	max-width: 680px;
	margin: 0 auto;
	padding: 2.5rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
	color: #1e293b;
	box-sizing: border-box;
}

.lcf-form-wrapper * {
	box-sizing: border-box;
}

.lcf-form-header {
	margin-bottom: 2rem;
	text-align: left;
}

.lcf-form-title {
	font-size: 1.875rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.lcf-form-subtitle {
	font-size: 1rem;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

.lcf-grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
	.lcf-grid-2 {
		grid-template-columns: 1fr 1fr;
	}
}

.lcf-field-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.25rem;
}

.lcf-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.5rem;
}

.lcf-label .lcf-required {
	color: #ef4444;
	margin-left: 0.25rem;
}

.lcf-input,
.lcf-select,
.lcf-textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-clip: padding-box;
	width: 100%;
	padding: 0.75rem 1rem !important;
	font-size: 0.95rem;
	font-family: inherit;
	color: #0f172a;
	background-color: rgba(244,212,61,0.34);
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	transition: all 0.2s ease-in-out;
	outline: none;
}

.lcf-input:focus,
.lcf-select:focus,
.lcf-textarea:focus {
	background-color: #ffffff;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lcf-textarea {
	min-height: 140px;
	resize: vertical;
}

/* Error State */
.lcf-has-error .lcf-input,
.lcf-has-error .lcf-select,
.lcf-has-error .lcf-textarea {
	border-color: #ef4444;
	background-color: #fef2f2;
}

.lcf-error-msg {
	font-size: 0.8125rem;
	color: #dc2626;
	margin-top: 0.375rem;
	display: block;
}

/* Honeypot Spam Field (Visually hidden) */
.lcf-hp-field {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -9999px !important;
}

/* Submit Button */
.lcf-submit-btn {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 0.875rem 1.75rem;
font-size: 1rem;
font-weight: 600;
color: #000000;
background-color: #f4d43d !important;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.lcf-submit-btn:hover {
	background-color: #0f172a;
}

.lcf-submit-btn:active {
	transform: scale(0.99);
}

.lcf-submit-btn:disabled {
	background-color: #94a3b8;
	cursor: not-allowed;
}

/* Banner Alert Feedback */
.lcf-response-banner {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
	display: none;
}

.lcf-response-banner.lcf-success {
	display: block;
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}
.lcf-field-group input,
.lcf-field-group select,
.lcf-field-group textarea {
	background-color: rgba(244, 212, 61, 0.34);
	padding: 0.75rem 1rem;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	font-family: inherit;
	font-size: 0.95rem;
	color: #0f172a;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-clip: padding-box;
}

.lcf-response-banner.lcf-error {
	display: block;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* Loading Spinner */
.lcf-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: lcf-spin 0.8s linear infinite;
	margin-right: 0.5rem;
	display: inline-block;
}
.lcf-select {
    padding: .5rem 1rem !important;
}
@keyframes lcf-spin {
	to {
		transform: rotate(360deg);
	}
}
