/**
 * Attila Métier — formulaires de contact.
 *
 * Reproduction au pixel des formulaires Avada du live (fusion-form 71 / 17650 /
 * 34390) : valeurs relevées sur attila.fr (styles calculés, 15 largeurs d'écran).
 * Toutes les propriétés sont explicites et scopées sous .atm-form pour un rendu
 * identique sous Avada (live) et sous le thème custom (Tailwind).
 * Points de rupture Avada : medium ≤ 1024px, small ≤ 768px.
 *
 * @package Attila_Metier
 */

/* ==========================================================================
   Section « fiche agence » (fond crème au-dessus du pied de page)
   ========================================================================== */
.atm-agency-section {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 100px 160px 132px;
	background-color: #fef4ec;
	clear: both;
}

/* Avada : la section remplace un conteneur Fusion pleine largeur (marges négatives du gabarit 100 %). */
.width-100 .atm-agency-section {
	width: auto;
	margin-left: var(--hundredp_padding-hundred_percent_negative_margin, -60px);
	margin-right: var(--hundredp_padding-hundred_percent_negative_margin, -60px);
}

.atm-agency-section__inner {
	box-sizing: border-box;
	max-width: 1160px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.atm-agency-section {
		padding: 50px 40px 102px;
	}
}

/* Avada : à 768px exactement, l'espacement bas de la section est plus court. */
@media (min-width: 768px) and (max-width: 768px) {
	.atm-agency-section {
		padding-bottom: 82px;
	}
}

/* Carte des landings (formulaire « bilan » dans le hero), comme sur Avada. */
.atm-landing-card {
	box-sizing: border-box;
	padding: 60px 63px 83px;
	border-radius: 20px;
	background-color: #f4f4f4;
}

