/**
 * Phantom Realty Engine - Master Search Forms Stylesheet
 * Consolidated search form styles from pre-search.css and search-forms.css
 * Comprehensive styles for all search form templates and variations
 * Uses CSS Custom Properties from Client Branding feature
 * 
 * @package PhantomRealtyEngine
 * @subpackage CSS-Modules
 * @version 2.0.0
 * @order 05
 * @depends 01-variables.css, 02-base.css, 03-components.css
 * @brand Ghostly Labs - Enterprise Real Estate Solutions
 */

/* =============================================================================
   CSS CUSTOM PROPERTIES - WordPress Presets with Client Color Fallbacks
   ============================================================================= */
:root {
	/* WordPress Preset Colors → Client Colors → Hardcoded Fallbacks */
	--primary: var(--wp--preset--color--primary, var(--client-primary, #3ab24a));
	--accent: var(--wp--preset--color--secondary, var(--client-accent, #2a8935));
	--text: var(--wp--preset--color--contrast, var(--client-text, #1e293b));
	--background: var(--wp--preset--color--base, var(--client-background, #ffffff));
	--border: var(--wp--preset--color--outline, var(--client-border, #e1e8ed));
	--light: var(--wp--preset--color--base-2, var(--client-light, #f8f9fa));
	--button-text: var(--wp--preset--color--base, var(--client-button-text, #ffffff));
	
	/* Search-specific variables */
	--search-shadow: rgba(0, 0, 0, 0.1);
	--search-radius: 8px;
	--search-transition: all 0.3s ease;
}

/* =============================================================================
   GLOBAL SEARCH FORM BASE STYLES
   ============================================================================= */
.pre-search-form {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, sans-serif;
	box-sizing: border-box;
	line-height: 1.6;
	width: 100%;
	position: relative;
}

.pre-search-form *,
.pre-search-form *::before,
.pre-search-form *::after {
	box-sizing: inherit;
}

.pre-search-form input,
.pre-search-form select,
.pre-search-form button {
	font-family: inherit;
	outline: none;
	transition: var(--search-transition);
}

.pre-search-form input:focus,
.pre-search-form select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* =============================================================================
   BASE SEARCH CONTAINER - FROM PRE-SEARCH.CSS
   ============================================================================= */

.pre-search-container {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 2px 8px var(--search-shadow);
	font-family: inherit;
}

/* =============================================================================
   FORM ROWS AND LAYOUT - FROM PRE-SEARCH.CSS
   ============================================================================= */

.pre-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
	align-items: flex-end;
}

.pre-search-row:last-child {
	margin-bottom: 0;
}

.pre-field {
	flex: 1;
	min-width: 200px;
	position: relative;
}

/* Field-specific sizing */
.pre-field-submit {
	flex: 0 0 auto;
	min-width: auto;
}

.pre-field-clear {
	flex: 0 0 auto;
	min-width: auto;
}

.pre-field-sort {
	flex: 0 0 250px;
	min-width: 200px;
}

/* =============================================================================
   FORM ELEMENTS - CONSOLIDATED
   ============================================================================= */

.pre-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--text);
	font-size: 14px;
	line-height: 1.4;
}

.pre-input,
.pre-select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--border);
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: var(--background);
	transition: var(--search-transition);
	box-sizing: border-box;
}

.pre-input:focus,
.pre-select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
	background: var(--light);
}

.pre-input::placeholder {
	color: var(--text);
	opacity: 0.6;
	font-style: italic;
}

/* Select-specific styling */
.pre-select {
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	padding-right: 45px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.pre-select::-ms-expand {
	display: none;
}

/* Checkbox styling */
.pre-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 15px;
	margin-top: 28px;
	padding: 8px 0;
	color: #2c3e50;
	font-weight: 500;
}

.pre-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	accent-color: var(--primary);
}

.pre-checkbox-text {
	user-select: none;
}

/* =============================================================================
   LAYOUT VARIATIONS - FROM PRE-SEARCH.CSS
   ============================================================================= */

/* Compact Layout */
.pre-search-layout-compact .pre-search-compact {
	align-items: center;
	flex-wrap: nowrap;
}

.pre-search-layout-compact .pre-field {
	min-width: auto;
	margin-bottom: 0;
}

.pre-search-layout-compact .pre-field-keyword {
	flex: 2.5;
	min-width: 250px;
}

.pre-search-layout-compact .pre-field-location {
	flex: 2;
	min-width: 200px;
}

.pre-search-layout-compact .pre-field-property-type {
	flex: 1.5;
	min-width: 150px;
}

.pre-search-layout-compact .pre-field-submit {
	flex: 0 0 auto;
}

.pre-search-layout-compact .pre-label {
	display: none;
}

/* Horizontal Layout */
.pre-search-layout-horizontal .pre-search-row {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 5px;
}

.pre-search-layout-horizontal .pre-field {
	flex: 0 0 auto;
	min-width: 200px;
	max-width: 250px;
}

/* =============================================================================
   SEARCH RESULTS CONTAINER - FROM PRE-SEARCH.CSS
   ============================================================================= */

.pre-search-results {
	margin-top: 30px;
}

.pre-search-loading,
.pre-search-error,
.pre-no-results {
	text-align: center;
	padding: 60px 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.pre-search-loading p,
.pre-search-error p,
.pre-no-results p {
	margin: 0;
	font-size: 16px;
	color: #6c757d;
}

.pre-search-loading {
	background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: pre-loading 1.5s infinite;
}

.pre-search-error {
	background: #fff5f5;
	border-color: #fed7d7;
}

.pre-search-error p {
	color: #e53e3e;
}

@keyframes pre-loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* =============================================================================
   LOADING STATES - FROM PRE-SEARCH.CSS
   ============================================================================= */

.pre-search-form.loading {
	pointer-events: none;
	position: relative;
}

.pre-search-form.loading::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.8);
	z-index: 10;
	border-radius: 8px;
}

.pre-search-form.loading .pre-btn-text {
	opacity: 0;
}

.pre-search-form.loading .pre-btn-loading {
	opacity: 1;
}

/* =============================================================================
   FIELD-SPECIFIC ENHANCEMENTS - FROM PRE-SEARCH.CSS
   ============================================================================= */

/* Price fields */
.pre-field-price-min,
.pre-field-price-max {
	position: relative;
}

.pre-field-price-min::before,
.pre-field-price-max::before {
	content: "$";
	position: absolute;
	left: 16px;
	bottom: 14px;
	color: #95a5a6;
	font-weight: 600;
	z-index: 1;
	pointer-events: none;
}

/* Bedrooms/Bathrooms indicators */
.pre-field-bedrooms .pre-select,
.pre-field-bathrooms .pre-select {
	background-color: #f8f9fa;
}

/* Keywords field enhancement */
.pre-field-keyword .pre-input {
	font-weight: 500;
}

/* =============================================================================
   ADVANCED SEARCH TOGGLE - FROM PRE-SEARCH.CSS
   ============================================================================= */

.pre-advanced-toggle {
	text-align: center;
	margin: 20px 0 10px;
}

.pre-advanced-toggle button {
	background: none;
	border: none;
	color: #3498db;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.pre-advanced-toggle button:hover {
	background: #f8f9fa;
	color: #2980b9;
}

.pre-advanced-fields {
	display: none;
}

.pre-advanced-fields.show {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =============================================================================
   1. MODERN HERO SEARCH FORM
   ============================================================================= */
.pre-search-modern-hero {
	position: relative;
	min-height: 500px;
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--text) 100%
	);
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
	background-size: cover;
	background-position: center;
	color: white;
	overflow: hidden;
}

.pre-search-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pre-search-hero-content {
	max-width: 800px;
	padding: 40px 20px;
	text-align: center;
	width: 100%;
}

.pre-search-hero-title {
	font-size: 3rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.pre-search-hero-subtitle {
	font-size: 1.2rem;
	margin: 0 0 40px 0;
	opacity: 0.9;
}

.pre-search-hero-form {
	background: white;
	border-radius: var(--search-radius);
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	color: var(--text);
}

.pre-search-hero-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	align-items: end;
	margin-bottom: 20px;
}

.pre-search-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text);
}

.pre-search-field input,
.pre-search-field select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid var(--border);
	border-radius: var(--search-radius);
	font-size: 16px;
	background: var(--background);
}

.pre-search-price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pre-search-price-inputs input {
	flex: 1;
}

.pre-search-price-separator {
	font-weight: 600;
	color: var(--text);
}

.pre-search-btn-hero {
	background: var(--primary);
	color: var(--button-text);
	border: none;
	padding: 12px 30px;
	border-radius: var(--search-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
	transition: var(--search-transition);
}

.pre-search-btn-hero:hover {
	background: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px var(--search-shadow);
}

.pre-search-advanced-toggle {
	text-align: center;
	margin: 20px 0;
}

.pre-search-advanced-link {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.pre-search-advanced-link:hover {
	color: var(--accent);
}

.pre-search-advanced-fields {
	border-top: 1px solid var(--border);
	padding-top: 20px;
	margin-top: 20px;
}

.pre-search-advanced-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

/* =============================================================================
   2. MINIMALIST TABS SEARCH FORM
   ============================================================================= */
.pre-search-minimalist-tabs {
	max-width: 900px;
	margin: 0 auto;
	background: var(--background);
	border-radius: var(--search-radius);
	box-shadow: 0 5px 20px var(--search-shadow);
	overflow: hidden;
}

.pre-search-tabs-header {
	display: flex;
	background: var(--light);
	border-bottom: 1px solid var(--border);
}

.pre-search-tab {
	flex: 1;
	padding: 15px 20px;
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	color: var(--text);
	transition: var(--search-transition);
	border-bottom: 3px solid transparent;
}

.pre-search-tab.active,
.pre-search-tab:hover {
	background: var(--background);
	border-bottom-color: var(--primary);
	color: var(--primary);
}

.pre-search-tabs-content {
	padding: 30px;
}

.pre-search-tab-pane {
	display: none;
}

.pre-search-tab-pane.active {
	display: block;
}

.pre-search-minimal-fields {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: end;
}

.pre-search-location-input input {
	width: 100%;
	padding: 15px 20px;
	border: 2px solid var(--border);
	border-radius: var(--search-radius);
	font-size: 16px;
	background: var(--background);
}

.pre-search-field-group {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.pre-search-select {
	padding: 15px;
	border: 2px solid var(--border);
	border-radius: var(--search-radius);
	font-size: 16px;
	background: var(--background);
	min-width: 140px;
}

.pre-search-btn-minimal {
	background: var(--primary);
	color: var(--button-text);
	border: none;
	padding: 15px 20px;
	border-radius: var(--search-radius);
	font-size: 18px;
	cursor: pointer;
	transition: var(--search-transition);
}

.pre-search-btn-minimal:hover {
	background: var(--accent);
}

/* =============================================================================
   3. DETAILED DARK SEARCH FORM
   ============================================================================= */
.pre-search-detailed-dark {
	background: #1a1a1a;
	color: #ffffff;
	border-radius: var(--search-radius);
	overflow: hidden;
	max-width: 1000px;
	margin: 0 auto;
}

.pre-search-dark-container {
	padding: 40px;
}

.pre-search-dark-header {
	text-align: center;
	margin-bottom: 40px;
}

.pre-search-dark-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #ffffff;
}

.pre-search-dark-title i {
	color: var(--accent);
	margin-right: 15px;
}

.pre-search-dark-subtitle {
	font-size: 1.1rem;
	opacity: 0.8;
	margin: 0;
}

.pre-search-dark-sections {
	display: grid;
	gap: 30px;
}

.pre-search-dark-section {
	background: #2a2a2a;
	border-radius: var(--search-radius);
	padding: 25px;
	border-left: 4px solid var(--primary);
}

.pre-search-section-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: var(--primary);
}

.pre-search-dark-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.pre-search-dark-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #cccccc;
}

.pre-search-dark-field input,
.pre-search-dark-field select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #444444;
	border-radius: var(--search-radius);
	font-size: 16px;
	background: #333333;
	color: #ffffff;
}

.pre-search-dark-field input:focus,
.pre-search-dark-field select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(58, 178, 74, 0.2);
}

