.ldp-devis {
	--ldp-devis-bg: #383838;
	--ldp-devis-accent: #0F559D;
	width: 100%;
}

/* Le conteneur Elementor parent (widget "Shortcode") a souvent un style
   inline width:max-content (réglage "Content Width" du container Elementor).
   Valeur alignée sur la prod. */
.e-con-inner:has( > .elementor-widget-shortcode .ldp-devis ) {
	width: max-content;
}

.ldp-devis__bar {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	flex-wrap: wrap;
	align-items: stretch;
	background: var(--ldp-devis-bg);
}

.ldp-devis__field {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 18px 24px;
	border: 1px solid #ffffff;
	margin-left: -1px;
}

.ldp-devis__field:first-child {
	margin-left: 0;
}

.ldp-devis__label {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.ldp-devis__select {
	appearance: none;
	color-scheme: dark;
	background: transparent
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%230574b9' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		right center / 16px no-repeat;
	border: none;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 2px 22px 2px 0;
	cursor: pointer;
}

.ldp-devis__select:focus,
.ldp-devis__select:focus-visible {
	outline: none;
}

.ldp-devis__select option {
	background: var(--ldp-devis-bg);
	color: #fff;
}

.ldp-devis__submit {
	flex: 1 1 180px;
	margin-left: -1px;
	padding: 18px 24px;
	background: var(--ldp-devis-accent);
	color: #fff;
	border: 1px solid #ffffff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ldp-devis__submit:hover {
	background: #045e97;
}

@media (max-width: 900px) {
	.ldp-devis__field,
	.ldp-devis__submit {
		flex: 1 1 45%;
		margin-left: 0;
		margin-top: -1px;
	}

	.ldp-devis__submit {
		flex: 1 1 100%;
	}
}

/* Popup */

.ldp-devis__popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 20, 30, 0.6);
	z-index: 100000;
}

.ldp-devis__popup-panel {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100001;
	background: #fff;
	border-radius: 10px;
	width: min(560px, 92vw);
	max-height: 88vh;
	overflow-y: auto;
	padding: 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Le formulaire Elementor embarqué (elementor_template_id) doit se dimensionner
   à son contenu plutôt que d'être étiré à la largeur de la popup. */
.ldp-devis__contact-form .e-con-inner {
	width: max-content;
	max-width: 100%;
}

.ldp-devis__popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: #f1f1f2;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #454545;
}

.ldp-devis__popup-panel h3 {
	margin-top: 0;
}

.ldp-devis__recap {
	list-style: none;
	margin: 0 0 24px;
	padding: 16px;
	background: #f7f8fa;
	border-radius: 8px;
	font-size: 14px;
}

.ldp-devis__recap li {
	padding: 4px 0;
}

.ldp-devis__recap li strong {
	color: #0574b9;
}

.ldp-devis__placeholder {
	color: #6b7684;
	font-style: italic;
}

body.ldp-devis-lock-scroll {
	overflow: hidden;
}