@media (max-width: 768px) {
	.atm-landing-card {
		padding: 30px 20px 40px;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */
.atm-form,
.atm-form *,
.atm-form *::before,
.atm-form *::after {
	box-sizing: border-box;
}

.atm-form {
	width: 100%;
	font-family: area-normal, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.72;
	letter-spacing: 0.24px;
	color: #141617;
	text-align: left;
}

.atm-form .atm-form__form {
	margin: 0;
	padding: 0;
	border: 0;
}

.atm-form .atm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.atm-form .atm-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   Titre (typographie responsive Avada : 40px, fluide en medium et small)
   ========================================================================== */
.atm-form .atm-form__title-wrap {
	margin: 0 0 60px;
	padding: 0;
	text-align: center;
}

.atm-form .atm-form__title {
	margin: 0;
	padding: 0;
	font-family: area-normal, Arial, Helvetica, sans-serif;
	/* !important : sous Avada, le script de typographie responsive retraite tous les h2. */
	font-size: 40px !important;
	font-weight: 900;
	font-style: normal;
	line-height: 1.5 !important;
	letter-spacing: -0.015em;
	text-transform: none;
	text-align: center;
	color: #b70e0c;
}

.atm-form--bilan .atm-form__title-wrap {
	margin-bottom: 20px;
}

.atm-form .atm-form__highlight {
	padding: 1px 6px;
	border-radius: 10px;
	background-color: #bc0a09;
	color: #ffffff;
}

.atm-form .atm-form__highlight b {
	font-weight: 900;
}

@media (max-width: 1024px) {
	.atm-form .atm-form__title {
		font-size: calc(11.1303px + 2.81931vw) !important;
	}
}

@media (max-width: 768px) {
	.atm-form .atm-form__title-wrap,
	.atm-form--bilan .atm-form__title-wrap {
		margin-bottom: 10px;
	}

	.atm-form .atm-form__title {
		font-size: calc(4.7624px + 4.58824vw) !important;
	}
}

/* ==========================================================================
   Grille (colonnes Avada : gouttière 35px)
   ========================================================================== */
.atm-form .atm-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin: 0 -17.5px;
}

.atm-form .atm-col {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: flex-start;
	width: var(--atm-w-l, 100%);
	min-width: 0;
	padding: 0 17.5px;
}

@media (max-width: 1024px) {
	.atm-form .atm-col {
		width: var(--atm-w-m, 100%);
	}
}

@media (max-width: 768px) {
	.atm-form .atm-col {
		width: var(--atm-w-s, 100%);
	}
}

/* ==========================================================================
   Champs
   ========================================================================== */
.atm-form .atm-field {
	position: relative;
	width: 100%;
	clear: both;
	margin: 16px 0;
}

.atm-form .atm-input-icon {
	position: relative;
}

.atm-form .atm-icon {
	position: absolute;
	z-index: 6;
	top: 50%;
	left: 16px;
	height: 1em;
	font-size: 16px;
	color: #141617;
	transform: translateY(-50%);
	pointer-events: none;
}

.atm-form .atm-input {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px 0 40px;
	border: 1px solid #f2f3f5;
	border-radius: 30px;
	background-color: #ffffff;
	box-shadow: none;
	outline: 0;
	font-family: area-normal, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: normal;
	color: #141617;
	vertical-align: middle;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.2s ease;
}

.atm-form .atm-input::placeholder {
	color: rgba(89, 103, 110, 0.8);
	opacity: 1;
}

.atm-form .atm-input:focus {
	border-color: #b70e0c;
	outline: 0;
	box-shadow: none;
}

/* Select (Civilité) */
.atm-form .atm-select-wrap {
	position: relative;
}

.atm-form .atm-select {
	position: relative;
	z-index: 5;
	cursor: pointer;
	text-overflow: "";
	background-image: none;
}

.atm-form .atm-select-arrow {
	position: absolute;
	z-index: 10;
	top: 50%;
	right: 16px;
	display: flex;
	align-items: center;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

.atm-form .atm-select-arrow svg {
	display: block;
}

/* Textarea */
.atm-form .atm-textarea {
	height: auto;
	min-height: 0;
	padding: 16px 16px 16px 40px;
	line-height: normal;
	resize: both;
}

.atm-form .atm-field--textarea .atm-icon {
	top: 19.2px;
	transform: none;
}

/* ==========================================================================
   Boutons radio en « pastilles » (Je suis un / Besoin pour)
   ========================================================================== */
.atm-form .atm-field--radio {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
}

.atm-form .atm-field__label-wrap {
	display: block;
}

.atm-form .atm-field__label {
	display: inline-block;
	margin: 0 0 10.4px;
	font-size: 16px;
	line-height: normal;
	color: #141617;
}

.atm-form .atm-required {
	border: 0;
	text-decoration: underline dotted;
	cursor: help;
}

.atm-form fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.atm-form .atm-radio {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	min-width: 200px;
	margin: 0 24px 0 0;
	padding: 15px 20px;
	border-radius: 40px;
	background: #ffffff;
}

.atm-form .atm-radio:last-child {
	margin-right: 0;
}

.atm-form .atm-radio input,
.atm-form .atm-checkbox input {
	position: absolute;
	width: 14px;
	height: 14px;
	margin: 0;
	opacity: 0;
}

.atm-form .atm-radio label {
	position: relative;
	display: inline;
	margin: 0;
	padding: 0 25px 0 21.44px;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	color: #b70e0c;
	cursor: pointer;
}

.atm-form .atm-radio label::before,
.atm-form .atm-radio label::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	border-radius: 3px;
	transform: translateY(-50%) rotate(45deg);
	transition: all 0.2s ease;
}

.atm-form .atm-radio label::before {
	min-width: 13px;
	height: 13px;
	border: 1px solid #b70e0c;
}

.atm-form .atm-radio label::after {
	width: 14px;
	height: 14px;
}

.atm-form .atm-radio input:checked + label::after {
	background-color: #b70e0c;
}

.atm-form .atm-radio input:focus-visible + label::before,
.atm-form .atm-checkbox input:focus-visible + label::before {
	box-shadow: 0 0 0 3px rgba(183, 14, 12, 0.25);
}

/* Devis : libellé et pastilles sur une ligne sur grand écran. */
@media (min-width: 1421px) {
	.atm-form .atm-field--inline-xl {
		flex-direction: row;
		align-items: center;
	}
}

@media (max-width: 1420px) {
	.atm-form .atm-radio {
		min-width: 17.5vw;
	}
}

@media (max-width: 1343px) {
	.atm-form .atm-radio {
		min-width: 17.4vw;
	}
}

@media (max-width: 1326px) {
	.atm-form .atm-radio {
		min-width: 17.3vw;
	}
}

@media (max-width: 1308px) {
	.atm-form .atm-radio {
		min-width: 0;
	}
}

@media (max-width: 1162px) {
	.atm-form .atm-field--radio fieldset {
		width: 100%;
	}

	.atm-form .atm-radio {
		width: 100%;
		min-width: 0;
		margin-right: 0;
	}

	.atm-form .atm-radio:first-child {
		margin-bottom: 10px;
	}
}

/* ==========================================================================
   Consentement RGPD
   ========================================================================== */
.atm-form .atm-checkbox {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	margin-right: 24px;
}

.atm-form .atm-checkbox label {
	position: relative;
	display: block;
	margin: 0;
	padding: 0 0 0 21.44px;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	color: #141617;
	cursor: pointer;
}

.atm-form .atm-checkbox label::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	min-width: 13px;
	height: 13px;
	border: 1px solid #b70e0c;
	border-radius: 4px;
	transform: translateY(-50%);
	transition: all 0.2s ease;
}