.pre-search-dark-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

.pre-search-checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 10px;
	border-radius: var(--search-radius);
	transition: var(--search-transition);
}

.pre-search-checkbox:hover {
	background: #333333;
}

.pre-search-checkbox input {
	margin-right: 10px;
	accent-color: var(--primary);
}

.pre-search-checkbox-text {
	color: #cccccc;
	font-weight: 500;
}

.pre-search-dark-actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 40px;
}

.pre-search-btn-reset {
	background: transparent;
	color: #cccccc;
	border: 2px solid #444444;
	padding: 15px 30px;
	border-radius: var(--search-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--search-transition);
}

.pre-search-btn-reset:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.pre-search-btn-dark {
	background: var(--primary);
	color: white;
	border: none;
	padding: 15px 40px;
	border-radius: var(--search-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: var(--search-transition);
}

.pre-search-btn-dark:hover {
	background: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   4. COMPACT INLINE SEARCH FORM
   ============================================================================= */
.pre-search-compact-inline {
	background: var(--background);
	border-radius: var(--search-radius);
	box-shadow: 0 2px 10px var(--search-shadow);
	padding: 20px;
	max-width: 100%;
}

.pre-search-inline-fields {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}

.pre-search-inline-field {
	flex: 1;
	min-width: 150px;
}

.pre-search-inline-input,
.pre-search-inline-select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid var(--border);
	border-radius: var(--search-radius);
	font-size: 16px;
	background: var(--background);
}

.pre-search-btn-inline {
	background: var(--primary);
	color: white;
	border: none;
	padding: 12px 25px;
	border-radius: var(--search-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: var(--search-transition);
}

.pre-search-btn-inline:hover {
	background: var(--accent);
}

/* =============================================================================
   5. CARD LAYOUT SEARCH FORM
   ============================================================================= */
.pre-search-card-layout {
	max-width: 600px;
	margin: 0 auto;
}

.pre-search-card {
	background: var(--background);
	border-radius: var(--search-radius);
	box-shadow: 0 10px 30px var(--search-shadow);
	overflow: hidden;
}

.pre-search-card-header {
	background: linear-gradient(
		135deg,
		var(--primary),
		var(--accent)
	);
	color: white;
	padding: 30px;
	text-align: center;
}

.pre-search-card-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 10px 0;
}

.pre-search-card-subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
	margin: 0;
}

