/* ==========================================================================
   LMHT Immobilier — Générateur de lettre de congé — v3.4
   Emplacement : houzez-child/assets/css/lmht-lettre-conge.css
   Tokens repris du formulaire « Obtenez une estimation »
   ========================================================================== */

.lmht-lc {
	--lc-accent:        #5C53F9;
	--lc-accent-soft:   #F3F2FF;
	--lc-accent-shadow: #E4E2FB;
	--lc-navy:          #0E1233;
	--lc-body:          #4A4A5E;
	--lc-muted:         #9B9BAA;
	--lc-field:         #F4F4F7;
	--lc-line:          #E4E4EF;
	--lc-card:          #FFFFFF;
	--lc-warning:       #B4501E;
	--lc-warning-soft:  #FDF2EC;

	--lc-radius-card:   24px;
	--lc-radius-box:    16px;
	--lc-radius-field:  12px;

	color: var(--lc-body);
	font-size: 16px;
	line-height: 1.6;
}

.lmht-lc *,
.lmht-lc *::before,
.lmht-lc *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------- Carte */

.lmht-lc__card {
	background: var(--lc-card);
	border-radius: var(--lc-radius-card);
	box-shadow: 0 18px 60px rgba(14, 18, 51, .07);
	padding: 48px;
}

.lmht-lc__head {
	text-align: center;
	margin-bottom: 44px;
}

.lmht-lc__title {
	color: var(--lc-navy);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 14px;
}

.lmht-lc__subtitle {
	color: var(--lc-body);
	font-size: 17px;
	margin: 0;
}

/* ------------------------------------------------------------- Colonnes */

.lmht-lc__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* -------------------------------------------------------- Champs & grille */

.lmht-lc__form {
	display: grid;
	gap: 26px;
	margin: 0;
}

.lmht-lc__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.lmht-lc__field {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.lmht-lc__field[hidden],
.lmht-lc__titulaire[hidden],
.lmht-lc__warning[hidden] {
	display: none;
}

.lmht-lc__label {
	color: var(--lc-navy);
	display: block;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
	padding: 0;
}

.lmht-lc__input,
.lmht-lc__select {
	background: var(--lc-field);
	border: 1px solid transparent;
	border-radius: var(--lc-radius-field);
	color: var(--lc-navy);
	display: block;
	font-family: inherit;
	font-size: 16px;
	padding: 17px 20px;
	transition: background-color .15s ease, border-color .15s ease;
	width: 100%;
}

.lmht-lc__input::placeholder {
	color: var(--lc-muted);
}

.lmht-lc__input:focus,
.lmht-lc__select:focus {
	background: var(--lc-card);
	border-color: var(--lc-accent);
	outline: 2px solid var(--lc-accent-shadow);
	outline-offset: 1px;
}

.lmht-lc__textarea {
	line-height: 1.5;
	resize: vertical;
}

.lmht-lc__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1233' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 18px center;
	background-repeat: no-repeat;
	background-size: 18px;
	padding-right: 48px;
}

.lmht-lc__hint {
	color: var(--lc-muted);
	font-size: 14px;
	line-height: 1.5;
	margin: 10px 0 0;
}

.lmht-lc__hint a {
	color: var(--lc-accent);
	text-decoration: underline;
}

.lmht-lc__warning {
	background: var(--lc-warning-soft);
	border-radius: 10px;
	color: var(--lc-warning);
	font-size: 14px;
	line-height: 1.5;
	margin: 10px 0 0;
	padding: 12px 14px;
}

/* ------------------------------------------------------------ Titulaires */

.lmht-lc__titulaire {
	min-width: 0;
}

.lmht-lc__titulaire-head {
	border-top: 1px solid var(--lc-line);
	color: var(--lc-navy);
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 18px;
	padding-top: 22px;
}

/* ------------------------------------------------- Cartes de choix (radio) */

.lmht-lc__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.lmht-lc__choice {
	cursor: pointer;
	display: block;
	margin: 0;
}