.atm-form .atm-checkbox input:checked + label::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 4px;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: #b70e0c;
	transform: translateY(-50%);
}

/* ==========================================================================
   Bouton d'envoi
   ========================================================================== */
.atm-form .atm-field--submit {
	text-align: center;
}

.atm-form .atm-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px 30px;
	border: 0 solid #ffffff;
	border-radius: 50px;
	background: #b70e0c;
	box-shadow: none;
	font-family: area-normal, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0.24px;
	text-decoration: none;
	text-transform: none;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.2s;
}

.atm-form .atm-button:hover,
.atm-form .atm-button:focus {
	background: #58666d;
	color: #ffffff;
}

.atm-form .atm-button[disabled] {
	opacity: 0.5;
	cursor: wait;
}

.atm-form .atm-button__text {
	color: inherit;
}

.atm-form .atm-button__icon {
	display: inline-block;
	height: 1em;
	margin-left: 11.2px;
	color: inherit;
	transition: all 0.2s;
}

/* ==========================================================================
   Messages (alertes Avada centrées, bordure, bouton de fermeture encadré)
   ========================================================================== */
.atm-form .atm-form__notices {
	margin: 0;
}

.atm-form .atm-alert {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	clear: both;
	margin: 0 0 20px;
	padding: 25px;
	border: 1px solid currentColor;
	border-radius: 0;
	font-size: 16px;
	line-height: 1.72;
	text-align: center;
}

.atm-form .atm-alert[hidden] {
	display: none;
}

.atm-form .atm-alert--success {
	color: #12b878;
	background-color: rgba(18, 184, 120, 0.1);
}

.atm-form .atm-alert--error {
	color: #db4b68;
	background-color: rgba(219, 75, 104, 0.1);
}

.atm-form .atm-alert__icon {
	display: inline-flex;
	margin-right: 10px;
	color: inherit;
}

.atm-form .atm-alert__icon svg {
	width: 1em;
	height: 1em;
}

.atm-form .atm-alert__content {
	color: inherit;
}

.atm-form .atm-alert__close {
	position: absolute;
	top: -1px;
	right: -1px;
	box-sizing: content-box;
	width: 25px;
	height: 25px;
	margin: 0;
	padding: 0;
	border: 1px solid;
	border-color: inherit;
	border-top-width: 0;
	border-right-width: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 700;
	line-height: 25px;
	color: inherit;
	cursor: pointer;
	transition: all 0.2s;
}

/* reCAPTCHA v3 : badge masqué, comme sur les formulaires Avada. */
.grecaptcha-badge {
	visibility: hidden;
}

/* ==========================================================================
   Autocomplétion d'adresse (BAN) — styles repris d'attila-mail-router
   ========================================================================== */
.ban-autocomplete-wrapper {
	position: relative;
}

.ban-suggestions {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #f2f3f5;
	max-height: 250px;
	overflow-y: auto;
	z-index: 99999;
	border-radius: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.ban-suggestion {
	padding: 10px 20px;
	cursor: pointer;
	font-size: 14px;
}

.ban-suggestion:hover {
	background: #f2f3f5;
	border-radius: 20px;
}