.pre-search-card-body {
	padding: 30px;
}

.pre-search-card-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.pre-search-card-row:last-child {
	margin-bottom: 0;
}

.pre-search-field-full {
	grid-column: 1 / -1;
}

.pre-search-card-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text);
}

.pre-search-card-input,
.pre-search-card-select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid var(--border);
	border-radius: var(--search-radius);
	font-size: 16px;
	background: var(--background);
}

.pre-search-card-footer {
	background: #f8f9fa;
	padding: 20px 30px;
}

.pre-search-card-actions {
	display: flex;
	gap: 15px;
	justify-content: flex-end;
}

.pre-search-btn-secondary {
	background: transparent;
	color: var(--text);
	border: 2px solid var(--border);
	padding: 12px 25px;
	border-radius: var(--search-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--search-transition);
}

.pre-search-btn-secondary:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.pre-search-btn-card {
	background: var(--primary);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: var(--search-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: var(--search-transition);
}

.pre-search-btn-card:hover {
	background: var(--accent);
}

/* =============================================================================
   6. SIDEBAR VERTICAL SEARCH FORM
   ============================================================================= */
.pre-search-sidebar-vertical {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--search-radius);
	max-width: 300px;
	width: 100%;
}

.pre-search-sidebar-container {
	padding: 25px;
}

