/* Appellation Quote Request - frontend form (scoped to avoid theme overrides) */
/* Wrapper and isolation - only these styles apply inside the shortcode */
#quote-form-main-wrapper.appellation-quote-isolate {
	background-color: rgba(42, 57, 96, 1);
	padding: 10px 15px;
	border-radius: 8px;
	max-width: 550px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

#quote-form-main-wrapper.appellation-quote-isolate,
#quote-form-main-wrapper.appellation-quote-isolate * {
	box-sizing: border-box;
}

/* Reset form elements so theme styles do not override */
#quote-form-main-wrapper.appellation-quote-isolate input,
#quote-form-main-wrapper.appellation-quote-isolate select,
#quote-form-main-wrapper.appellation-quote-isolate button {
	font-family: inherit;
	font-size: inherit;
	line-height: 1.5;
	margin: 0;
}

#quote-form-main-wrapper.appellation-quote-isolate .form-control {
	margin-top: 6px;
	display: block;
	width: 100%;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	-webkit-appearance: none;
	appearance: none;
}

#quote-form-main-wrapper.appellation-quote-isolate select.form-control {
	max-height: 35px;
	color: #212529;
	background-color: #fff;
}

/* Opciones del dropdown visibles en Chrome (evitar texto blanco heredado del tema) */
#quote-form-main-wrapper.appellation-quote-isolate select.form-control option,
#quote-form-main-wrapper.appellation-quote-isolate select option,
#quote-form-main-wrapper.appellation-quote-isolate .elementor-select-wrapper select option {
	background-color: #fff !important;
	color: #212529 !important;
}

#quote-form-main-wrapper.appellation-quote-isolate select,
#quote-form-main-wrapper.appellation-quote-isolate .elementor-select-wrapper select {
	color: #212529 !important;
	background-color: #fff !important;
}

#quote-form-main-wrapper.appellation-quote-isolate label {
	margin: 0 0 0 10px;
	font-weight: bold;
	display: none;
}

/* Form layout and typography */
#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm p {
	font-weight: 600;
	font-size: 16px;
	color: #fff;
	margin: 0 0 1rem;
}

#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm input {
	margin: 5px 0;
}

#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm select {
	max-height: 35px;
	color: #212529;
	background-color: #fff;
}

#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm .card-body {
	max-width: 97.3%;
}

/* Buttons */
#quote-form-main-wrapper.appellation-quote-isolate .styled-button {
	background-color: #196BCA;
	color: #fff;
	font-family: Trebuchet MS, sans-serif;
	font-size: 18px;
	font-weight: 800;
	padding: 14px 15px;
	border: 0;
	border-radius: 10px;
	display: inline-block;
	cursor: pointer;
}

#quote-form-main-wrapper.appellation-quote-isolate .styled-button:hover {
	background-color: #5482d0;
}

#quote-form-main-wrapper.appellation-quote-isolate .next,
#quote-form-main-wrapper.appellation-quote-isolate .prev,
#quote-form-main-wrapper.appellation-quote-isolate .send {
	width: 100px;
	margin: 0;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	border-radius: 0.25rem;
	border: 1px solid transparent;
	cursor: pointer;
}

#quote-form-main-wrapper.appellation-quote-isolate .next,
#quote-form-main-wrapper.appellation-quote-isolate .btn-send {
	background-color: #0d6efd;
	color: #fff;
}

#quote-form-main-wrapper.appellation-quote-isolate .prev {
	background-color: #6c757d;
	color: #fff;
}

/* Grid spacing */
#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm .col-6 {
	padding: 0 5px;
}

#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm .col-12 {
	padding: 0 5px;
}

/* Error state */
#quote-form-main-wrapper.appellation-quote-isolate .input-error {
	box-shadow: 0 0 5px red;
}

/* Loading state */
#quote-form-main-wrapper.appellation-quote-isolate .appellation-loading-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
}

#quote-form-main-wrapper.appellation-quote-isolate .appellation-loading-container p {
	margin-top: 1rem;
	color: #fff;
	font-weight: 400;
}

#quote-form-main-wrapper.appellation-quote-isolate .appellation-loading-container .spinner {
	width: 11.2px;
	height: 11.2px;
	border-radius: 11.2px;
	box-shadow: 28px 0 0 0 rgba(71, 75, 255, 0.2),
		22.7px 16.5px 0 0 rgba(71, 75, 255, 0.4),
		8.68px 26.6px 0 0 rgba(71, 75, 255, 0.6),
		-8.68px 26.6px 0 0 rgba(71, 75, 255, 0.8),
		-22.7px 16.5px 0 0 #474bff;
	animation: appellation-spinner 1s infinite linear;
}

@keyframes appellation-spinner {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 768px) {
	#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm input {
		margin: 2px 0 5px 0;
	}
	#quote-form-main-wrapper.appellation-quote-isolate #quoteRequestForm select {
		margin-left: 0;
	}
	#quote-form-main-wrapper.appellation-quote-isolate #qs_packaging_details {
		margin-left: 0;
	}
}
