.rr-form-wrap {
	/* Resets défensifs : neutralisent les text-transform / letter-spacing
	   imposés par certains thèmes. Les réglages de l'écran Apparence
	   (variables --rr-*) restent prioritaires élément par élément. */
	letter-spacing: normal;
	text-transform: none;
	--rr-text: currentColor;
	--rr-surface: #fff;
	--rr-border: #d6d6d6;
	--rr-accent: #20283f;
	color: var(--rr-text);
	max-width: 1200px;
}

.rr-form,
.rr-form * {
	box-sizing: border-box;
}

.rr-form__title,
.rr-form__section-title {
	color: inherit;
	font-family: var(--rr-heading-font, inherit);
	margin: 0 0 1.25rem;
}

.rr-form__section-title {
	font-size: var(--rr-section-title-size, 22px);
	font-style: var(--rr-section-title-style, normal);
	font-weight: var(--rr-section-title-weight, 500);
	letter-spacing: var(--rr-section-title-spacing, 0);
	line-height: var(--rr-section-title-line-height, 1.3);
	margin-top: 2.5rem;
	text-transform: var(--rr-section-title-transform, none);
}

.rr-form__title {
	font-size: var(--rr-main-title-size, 36px);
	font-style: var(--rr-main-title-style, normal);
	font-weight: var(--rr-main-title-weight, 700);
	letter-spacing: var(--rr-main-title-spacing, 0);
	line-height: var(--rr-main-title-line-height, 1.2);
	text-transform: var(--rr-main-title-transform, none);
}

.rr-form__notice {
	background: rgba(255, 255, 255, 0.12);
	border-left: 4px solid currentColor;
	margin: 0 0 1.5rem;
	padding: 0.8rem 1rem;
}

.rr-form__notice--success {
	border-left-color: #237a3b;
}

.rr-form--success .rr-form__notice {
	font-size: 1.15em;
	line-height: 1.6;
	margin-bottom: 0;
	padding: 1.25rem 1.35rem;
}

.rr-form__notice--error {
	border-left-color: #a52a2a;
}