.lmht-lc__choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.lmht-lc__choice-inner {
	align-items: center;
	background: var(--lc-card);
	border: 1px solid var(--lc-line);
	border-radius: var(--lc-radius-box);
	box-shadow: 0 4px 0 var(--lc-accent-shadow);
	color: var(--lc-navy);
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: center;
	min-height: 128px;
	padding: 24px 16px;
	text-align: center;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.lmht-lc__choice-icon {
	height: 34px;
	width: 34px;
	color: #5B5B75;
}

.lmht-lc__choice-label {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
}

.lmht-lc__choice input:checked + .lmht-lc__choice-inner {
	background: var(--lc-accent-soft);
	border-color: var(--lc-accent);
	box-shadow: 0 4px 0 var(--lc-accent);
}

.lmht-lc__choice input:checked + .lmht-lc__choice-inner .lmht-lc__choice-icon {
	color: var(--lc-accent);
}

.lmht-lc__choice input:focus-visible + .lmht-lc__choice-inner {
	outline: 2px solid var(--lc-accent);
	outline-offset: 3px;
}

/* ----------------------------------------------------------------- Pills */

.lmht-lc__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lmht-lc__pill {
	cursor: pointer;
	margin: 0;
}

.lmht-lc__pill input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.lmht-lc__pill span {
	background: var(--lc-field);
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--lc-navy);
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	min-width: 56px;
	padding: 12px 22px;
	text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.lmht-lc__pill input:checked + span {
	background: var(--lc-accent-soft);
	border-color: var(--lc-accent);
	color: var(--lc-accent);
}

.lmht-lc__pill input:focus-visible + span {
	outline: 2px solid var(--lc-accent);
	outline-offset: 2px;
}

/* --------------------------------------------------------------- Aperçu */

.lmht-lc__preview {
	min-width: 0;
}

.lmht-lc__result {
	background: var(--lc-accent-soft);
	border-radius: var(--lc-radius-box);
	margin-bottom: 28px;
	padding: 26px 28px;
}

.lmht-lc__result-label {
	color: var(--lc-body);
	font-size: 15px;
	margin: 0 0 4px;
}

.lmht-lc__result-value {
	color: var(--lc-accent);
	font-size: 38px;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 8px;
}

.lmht-lc__result-date {
	color: var(--lc-navy);
	font-size: 15px;
	margin: 0;
}

.lmht-lc__result-note {
	color: var(--lc-body);
	font-size: 13px;
	line-height: 1.5;
	margin: 10px 0 0;
}

.lmht-lc__preview-title {
	color: var(--lc-navy);
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
}

.lmht-lc__letter {
	background: var(--lc-field);
	border-radius: var(--lc-radius-box);
	color: var(--lc-navy);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.7;
	margin: 0 0 20px;
	max-height: 800px;
	overflow-y: auto;
	padding: 28px;
	word-wrap: break-word;
}

.lmht-lc__letter .exp,
.lmht-lc__letter .dest,
.lmht-lc__letter .sign {
	white-space: pre-line;
}

.lmht-lc__letter .dest,
.lmht-lc__letter .date {
	margin-top: 20px;
	text-align: right;
}

.lmht-lc__letter .mention {
	margin-top: 20px;
}

.lmht-lc__letter .objet {
	font-weight: 700;
	margin: 16px 0 0;
}

.lmht-lc__letter p {
	margin: 0 0 12px;
	text-align: justify;
}

.lmht-lc__letter .objet + p {
	margin-top: 16px;
}

.lmht-lc__letter .sign {
	margin-top: 24px;
	text-align: right;
}

/* --------------------------------------------------------------- Boutons */

.lmht-lc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 26px;
}

.lmht-lc__btn {
	border-radius: var(--lc-radius-field);
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	padding: 16px 26px;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.lmht-lc__btn--primary {
	background: var(--lc-accent);
	color: #FFFFFF;
}

.lmht-lc__btn--primary:hover {
	background: #4A41E8;
}

.lmht-lc__btn--ghost {
	background: transparent;
	border-color: var(--lc-accent);
	color: var(--lc-accent);
}

.lmht-lc__btn--ghost:hover {
	background: var(--lc-accent-soft);
}

.lmht-lc__btn:focus-visible {
	outline: 2px solid var(--lc-navy);
	outline-offset: 2px;
}

.lmht-lc__btn.is-done {
	background: #1FA97A;
	border-color: #1FA97A;
	color: #FFFFFF;
}

/* ------------------------------------------------------ Rappels & mentions */

.lmht-lc__reminders {
	color: var(--lc-body);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 22px;
	padding-left: 20px;
}

.lmht-lc__reminders li + li {
	margin-top: 8px;
}

.lmht-lc__legal {
	border-top: 1px solid var(--lc-line);
	color: var(--lc-muted);
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
	padding-top: 18px;
}

.lmht-lc__legal strong {
	color: var(--lc-body);
}

.lmht-lc__legal a {
	color: var(--lc-accent);
	text-decoration: underline;
}

/* ------------------------------------- Menu déroulant Google Places (global) */

.pac-container {
	border: 1px solid #E4E4EF;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(14, 18, 51, .12);
	font-family: inherit;
	margin-top: 6px;
	padding: 6px 0;
	z-index: 100000 !important;
}

.pac-item {
	border: 0;
	cursor: pointer;
	font-size: 14px;
	padding: 8px 16px;
}

.pac-item:hover,
.pac-item-selected {
	background: #F3F2FF;
}

.pac-item-query {
	font-size: 15px;
}

/* --------------------------------------------------------------- Mobile */

@media (max-width: 991px) {

	.lmht-lc__card {
		padding: 32px 22px;
	}

	.lmht-lc__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
}

@media (max-width: 575px) {

	.lmht-lc__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.lmht-lc__choices {
		gap: 14px;
	}

	.lmht-lc__choice-inner {
		min-height: 108px;
	}

	.lmht-lc__actions .lmht-lc__btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.lmht-lc * {
		transition: none !important;
	}
}
