/* Personalized Quote Modal Styles */

/* Modal Overlay */
.modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(12px);
	animation: fadeIn 0.3s ease;
}

.modal.show {
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Modal Content */
.modal-content {
	background: linear-gradient(135deg, #1a0040 0%, #2A007A 100%);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	padding: 48px;
	max-width: 600px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
	animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Close Button */
.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 32px;
	font-weight: 700;
	color: #A06BFF;
	cursor: pointer;
	background: none;
	border: none;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
	line-height: 1;
	padding: 0;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #D9C5FF;
	transform: scale(1.1);
}

/* Modal Headings */
.modal h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #C9E1FF;
	text-transform: lowercase;
}

.modal > p {
	font-size: 16px;
	line-height: 1.6;
	opacity: 0.9;
	margin-bottom: 32px;
	font-family: 'Manrope', sans-serif;
	color: #F2F2F6;
}

.modal h4 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #A06BFF;
	text-transform: lowercase;
}

.modal h5 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #C9E1FF;
	text-transform: lowercase;
}

/* View Steps */
.view-step {
	display: none;
	animation: fadeIn 0.3s ease;
}

.view-step.active {
	display: block;
}

/* Service Menu */
.service-menu {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.service-menu-item {
	background: rgba(255, 255, 255, 0.04);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.service-menu-item:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #6500FF;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(101, 0, 255, 0.2);
}

.service-menu-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.service-menu-content h4 {
	margin: 0;
	color: #F2F2F6;
	font-size: 20px;
}

.service-menu-content svg {
	stroke: #A06BFF;
	flex-shrink: 0;
}

.service-menu-item:hover .service-menu-content svg {
	stroke: #D9C5FF;
	transform: translateX(4px);
}

/* Back Button */
.back-to-menu {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid rgba(255, 255, 255, 0.1);
	color: #C9E1FF;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-bottom: 24px;
	text-transform: lowercase;
}

.back-to-menu:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #6500FF;
}

.back-to-menu svg {
	stroke: #A06BFF;
}

/* Service Options Grid */
.service-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 24px 0 32px;
}

.service-option-card {
	position: relative;
	background: rgba(255, 255, 255, 0.04);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 20px 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: block;
}

.service-option-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #6500FF;
	transform: translateY(-2px);
}

.service-option-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.service-option-card.selected {
	background: rgba(101, 0, 255, 0.15);
	border-color: #6500FF;
}

.option-card-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.option-card-content h5 {
	margin: 0;
	font-size: 15px;
	color: #F2F2F6;
	flex: 1;
}

.checkmark {
	width: 24px;
	height: 24px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.service-option-card.selected .checkmark {
	background: #6500FF;
	border-color: #6500FF;
}

.checkmark svg {
	stroke: transparent;
	transition: stroke 0.2s ease;
}

.service-option-card.selected .checkmark svg {
	stroke: white;
}

/* Selected Services Summary */
.selected-summary {
	background: rgba(101, 0, 255, 0.1);
	border: 1px solid rgba(101, 0, 255, 0.3);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}

.summary-section h5 {
	margin: 0 0 12px;
	color: #A06BFF;
}

.summary-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.summary-section li {
	padding: 6px 0;
	color: #F2F2F6;
	font-size: 14px;
	line-height: 1.6;
}

.summary-section strong {
	color: #C9E1FF;
}

/* Form Groups */
.form-group {
	margin-bottom: 24px;
}

.form-group label {
	display: block;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #C9E1FF;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: #FFFFFF;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #6500FF;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(101, 0, 255, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.form-group select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23A06BFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	padding-right: 48px;
}

.modal-submit {
	background: linear-gradient(135deg, #6500FF, #003CDE);
	color: #fff;
	box-shadow: 0 4px 20px rgba(101, 0, 255, 0.3);
}

.modal-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 30px rgba(101, 0, 255, 0.5);
}

.modal-back {
	background: rgba(255, 255, 255, 0.05);
	color: #C9E1FF;
	border: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-back:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #6500FF;
}

/* Messages */
.form-message {
	margin-top: 20px;
	padding: 16px;
	border-radius: 8px;
	text-align: center;
	font-family: 'Manrope', sans-serif;
	display: none;
}

.form-message.success {
	background: rgba(23, 195, 178, 0.15);
	border: 1px solid #17C3B2;
	color: #17C3B2;
	display: block;
}

.form-message.error {
	background: rgba(215, 38, 61, 0.15);
	border: 1px solid #D7263D;
	color: #FF7A85;
	display: block;
}

.no-services {
	text-align: center;
	padding: 32px;
	color: #CCCCD6;
	font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
	.modal-content {
		padding: 32px 24px;
		max-height: 90vh;
	}
	
	.modal h3 {
		font-size: 24px;
	}
	
	.service-menu {
		grid-template-columns: 1fr;
	}
	
	.service-options-grid {
		grid-template-columns: 1fr;
	}
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
	width: 8px;
}

.modal-content::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
	background: rgba(160, 107, 255, 0.5);
	border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
	background: rgba(160, 107, 255, 0.7);
}