.rr-honeypot {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.rr-form__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.rr-field > span {
	font-family: var(--rr-label-font, inherit);
	font-size: var(--rr-label-size, 18px);
	font-style: var(--rr-label-style, normal);
	font-weight: var(--rr-label-weight, 600);
	letter-spacing: var(--rr-label-spacing, 0);
	line-height: var(--rr-label-line-height, 1.35);
	text-transform: var(--rr-label-transform, none);
}

.rr-field input,
.rr-field select,
.rr-field textarea {
	background: var(--rr-surface);
	border: 1px solid var(--rr-border);
	border-radius: 0;
	color: #242424;
	font: inherit;
	min-height: 54px;
	padding: 0.75rem 1rem;
	width: 100%;
}

.rr-field textarea {
	min-height: 110px;
	resize: vertical;
}

.rr-field--full {
	margin-top: 1rem;
}

.rr-phone-only {
	background: rgba(255, 255, 255, 0.12);
	border-left: 4px solid currentColor;
	margin: 1.25rem 0;
	padding: 0.8rem 1rem;
}

.rr-phone-only p {
	margin: 0.25rem 0;
}

.rr-phone-only a {
	color: inherit;
	font-weight: 700;
}

.rr-form--phone-only .rr-form__section-title,
.rr-form--phone-only .rr-form__grid--contact,
.rr-form--phone-only .rr-field--full,
.rr-form--phone-only .rr-consent,
.rr-form--phone-only .rr-submit {
	display: none;
}

.rr-consent {
	text-transform: none;
	/* Interlettrage aligné sur le réglage "Libellés" de l'écran Apparence,
	   protégé contre les letter-spacing globaux des thèmes (cas Pommette). */
	letter-spacing: var(--rr-label-spacing, 0) !important;
	align-items: flex-start;
	display: flex;
	font-size: 0.95rem;
	gap: 0.7rem;
	margin: 1.5rem 0;
}

.rr-consent input {
	flex: 0 0 auto;
	margin-top: 0.25rem;
}

.rr-submit {
	/* !important : les couleurs de l'écran Apparence doivent gagner
	   contre les styles de bouton des thèmes (cas Pommette). */
	background: var(--rr-button-bg, var(--rr-surface)) !important;
	border: 1px solid var(--rr-border);
	color: var(--rr-button-text, #242424) !important;
	cursor: pointer;
	font-family: var(--rr-button-font, inherit);
	font-size: var(--rr-button-size, 16px);
	font-style: var(--rr-button-style, normal);
	font-weight: var(--rr-button-weight, 600);
	letter-spacing: var(--rr-button-spacing, 0);
	line-height: var(--rr-button-line-height, 1.2);
	opacity: 1;
	padding: 0.9rem 1.5rem;
	text-transform: var(--rr-button-transform, none);
}

.rr-submit:disabled {
	cursor: wait;
	opacity: 0.65;
}

.rr-submit:hover {
	background: var(--rr-button-hover-bg, #20283f) !important;
	color: var(--rr-button-hover-text, #fff) !important;
}

@media (max-width: 767px) {
	.rr-form__grid {
		grid-template-columns: 1fr;
	}

	.rr-form__section-title {
		margin-top: 2rem;
	}
}

/* Les enfants du bloc de consentement (texte, lien politique de
   confidentialité) suivent le même interlettrage, quoi qu'impose le thème. */
.rr-consent * {
	letter-spacing: inherit !important;
}

/* Caution no-show (S4) : champ carte bancaire Stripe, affiché seulement
   quand une règle s'applique à la réservation en cours. */
.rr-deposit:not([hidden]) {
	background: var(--rr-surface);
	border: 1px solid var(--rr-border);
	border-left: 3px solid var(--rr-button-bg, #242424);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
	padding: 1rem 1.25rem;
}

.rr-deposit__notice {
	font: inherit;
	margin: 0;
}

.rr-deposit__card {
	background: #fff;
	border: 1px solid var(--rr-border);
	padding: 0.9rem 1rem;
}

.rr-deposit__error {
	color: #a52a2a;
	font-size: 0.9em;
	margin: 0;
}

/* Champ date visible (créé par Flatpickr) : toujours affiché, quels que
   soient les styles du thème sur les champs en lecture seule ou ajoutés
   par script (cas Dudule, widget flottant sur mobile). */
.rr-form-wrap .rr-field input.rr-date-display {
	background: var(--rr-surface) !important;
	border: 1px solid var(--rr-border) !important;
	color: #242424 !important;
	-webkit-text-fill-color: #242424;
	display: block !important;
	height: auto !important;
	min-height: 54px !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: 100% !important;
	cursor: pointer;
}

.rr-form-wrap .rr-field input.rr-date-display::placeholder {
	color: #767676;
	-webkit-text-fill-color: #767676;
	opacity: 1;
}

.rr-form-wrap .rr-field input.flatpickr-input[type="hidden"] {
	display: none !important;
}

/* Champs de saisie : fond et couleur de texte stables au clic/focus, quels
   que soient les styles :focus du thème (cas Dudule : fond transparent et
   texte blanc dès qu'on clique dans Nom / E-mail / Téléphone / Message). */
.rr-form-wrap .rr-field input:not([type="hidden"]):not(:disabled),
.rr-form-wrap .rr-field select:not(:disabled),
.rr-form-wrap .rr-field textarea:not(:disabled),
.rr-form-wrap .rr-field input:not([type="hidden"]):not(:disabled):focus,
.rr-form-wrap .rr-field select:not(:disabled):focus,
.rr-form-wrap .rr-field textarea:not(:disabled):focus,
.rr-form-wrap .rr-field input:not([type="hidden"]):not(:disabled):focus-visible,
.rr-form-wrap .rr-field textarea:not(:disabled):focus-visible,
.rr-form-wrap .rr-field input:not([type="hidden"]):not(:disabled):active {
	background: var(--rr-surface) !important;
	border: 1px solid var(--rr-border) !important;
	color: #242424 !important;
	-webkit-text-fill-color: #242424;
	opacity: 1 !important;
}

.rr-form-wrap .rr-field input::placeholder,
.rr-form-wrap .rr-field textarea::placeholder {
	color: #767676;
	-webkit-text-fill-color: #767676;
	opacity: 1;
}

/* Saisie automatique du navigateur (Chrome/Safari) : même fond, même texte. */
.rr-form-wrap .rr-field input:-webkit-autofill,
.rr-form-wrap .rr-field input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px var(--rr-surface) inset !important;
	-webkit-text-fill-color: #242424 !important;
}

/* Demandes de groupe */
.rr-group-notice{margin:0 0 18px;padding:12px 16px;border-left:4px solid var(--rr-button-bg,#20283f);background:rgba(0,0,0,.04);font-family:var(--rr-label-font);font-size:var(--rr-label-size,15px);line-height:1.5}
.rr-group-notice p{margin:0}
.rr-form--phone-only .rr-group-notice{display:none}
.rr-form [hidden]{display:none!important}

/* Événements (sur devis) */
.rr-request-type{margin:0 0 16px;padding:0;border:0}
.rr-request-type legend{font-family:var(--rr-label-font);font-size:var(--rr-label-size,15px);font-weight:600;margin:0 0 8px}
.rr-request-type__option{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;margin:0 0 8px;border:1px solid rgba(0,0,0,.18);border-radius:8px;cursor:pointer;font-family:var(--rr-label-font);font-size:var(--rr-label-size,15px)}
.rr-request-type__option:has(input:checked){border-color:var(--rr-button-bg,#20283f);background:rgba(0,0,0,.03)}
.rr-request-type__option input{margin:4px 0 0}
.rr-request-type__option strong{display:block}
.rr-request-type__option small{display:block;opacity:.75;font-size:.9em}
.rr-form--event .rr-field--callback{display:none!important}

/* Accord explicite caution (PAY-04) */
.rr-deposit__consent{display:flex;gap:10px;align-items:flex-start;margin:12px 0 0;font-family:var(--rr-label-font);font-size:calc(var(--rr-label-size,15px) - 1px);line-height:1.45}
.rr-deposit__consent input{margin-top:4px;flex:0 0 auto}
