.ed-form-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 10px;
	border-bottom: 2px solid #ccc;
	background: #f9f9f9;
	position: sticky;
	top: 0;
	z-index: 999;
}

.ed-form-title {
	margin: 0;
	font-size: 1.5em;
}

.ed-total {
	font-weight: bold;
	font-size: 1.2em;
	color: #333;
	padding: 4px 0;
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	z-index: 10000;
	padding: 12px 12px;
}

.ed-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	z-index: 9999;
}

.ed-modal {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	width: min(100%, 420px);
	max-width: 420px;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
}

.ed-modal h2 {
	margin-top: 0;
	margin-bottom: 12px;
	line-height: 1.3;
}

.ed-modal p {
	margin-top: 0;
	margin-bottom: 14px;
}

.ed-modal label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.ed-modal input:not([type="checkbox"]):not([type="radio"]),
.ed-modal textarea,
.ed-modal select {
	width: 100%;
	margin-bottom: 12px;
	padding: 8px;
	box-sizing: border-box;
}

.ed-modal textarea {
	min-height: 100px;
	resize: vertical;
}

.ed-modal-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.ed-modal-actions button {
	flex: 1 1 0;
}

@media (max-width: 980px) {
	.ed-modal-overlay {
		padding: 10px;
		align-items: flex-start;
		overflow-y: auto;
	}

	.ed-modal {
		width: 100%;
		max-width: 100%;
		max-height: calc(100dvh - 20px);
		padding: 16px;
		margin-top: 10px;
		border-radius: 8px;
	}

	.ed-modal-actions {
		flex-direction: column;
	}

	.ed-modal-actions button {
		width: 100%;
	}

	.ed-modal input:not([type="checkbox"]):not([type="radio"]),
	.ed-modal textarea,
	.ed-modal select {
		font-size: 16px;
	}
}

.mdsqe-preview-wrap {
	max-width: 760px;
	margin-left: 32px;
	margin-right: auto;
}

@media (max-width: 980px) {
	.mdsqe-preview-wrap {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}


.ed-form-wrapper {
	line-height: 1.6;
}

.ed-form-wrapper input,
.ed-form-wrapper select,
.ed-form-wrapper textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

/* Status sous les boutons (succès/erreur/en cours) */
#ed-confirm-form .mdsqe-submit-status {
	margin-top: 12px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
	border-radius: 6px;
	font-size: 14px;
}

#ed-confirm-form .mdsqe-submit-status.is-success {
	border-color: #00a32a;
	background: #edfaef;
}

#ed-confirm-form .mdsqe-submit-status.is-error {
	border-color: #d63638;
	background: #fcf0f1;
}

#ed-confirm-form .mdsqe-submit-status.is-busy {
	border-color: #2271b1;
	background: #f0f6fc;
}

/* Bouton en cours d’envoi */
#ed-confirm-form button.is-busy {
	opacity: 0.75;
	cursor: not-allowed;
}

/* Petit spinner inline */
#ed-confirm-form .mdsqe-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	vertical-align: -2px;
	margin-right: 8px;
	animation: mdsqeSpin 0.8s linear infinite;
}

@keyframes mdsqeSpin {
	to { transform: rotate(360deg); }
}

.mdsqe-phone-field {
	display: flex;
	gap: 10px;
	align-items: center;
}

.mdsqe-phone-country {
	flex: 0 0 120px;
	min-width: 120px;
}

.mdsqe-phone-number {
	flex: 1 1 auto;
	min-width: 0;
}

.mdsqe-phone-help {
	margin-top: 6px;
	font-size: 13px;
	color: #b32d2e;
}

@media (max-width: 600px) {
	.mdsqe-phone-field {
		flex-direction: column;
		align-items: stretch;
	}

	.mdsqe-phone-country {
		flex: 1 1 auto;
		width: 100%;
	}
}

.mdsqe-preview-banner {
	background: #fff8e5;
	border: 1px solid #ffb900;
	color: #7c5a00;
	padding: 10px 14px;
	margin: 0 0 16px;
	border-radius: 4px;
	font-size: 13px;
}

@media (max-width: 980px) {
	.ed-field-header,
	.ed-group-header {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
	}

	.ed-field-header .ed-label,
	.ed-group-title,
	.ed-group-description {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.ed-field-header input[type="text"],
	.ed-group-header input[type="text"],
	.ed-group-header textarea,
	.ed-options input[type="text"],
	.ed-options input[type="number"],
	.ed-option-item input[type="text"],
	.ed-option-item input[type="number"] {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.ed-options li,
	.ed-option-item {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.ed-field-header button,
	.ed-group-header button {
		flex: 0 0 auto;
	}
}