﻿/* ==================================
   NEOSEARCH MODAL - Luxury Design
   ================================== */

.modal-overlay-neosearch {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(26, 26, 26, 0.95);
	backdrop-filter: blur(8px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 20px;
}

.modal-overlay-neosearch.active {
	opacity: 1;
	visibility: visible;
}

.modal-container-neosearch {
	background: #FFFFFF;
	width: 100%;
	max-width: 1200px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 20px;
	position: relative;
	transform: translateY(30px) scale(0.95);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.modal-overlay-neosearch.active .modal-container-neosearch {
	transform: translateY(0) scale(1);
}

/* Header du Modal */
.modal-header-neosearch {
	background: linear-gradient(135deg, #1A1A1A 0%, #2c2c2c 100%);
	padding: 50px 60px;
	border-radius: 20px 20px 0 0;
	position: relative;
	border-bottom: 3px solid #073a8d;
}

.modal-header-neosearch::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 60px;
	width: 100px;
	height: 3px;
	background: #FFFFFF;
}

.modal-close-neosearch {
	position: absolute;
	top: 25px;
	right: 25px;
	width: 50px;
	height: 50px;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.modal-close-neosearch:hover {
	background: #073a8d;
	border-color: #073a8d;
	transform: rotate(90deg);
}

.modal-title-neosearch {
	font-family: 'Playfair Display', 'Georgia', serif;
	font-size: 42px;
	font-weight: 400;
	color: #FFFFFF;
	margin: 0 0 15px 0;
	letter-spacing: 1px;
}

.modal-subtitle-neosearch {
	font-family: 'Lato', 'Arial', sans-serif;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
	letter-spacing: 0.5px;
	line-height: 1.6;
}

/* Body du Modal */
.modal-body-neosearch {
	padding: 60px;
}

.form-section-neosearch {
	margin-bottom: 45px;
}

.form-section-neosearch:last-child {
	margin-bottom: 0;
}

.form-section-title-neosearch {
	font-family: 'Lato', 'Arial', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #073a8d;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid #E8E8E8;
	position: relative;
}

.form-section-title-neosearch::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 60px;
	height: 1px;
	background: #073a8d;
}

.form-row-neosearch {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	margin-bottom: 25px;
}

.form-row-neosearch.two-cols {
	grid-template-columns: repeat(2, 1fr);
}

.form-row-neosearch.three-cols {
	grid-template-columns: repeat(3, 1fr);
}

.form-group-neosearch {
	position: relative;
}

.form-label-neosearch {
	display: block;
	font-family: 'Lato', 'Arial', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: #1A1A1A;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

/* Inputs & Selects */
.form-control-neosearch,
.select2-neosearch {
	width: 100%;
	padding: 16px 20px;
	border: 1px solid #E8E8E8;
	border-radius: 8px;
	font-family: 'Lato', 'Arial', sans-serif;
	font-size: 14px;
	color: #1A1A1A;
	transition: all 0.3s ease;
	background: #FAFAFA;
}

.form-control-neosearch:focus,
.select2-neosearch:focus {
	outline: none;
	border-color: #073a8d;
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(7, 58, 141, 0.1);
}

.form-control-neosearch::placeholder {
	color: #999999;
	font-style: italic;
}

/* Select2 Override */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
	padding: 12px 20px;
	border: 1px solid #E8E8E8;
	border-radius: 8px;
	background: #FAFAFA;
	min-height: 50px;
	transition: all 0.3s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
	border-color: #073a8d;
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(7, 58, 141, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	font-family: 'Lato', 'Arial', sans-serif;
	font-size: 14px;
	color: #1A1A1A;
	line-height: 26px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #999999;
	font-style: italic;
}

/* Footer du Modal */
.modal-footer-neosearch {
	padding: 40px 60px;
	background: #FAFAFA;
	border-top: 1px solid #E8E8E8;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.btn-neosearch {
	padding: 16px 40px;
	border-radius: 10px;
	font-family: 'Lato', 'Arial', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	border: none;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.btn-primary-neosearch {
	background: #1A1A1A;
	color: white;
	flex: 1;
}

.btn-primary-neosearch::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: #073a8d;
	transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 0;
}

.btn-primary-neosearch:hover::before {
	left: 0;
}

.btn-primary-neosearch span {
	position: relative;
	z-index: 1;
}

.btn-primary-neosearch:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(26, 26, 26, 0.25);
}

.btn-secondary-neosearch {
	background: transparent;
	color: #1A1A1A;
	border: 2px solid #E8E8E8;
	border-radius: 10px;
	padding: 14px 38px;
}

.btn-secondary-neosearch:hover {
	background: #073a8d;
	color: white;
	border-color: #073a8d;
	transform: translateY(-2px);
}

/* Icon dans les boutons */
.btn-neosearch i {
	font-size: 14px;
	position: relative;
	z-index: 1;
}

/* Scrollbar Custom */
.modal-container-neosearch::-webkit-scrollbar {
	width: 8px;
}

.modal-container-neosearch::-webkit-scrollbar-track {
	background: #F5F5F5;
}

.modal-container-neosearch::-webkit-scrollbar-thumb {
	background: #073a8d;
	border-radius: 4px;
}

.modal-container-neosearch::-webkit-scrollbar-thumb:hover {
	background: #c8c6c9;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
	.modal-header-neosearch {
		padding: 40px 50px;
	}
	
	.modal-body-neosearch {
		padding: 50px;
	}
	
	.modal-footer-neosearch {
		padding: 35px 50px;
	}
	
	.modal-title-neosearch {
		font-size: 36px;
	}
	
	.form-row-neosearch {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.modal-overlay-neosearch {
		padding: 10px;
	}
	
	.modal-container-neosearch {
		max-height: 95vh;
	}
	
	.modal-header-neosearch {
		padding: 30px 25px;
	}
	
	.modal-header-neosearch::after {
		left: 25px;
		width: 60px;
	}
	
	.modal-title-neosearch {
		font-size: 28px;
		margin-bottom: 10px;
	}
	
	.modal-subtitle-neosearch {
		font-size: 13px;
	}
	
	.modal-close-neosearch {
		width: 45px;
		height: 45px;
		top: 20px;
		right: 20px;
		font-size: 20px;
	}
	
	.modal-body-neosearch {
		padding: 40px 25px;
	}
	
	.modal-footer-neosearch {
		padding: 25px;
		flex-direction: column;
	}
	
	.form-row-neosearch,
	.form-row-neosearch.two-cols,
	.form-row-neosearch.three-cols {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.btn-neosearch {
		width: 100%;
		justify-content: center;
	}
	
	.btn-primary-neosearch {
		order: 1;
	}
	
	.btn-secondary-neosearch {
		order: 2;
	}
}

@media (max-width: 576px) {
	.modal-header-neosearch {
		padding: 25px 20px;
	}
	
	.modal-body-neosearch {
		padding: 30px 20px;
	}
	
	.modal-footer-neosearch {
		padding: 20px;
	}
	
	.modal-title-neosearch {
		font-size: 24px;
	}
	
	.form-section-neosearch {
		margin-bottom: 35px;
	}
	
	.form-control-neosearch,
	.select2-neosearch {
		padding: 14px 16px;
		font-size: 13px;
	}
	
	.btn-neosearch {
		padding: 14px 30px;
		font-size: 11px;
	}
}