.fb-brevo-form {
	--fb-brevo-field-gap: 10px;
	--fb-brevo-grid-gutter-x: 14px;
}

.fb-brevo-form__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

/* Espacement vertical unique : gap du conteneur + row-gap dans chaque ligne de champs */
.fb-brevo-form__inner {
	display: flex;
	flex-direction: column;
	gap: var(--fb-brevo-field-gap);
}

.fb-brevo-form__inner > .row {
	margin-top: 0;
	margin-bottom: 0;
}

.fb-brevo-form__inner .fb-brevo-form__field {
	margin-bottom: 0;
}

.fb-brevo-form--bootstrap .fb-brevo-form__control-wrap,
.fb-brevo-form--bootstrap .fb-brevo-form__select-wrap:not(.fb-brevo-form__select-wrap--phone-dial),
.fb-brevo-form--bootstrap p.sib-email-area {
	margin: 0;
}

.fb-brevo-form__inner {
	width: 100%;
	max-width: 100%;
}

.fb-brevo-form__inner > .fb-brevo-form__grid,
.fb-brevo-form__inner > .fb-brevo-form__message-row {
	--bs-gutter-x: var(--fb-brevo-grid-gutter-x);
	--bs-gutter-y: 0;
}

.fb-brevo-form__inner > .fb-brevo-form__grid {
	row-gap: var(--fb-brevo-field-gap);
	align-items: stretch;
}

.fb-brevo-form__grid > [class*='col-'] {
	margin-top: 0;
	min-width: 0;
}