.pre-search-sidebar-header {
	margin-bottom: 25px;
	text-align: center;
}

.pre-search-sidebar-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--primary);
}

.pre-search-sidebar-fields {
	display: grid;
	gap: 20px;
	margin-bottom: 25px;
}

.pre-search-sidebar-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text);
	font-size: 14px;
}

.pre-search-sidebar-input,
.pre-search-sidebar-select {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid var(--border);
	border-radius: var(--search-radius);
	font-size: 14px;
	background: var(--background);
}

.pre-search-sidebar-actions {
	display: grid;
	gap: 10px;
}

.pre-search-btn-sidebar {
	background: var(--primary);
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: var(--search-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: var(--search-transition);
}

.pre-search-btn-sidebar:hover {
	background: var(--accent);
}

.pre-search-btn-sidebar-reset {
	background: transparent;
	color: var(--text);
	border: 2px solid var(--border);
	padding: 10px 20px;
	border-radius: var(--search-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--search-transition);
}

.pre-search-btn-sidebar-reset:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* =============================================================================
   7. SIMPLE MINIMAL SEARCH FORM
   ============================================================================= */
.pre-search-simple-minimal {
	background: var(--background);
	border-radius: 50px;
	box-shadow: 0 3px 15px var(--search-shadow);
	padding: 8px;
	max-width: 500px;
	margin: 0 auto;
}

.pre-search-minimal-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pre-search-minimal-input {
	flex: 1;
}

.pre-search-minimal-text {
	width: 100%;
	padding: 15px 25px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	background: transparent;
	color: var(--text);
}

.pre-search-minimal-text::placeholder {
	color: #999999;
}

.pre-search-minimal-button {
	background: var(--primary);
	color: white;
	border: none;
	padding: 15px 20px;
	border-radius: 50px;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	transition: var(--search-transition);
}

.pre-search-minimal-button:hover {
	background: var(--accent);
	transform: scale(1.05);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 992px) {
	.pre-search-container {
		padding: 20px;
	}

	.pre-search-row {
		gap: 15px;
	}

	.pre-field {
		min-width: 180px;
	}
}

@media (max-width: 768px) {
	.pre-search-container {
		padding: 15px;
		margin-bottom: 20px;
	}

	.pre-search-row {
		flex-direction: column;
		gap: 15px;
	}

	.pre-field {
		min-width: 100%;
		width: 100%;
	}

	.pre-search-layout-horizontal .pre-search-row {
		flex-direction: column;
	}

	.pre-search-layout-compact .pre-search-compact {
		flex-direction: column;
		align-items: stretch;
	}

	.pre-search-layout-compact .pre-label {
		display: block;
	}

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

	.pre-btn-clear {
		margin-left: 0;
		margin-top: 10px;
	}

	/* Hero form responsive */
	.pre-search-hero-title {
		font-size: 2rem;
	}

	.pre-search-hero-fields {
		grid-template-columns: 1fr;
	}

	/* Tabs responsive */
	.pre-search-tabs-header {
		flex-direction: column;
	}

	.pre-search-tab {
		border-bottom: none;
		border-left: 3px solid transparent;
	}

	.pre-search-tab.active,
	.pre-search-tab:hover {
		border-left-color: var(--primary);
	}

	/* Inline responsive */
	.pre-search-inline-fields {
		flex-direction: column;
	}

	.pre-search-inline-field {
		min-width: 100%;
	}
}

@media (max-width: 480px) {
	.pre-search-container {
		padding: 12px;
		border-radius: 6px;
	}

	.pre-input,
	.pre-select {
		padding: 10px 14px;
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.pre-btn {
		padding: 12px 20px;
		font-size: 14px;
	}

	.pre-checkbox-label {
		margin-top: 20px;
	}

	/* Form template responsive */
	.pre-search-hero-content {
		padding: 20px 15px;
	}

	.pre-search-hero-form {
		padding: 20px;
	}

	.pre-search-tabs-content {
		padding: 20px;
	}

	.pre-search-dark-container {
		padding: 20px;
	}

	.pre-search-dark-section {
		padding: 20px;
	}

	.pre-search-card-body {
		padding: 20px;
	}
}

/* =============================================================================
   HIGH DPI / RETINA SUPPORT
   ============================================================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.pre-select {
		background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	}
}

/* =============================================================================
   DARK MODE SUPPORT
   ============================================================================= */
@media (prefers-color-scheme: dark) {
	.pre-search-container {
		background: #2c3e50;
		border-color: #34495e;
		color: #ecf0f1;
	}

	.pre-label {
		color: #ecf0f1;
	}

	.pre-input,
	.pre-select {
		background: #34495e;
		border-color: #4a5f7a;
		color: #ecf0f1;
	}

	.pre-input::placeholder {
		color: #95a5a6;
	}

	.pre-input:focus,
	.pre-select:focus {
		background: #3d556b;
		border-color: #3498db;
	}

	.pre-search-loading,
	.pre-no-results {
		background: #34495e;
		border-color: #4a5f7a;
		color: #bdc3c7;
	}
}

/* =============================================================================
   JAVASCRIPT INTERACTION STYLES
   ============================================================================= */
.pre-search-form [data-loading="true"] {
	opacity: 0.6;
	pointer-events: none;
}

.pre-search-form .pre-search-error {
	color: #e74c3c;
	font-size: 14px;
	margin-top: 5px;
}

.pre-search-form .pre-search-success {
	color: #27ae60;
	font-size: 14px;
	margin-top: 5px;
}

/* =============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================= */
.pre-field:focus-within .pre-label {
	color: #3498db;
	font-weight: 700;
}

.pre-search-form *:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.pre-search-form button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pre-search-form input[aria-invalid="true"],
.pre-search-form select[aria-invalid="true"] {
	border-color: #e74c3c;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.pre-input,
	.pre-select {
		border-width: 3px;
	}

	.pre-btn-search {
		background: #000;
		color: #fff;
		border: 2px solid #fff;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.pre-input,
	.pre-select,
	.pre-btn {
		transition: none;
	}

	.pre-search-loading {
		animation: none;
	}

	.pre-advanced-fields {
		animation: none;
	}

	.pre-search-form * {
		transition: none;
		animation: none;
	}
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
	.pre-search-container {
		box-shadow: none;
		border: 1px solid #000;
	}

	.pre-btn {
		display: none;
	}

	.pre-search-form {
		background: white;
		color: black;
		box-shadow: none;
	}

	.pre-search-form button {
		display: none;
	}
}