/* Champs : pleine largeur de colonne, bords alignés entre les lignes */
.fb-brevo-form__grid > [class*='col-'] > .fb-brevo-form__field {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.fb-brevo-form__field .fb-brevo-form__control-wrap,
.fb-brevo-form__field .fb-brevo-form__select-wrap,
.fb-brevo-form__field .fb-brevo-form__phone,
.fb-brevo-form__field .fb-brevo-form__number-stepper {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.fb-brevo-form__field .fb-brevo-form__control-wrap {
	margin: 0;
	padding: 0;
}

.fb-brevo-form__field .fb-brevo-form__input,
.fb-brevo-form__field .fb-brevo-form__select,
.fb-brevo-form__field select.fb-brevo-form__select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Placeholders visibles (certains thèmes billetterie ciblent .email-address uniquement) */
.fb-brevo-form__input::placeholder {
	opacity: 1;
}

.email-input .fb-brevo-form__field--text .fb-brevo-form__input::placeholder,
.email-input .fb-brevo-form__field--phone .fb-brevo-form__phone-number::placeholder,
.email-input .fb-brevo-form__field--country select.fb-brevo-form__select.fb-brevo-form__select--empty {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.9rem;
}

.fb-brevo-form select.fb-brevo-form__select.fb-brevo-form__select--empty {
	color: #6c757d;
}

.fb-brevo-form select.fb-brevo-form__select:not(.fb-brevo-form__select--empty) {
	color: inherit;
}

.fb-brevo-form__field-error {
	color: #b32d2e;
	font-size: 0.875rem;
	margin: 4px 0 0;
}

.fb-brevo-form textarea.fb-brevo-form__input {
	resize: none;
}

.fb-brevo-form__section-title {
	margin-bottom: 0;
	line-height: 1.3;
}

.fb-brevo-form__html-block {
	margin: 0;
	line-height: 1.45;
}

.fb-brevo-form__number-stepper {
	display: flex;
	align-items: stretch;
	gap: 0;
	width: 100%;
	min-height: calc(2.375rem + 2px);
}

.fb-brevo-form__number-stepper .fb-brevo-form__number-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 100%;
	height: auto;
	text-align: center;
	-moz-appearance: textfield;
}

.fb-brevo-form__number-stepper .fb-brevo-form__number-input::-webkit-outer-spin-button,
.fb-brevo-form__number-stepper .fb-brevo-form__number-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fb-brevo-form__number-btn {
	flex: 0 0 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #ced4da;
	background: #f8f9fa;
	color: #212529;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.fb-brevo-form--bootstrap .fb-brevo-form__number-btn {
	min-height: 100%;
	align-self: stretch;
}

.fb-brevo-form__number-btn:first-child {
	border-radius: 4px 0 0 4px;
}

.fb-brevo-form__number-btn:last-child {
	border-radius: 0 4px 4px 0;
}

.fb-brevo-form__number-stepper .fb-brevo-form__number-input {
	border-radius: 0;
}

.fb-brevo-form__message-row {
	margin-top: 0;
}

.fb-brevo-form__message.alert {
	margin-bottom: 0;
	padding: 12px 10px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-size: 1rem;
	line-height: 1.45;
}

.fb-brevo-form__success-after {
	padding-left: 0;
	padding-right: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.fb-brevo-form__success-banner-row > .col-12,
.fb-brevo-form__success-body-row > .col-12 {
	padding-left: 8px;
	padding-right: 8px;
}

.fb-brevo-form__success-banner.alert {
	margin-bottom: 10px;
	padding: 12px 10px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-size: 1rem;
	line-height: 1.45;
	color: #0f5132;
	background-color: #d1e7dd;
	border-color: #badbcc;
}

.fb-brevo-form__success-body-row,
.fb-brevo-form__success-body-col,
.fb-brevo-form__success-body {
	margin-top: 10px;
	padding: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: inherit;
}

/* Contenu WYSIWYG après envoi (typo / gras / listes — priorité sur le thème modal) */
.fb-brevo-form__success-body.fb-brevo-form__richtext p {
	display: block;
	margin: 0 0 10px;
}

.fb-brevo-form__success-body.fb-brevo-form__richtext > :last-child {
	margin-bottom: 0;
}

.fb-brevo-form__success-body.fb-brevo-form__richtext strong,
.fb-brevo-form__success-body.fb-brevo-form__richtext b {
	font-weight: 700;
}

.fb-brevo-form__success-body.fb-brevo-form__richtext ul,
.fb-brevo-form__success-body.fb-brevo-form__richtext ol {
	display: block;
	margin: 0 0 10px;
	padding-left: 20px;
}

.fb-brevo-form__success-body.fb-brevo-form__richtext li {
	display: list-item;
	margin-bottom: 4px;
}

.fb-brevo-form__success-body.fb-brevo-form__richtext a {
	text-decoration: underline;
}

/* WYSIWYG : jamais de bandeau vert sur le corps du message */
.fb-brevo-form__success-body .alert,
.fb-brevo-form__success-body .alert-success {
	margin: 0 0 10px;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: inherit !important;
}

.fb-brevo-form__message-row > .col-12 {
	padding-left: calc(var(--fb-brevo-grid-gutter-x) * 0.5);
	padding-right: calc(var(--fb-brevo-grid-gutter-x) * 0.5);
}

.fb-brevo-form__message[hidden] {
	display: none !important;
}

/* Fallback si le thème ne charge pas les utilitaires Bootstrap alert */
.fb-brevo-form__success-after:not([hidden]) {
	display: block;
}

.fb-brevo-form--submitted .fb-brevo-form__inner,
.fb-brevo-form--submitted .fb-brevo-form__header {
	display: none;
}

/* Ancien conteneur (CSS custom éventuel) : ne pas englober tout le succès en vert */
.fb-brevo-form__success-panel {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.fb-brevo-form__message.alert-success,
.fb-brevo-form__message.is-success {
	color: #0f5132;
	background-color: #d1e7dd;
	border-color: #badbcc;
}

.fb-brevo-form__message.alert-danger,
.fb-brevo-form__message.is-error {
	color: #842029;
	background-color: #f8d7da;
	border-color: #f5c2c7;
}

.fb-brevo-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 6px;
	cursor: pointer;
}

.fb-brevo-form__checkbox-input {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	min-width: 1rem;
	min-height: 1rem;
	margin: 2px 0 0;
	padding: 0;
	box-sizing: border-box;
	appearance: auto;
	accent-color: currentColor;
}

.fb-brevo-form__checkbox-text {
	flex: 1;
	min-width: 0;
	font-size: 0.875rem;
	line-height: 1.4;
}

/* Thèmes / Bootstrap : éviter qu’une règle globale sur input.form-control agrandisse la case opt-in */
.fb-brevo-form__field--checkbox input[type="checkbox"],
.fb-brevo-form--bootstrap .fb-brevo-form__field--checkbox input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	min-height: 0;
	max-width: 1rem;
}

.fb-brevo-form__radio-group {
	border: 0;
	margin: 0;
	padding: 0;
}

.fb-brevo-form__radio {
	display: block;
	margin-bottom: 8px;
}

.fb-brevo-form__legend {
	margin: 0 0 8px;
	font-weight: 600;
}

.fb-required {
	color: #b32d2e;
}

.fb-brevo-form__submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.fb-brevo-form__control-wrap {
	margin: 0;
}

.fb-brevo-form--bootstrap .fb-brevo-form__col-submit .fb-brevo-form__submit-wrap {
	margin: 0;
}

.fb-brevo-form__footer {
	margin-top: 14px;
}

.fb-brevo-form__footer.cgv,
.fb-brevo-form__footer .cgv {
	font-size: 0.875rem;
}

.fb-brevo-form__phone {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid #ced4da;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
}

.fb-brevo-form--bootstrap .fb-brevo-form__phone {
	border-color: var(--bs-border-color, #ced4da);
}

.fb-brevo-form__phone-prefix {
	flex: 0 0 auto;
	border-right: 1px solid #ced4da;
	max-width: none;
}

.fb-brevo-form__phone-dial-display {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 28px 0 10px;
	background-color: #f8f9fa;
	font-size: 1rem;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}

.fb-brevo-form__phone-prefix--flag .fb-brevo-form__select-wrap--phone-dial {
	min-width: 52px;
}

.fb-brevo-form__phone-prefix--dial .fb-brevo-form__select-wrap--phone-dial {
	min-width: 64px;
}

.fb-brevo-form__phone-prefix--both .fb-brevo-form__select-wrap--phone-dial {
	min-width: 78px;
}

.fb-brevo-form__phone-dial--native {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	color: transparent;
	background: transparent;
}

.fb-brevo-form__phone-dial {
	border: none;
	border-radius: 0;
	box-shadow: none;
	height: 100%;
	min-height: 38px;
	padding-left: 10px;
	padding-right: 24px;
	background-color: #f8f9fa;
}

.fb-brevo-form__phone-number {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	height: 100%;
	min-height: 38px;
}

.fb-brevo-form__phone:focus-within {
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.fb-brevo-form__select-wrap {
	position: relative;
	margin: 0;
}

.fb-brevo-form__field--phone .fb-brevo-form__select-wrap--phone-dial {
	margin: 0;
	height: 100%;
	min-height: 38px;
	width: auto;
}

.fb-brevo-form__select-wrap select.fb-brevo-form__input,
.fb-brevo-form__select-wrap select.fb-brevo-form__phone-dial:not(.fb-brevo-form__phone-dial--native) {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: none;
	padding-right: 36px;
}

.fb-brevo-form__select-wrap--phone-dial select.fb-brevo-form__phone-dial--native {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 0;
}

.fb-brevo-form__select-chevron {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	pointer-events: none;
	color: #495057;
	line-height: 1;
	font-size: 1rem;
}

.fb-brevo-form__select-wrap--phone-dial .fb-brevo-form__select-chevron {
	right: 8px;
	font-size: 0.875rem;
}

/* Grille admin (ex. 6/12) : pleine largeur sur mobile (filet si le thème surcharge Bootstrap) */
@media (max-width: 767.98px) {
	.fb-brevo-form .row > [class*='col-md-'] {
		flex: 0 0 100%;
		max-width: 100%;
		width: 100%;
	}

	.fb-brevo-form__message.alert {
		padding-left: 8px;
		padding-right: 8px;
	}

	.fb-brevo-form__success-banner-row > .col-12,
	.fb-brevo-form__success-body-row > .col-12 {
		padding-left: 4px;
		padding-right: 4px;
	}
}
