/* Club / form-multistep visual language, scoped to .tattoox-leads */

.tattoox-leads {
	width: 100%;
	--txl-red: var(--colorRed, #cc0014);
	--txl-black: var(--colorBlack, #191919);
	--txl-gris: var(--colorGris, rgba(25, 25, 25, 0.6));
	--txl-gris40: var(--colorGris40, rgba(25, 25, 25, 0.4));
	--txl-input-bg: rgba(25, 25, 25, 0.05);
	--txl-shadow: 0 0 2px 0 rgba(25, 25, 25, 0.2);
}

.modal .modal__content-step {
	padding-top: 4.8rem;
	padding-bottom: 0;
	overflow: hidden;
}

.modal .modal__content-step .tattoox-leads__title {
	margin-bottom: 2.4rem;
}

.modal .modal__content-step > .container,
.modal .modal__content-step > .container > .col-12 {
	height: 100%;
	min-height: 0;
}

.modal .modal__content-step > .container > .col-12,
.modal .modal__content-step .tattoox-leads,
.modal .modal__content-step .tattoox-leads__form,
.modal .modal__content-step .tattoox-leads__step.is-active {
	display: flex;
	flex-direction: column;
}

.modal .modal__content-step .tattoox-leads,
.modal .modal__content-step .tattoox-leads__form,
.modal .modal__content-step .tattoox-leads__step.is-active {
	flex: 1 1 auto;
	min-height: 0;
}

.modal .modal__content-step .tattoox-leads__fields {
	flex: 1 1 auto;
	min-height: 0;
	margin-bottom: 1.6rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.modal .modal__content-step .tattoox-leads__actions--sticky {
	position: relative;
	bottom: auto;
	flex: 0 0 auto;
	padding: 0 0 max(1.6rem, env(safe-area-inset-bottom));
	background: #fff;
}

@media screen and (max-height: 500px) {
	.modal .modal__content-step {
		padding-top: 3.2rem;
	}

	.modal .modal__content-step .tattoox-leads__step-count {
		margin-bottom: 0.4rem;
	}

	.modal .modal__content-step .tattoox-leads__title {
		margin-bottom: 1.6rem;
		font-size: 2.4rem;
		line-height: 3rem;
	}

	.modal .modal__content-step .tattoox-leads__fields {
		margin-bottom: 0.8rem;
	}

	.modal .modal__content-step .tattoox-leads__actions--sticky {
		padding-bottom: max(1rem, env(safe-area-inset-bottom));
	}
}

.tattoox-leads__step {
	position: relative;
	width: 100%;
}

.tattoox-leads__step-count {
	margin-bottom: 0.8rem;
}

.tattoox-leads__title {
	margin-bottom: 4.8rem;
}

@media screen and (max-width: 576px) {
	.tattoox-leads__title.mb-32-m {
		margin-bottom: 3.2rem;
	}
}

.tattoox-leads__fields {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	margin-bottom: 4.8rem;
}

@media screen and (max-width: 576px) {
	.tattoox-leads__fields {
		margin-bottom: 3.2rem;
	}
}

/* —— Text / email / tel / select / textarea —— */
.tattoox-leads__field {
	display: block;
	width: 100%;
}

.tattoox-leads__field-label {
	display: block;
	margin: 0 0 0.4rem;
	font-size: 1.4rem;
	font-weight: 100;
	line-height: 2rem;
	color: var(--txl-gris);
}

.tattoox-leads__input,
.tattoox-leads__select,
.tattoox-leads__textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 1.3rem 1.2rem 1rem;
	border: 0 solid transparent;
	border-radius: 0.8rem;
	background: var(--txl-input-bg);
	box-shadow: var(--txl-shadow);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	font-family: inherit;
	font-size: 1.6rem;
	font-style: normal;
	font-weight: 100;
	line-height: 2.4rem;
	color: var(--txl-black);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tattoox-leads__input:hover,
.tattoox-leads__select:hover,
.tattoox-leads__textarea:hover {
	background-color: rgba(25, 25, 25, 0.08);
}

.tattoox-leads__input:focus,
.tattoox-leads__select:focus,
.tattoox-leads__textarea:focus {
	outline: none;
	box-shadow: var(--txl-shadow);
}

.tattoox-leads__input:active,
.tattoox-leads__select:active,
.tattoox-leads__textarea:active {
	background-color: rgba(25, 25, 25, 0.1);
}

@media (prefers-reduced-motion: reduce) {
	.tattoox-leads__input,
	.tattoox-leads__select,
	.tattoox-leads__textarea {
		transition-duration: 0.01ms;
	}
}

.tattoox-leads input.tattoox-leads__input {
	margin: 0;
}

.tattoox-leads__textarea {
	height: 15.6rem;
	resize: none;
}

.tattoox-leads__field-description {
	margin: 0 0 2.4rem;
	font-size: 1.6rem;
	font-weight: 100;
	line-height: 2.4rem;
	color: var(--txl-gris);
}

.tattoox-leads__field--dropdown .tattoox-leads__field-description {
	text-align: center;
}

.tattoox-leads__field--dropdown {
	position: relative;
}

.tattoox-leads__dropdown-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	width: 100%;
	height: 4.8rem;
	box-sizing: border-box;
	margin: 0;
	padding: 1rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 0.8rem;
	background: var(--txl-input-bg);
	box-shadow: var(--txl-shadow);
	font: inherit;
	font-size: 1.6rem;
	font-weight: 100;
	line-height: 2.4rem;
	text-align: left;
	color: var(--txl-gris);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.tattoox-leads__dropdown-trigger:hover,
.tattoox-leads__dropdown-trigger[aria-expanded='true'] {
	background: rgba(25, 25, 25, 0.08);
}

.tattoox-leads__dropdown-trigger.has-value {
	color: var(--txl-black);
}

.tattoox-leads__dropdown-trigger:focus-visible {
	outline: 2px solid var(--txl-red);
	outline-offset: 2px;
}

.tattoox-leads__dropdown-trigger svg {
	flex: 0 0 1.6rem;
	width: 1.6rem;
	height: 1rem;
	fill: none;
	stroke: var(--txl-black);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}

.tattoox-leads__dropdown-trigger[aria-expanded='true'] svg {
	transform: rotate(180deg);
}

.tattoox-leads__dropdown-menu[hidden],
.tattoox-leads__dropdown-option[hidden] {
	display: none !important;
}

.tattoox-leads__dropdown-menu {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	right: 0;
	z-index: 30;
	padding: 0.8rem;
	border-radius: 0.8rem;
	background: #fff;
	box-shadow: 0 0.8rem 2.4rem rgba(25, 25, 25, 0.16);
}

.tattoox-leads__dropdown-dialog {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: min(32rem, 50vh);
}

.tattoox-leads__dropdown-search {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	min-height: 4.4rem;
	margin: 0 0 0.8rem;
	padding: 0 1rem;
	border-radius: 0.8rem;
	background: var(--txl-input-bg);
}

.tattoox-leads__dropdown-search svg {
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	fill: none;
	stroke: var(--txl-black);
	stroke-width: 1.3;
	stroke-linecap: round;
}

.tattoox-leads__dropdown-search input {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 1.8rem;
	font-weight: 100;
	color: var(--txl-black);
}

.tattoox-leads__dropdown-search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 1.6rem;
	height: 1.6rem;
	cursor: pointer;
	filter: brightness(0) saturate(100%) invert(13%) sepia(99%) saturate(7465%) hue-rotate(354deg) brightness(83%) contrast(117%);
}

.tattoox-leads__dropdown-options {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	overflow-y: auto;
	max-height: min(24rem, 38vh);
}

.tattoox-leads__dropdown-option {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 4.4rem;
	margin: 0;
	padding: 1rem 4.4rem 1rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 0.6rem;
	background: var(--txl-input-bg);
	font: inherit;
	font-size: 1.6rem;
	font-weight: 100;
	line-height: 2.2rem;
	text-align: left;
	color: var(--txl-black);
	cursor: pointer;
}

.tattoox-leads__dropdown-option:hover,
.tattoox-leads__dropdown-option[aria-selected='true'] {
	border-color: var(--txl-red);
	background: rgba(204, 0, 20, 0.08);
}

.tattoox-leads__dropdown-option-indicator {
	position: absolute;
	right: 1.2rem;
	width: 2rem;
	height: 2rem;
	border: 1px solid rgba(25, 25, 25, 0.2);
	border-radius: 50%;
	background: #fff;
}

.tattoox-leads__dropdown-option[aria-selected='true'] .tattoox-leads__dropdown-option-indicator {
	border: 0.6rem solid var(--txl-red);
}

.tattoox-leads__dropdown-option-copy {
	display: block;
	min-width: 0;
}

.tattoox-leads__dropdown-option-description {
	display: block;
	margin-top: 0.2rem;
	font-size: 1.2rem;
	line-height: 1.8rem;
	color: var(--txl-gris40);
}

.tattoox-leads__dropdown-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 2rem;
	font-size: 1.4rem;
	text-align: center;
	color: var(--txl-gris);
}

.tattoox-leads__field--multiselect .tattoox-leads__dropdown-option-indicator {
	border-radius: 0.4rem;
}

.tattoox-leads__field--multiselect .tattoox-leads__dropdown-option[aria-selected='true'] .tattoox-leads__dropdown-option-indicator {
	position: absolute;
	border: 0;
	border-radius: 0.4rem;
	background: var(--txl-red);
}

.tattoox-leads__field--multiselect .tattoox-leads__dropdown-option[aria-selected='true'] .tattoox-leads__dropdown-option-indicator::after {
	position: absolute;
	top: 0.3rem;
	left: 0.65rem;
	width: 0.55rem;
	height: 1rem;
	border: solid #fff;
	border-width: 0 0.2rem 0.2rem 0;
	content: '';
	transform: rotate(45deg);
}

.tattoox-leads__dropdown-footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(25, 25, 25, 0.12);
}

.tattoox-leads__dropdown-done {
	min-width: 12rem;
	padding: 1rem 2rem;
	border: 0;
	border-radius: 0.8rem;
	background: var(--txl-red);
	font: inherit;
	font-size: 1.4rem;
	color: #fff;
	cursor: pointer;
}

/* —— Image-selectable cards —— */
.tattoox-leads__image-choices .tattoox-leads__field-description {
	text-align: center;
}

.tattoox-leads__image-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.6rem;
}

.tattoox-leads__image-option {
	display: block;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.tattoox-leads__image-option > input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tattoox-leads__image-card {
	display: block;
	height: 100%;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 1.2rem;
	background: var(--txl-input-bg);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.tattoox-leads__image-preview {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1.7;
	overflow: hidden;
	background: #ddd;
}

.tattoox-leads__image-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tattoox-leads__image-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--txl-red);
	font-size: 6rem;
	line-height: 1;
	color: #fff;
}

.tattoox-leads__image-indicator {
	position: absolute;
	top: 1.2rem;
	left: 1.2rem;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid rgba(25, 25, 25, 0.16);
	border-radius: 50%;
	background: #fff;
}

.tattoox-leads__image-copy {
	display: block;
	padding: 1rem 1.2rem 1.2rem;
}

.tattoox-leads__image-label {
	display: block;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 2.2rem;
	color: var(--txl-black);
}

.tattoox-leads__image-description {
	display: block;
	margin-top: 0.2rem;
	font-size: 1.2rem;
	line-height: 1.8rem;
	color: var(--txl-gris40);
}

.tattoox-leads__image-option > input:checked + .tattoox-leads__image-card {
	border-color: var(--txl-red);
	background: rgba(204, 0, 20, 0.08);
}

.tattoox-leads__image-option > input:checked + .tattoox-leads__image-card .tattoox-leads__image-indicator {
	border: 0.6rem solid var(--txl-red);
}

.tattoox-leads__image-option > input:focus-visible + .tattoox-leads__image-card {
	outline: 2px solid var(--txl-red);
	outline-offset: 2px;
}

@media screen and (max-width: 576px) {
	.tattoox-leads__image-grid {
		gap: 0.8rem;
	}

	.tattoox-leads__image-copy {
		padding: 0.8rem;
	}
}

/* —— Radio choices (club card rows) —— */
.tattoox-leads__choices {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.tattoox-leads__choices-legend {
	padding: 0;
	margin: 0 0 0.4rem;
	font-size: 1.4rem;
	font-weight: 100;
	color: var(--txl-gris);
}

.tattoox-leads__choices-list {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
}

.tattoox-leads__choice {
	display: block;
	width: 100%;
	margin: 0;
	cursor: pointer;
}

.tattoox-leads__choice input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.tattoox-leads__choice-label {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	width: 100%;
	box-sizing: border-box;
	padding: 1.3rem 1.2rem 1rem;
	border-radius: 0.8rem;
	border: 1px solid transparent;
	background: var(--txl-input-bg);
	box-shadow: var(--txl-shadow);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	font-size: 1.6rem;
	font-weight: 100;
	line-height: 2.4rem;
	color: var(--txl-black);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.tattoox-leads__choice-label::before {
	content: '';
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	margin-top: -0.3rem;
	border-radius: 100px;
	border: 1px solid rgba(25, 25, 25, 0.2);
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease, border-width 0.2s ease;
}

.tattoox-leads__choice input:checked + .tattoox-leads__choice-label {
	border: 1px solid var(--txl-red);
	background: rgba(204, 0, 20, 0.1);
}

.tattoox-leads__choice input:checked + .tattoox-leads__choice-label::before {
	border-color: var(--txl-red);
	border-width: 0.6rem;
}

.tattoox-leads__choice:hover .tattoox-leads__choice-label {
	background: rgba(25, 25, 25, 0.03);
}

/* —— Acceptance —— */
.tattoox-leads__acceptance {
	display: block;
	margin: 0;
	font-size: 1.4rem;
	font-style: normal;
	font-weight: 90;
	line-height: 2.2rem;
	color: var(--txl-gris);
}

.tattoox-leads__acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	cursor: pointer;
}

.tattoox-leads__acceptance input[type='checkbox'] {
	position: relative;
	display: block;
	width: 2rem;
	height: 2rem;
	box-sizing: border-box;
	margin: 0.2rem 0 0;
	padding: 0;
	flex: 0 0 2rem;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(25, 25, 25, 0.24);
	border-radius: 0.4rem;
	background: #fff;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tattoox-leads__acceptance input[type='checkbox']:checked {
	border-color: var(--txl-red);
	background: var(--txl-red);
}

.tattoox-leads__acceptance input[type='checkbox']:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.45rem;
	height: 0.8rem;
	border: solid #fff;
	border-width: 0 0.2rem 0.2rem 0;
	transform: translate(-50%, -60%) rotate(45deg);
}

.tattoox-leads__acceptance input[type='checkbox']:focus-visible {
	outline: 2px solid var(--txl-red);
	outline-offset: 2px;
}

.tattoox-leads__acceptance-label {
	flex: 1;
	font-size: 1.4rem;
	line-height: 2.2rem;
}

.tattoox-leads__acceptance a {
	text-decoration: none;
	color: var(--txl-black);
}

.tattoox-leads__acceptance .tattoox-leads__privacy-link {
	display: inline-block;
	margin: 0.4rem 0 0 2.8rem;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.tattoox-leads__acceptance .tattoox-leads__privacy-link:focus-visible {
	outline: 2px solid var(--txl-red);
	outline-offset: 2px;
}

/* —— Errors —— */
.tattoox-leads__error {
	display: block;
	margin-top: 1rem;
	color: var(--txl-red);
	font-size: 1.2rem;
	line-height: 1.8rem;
	font-weight: 100;
}

.tattoox-leads__error[hidden] {
	display: none !important;
}

.tattoox-leads__error--form {
	margin-bottom: 1.6rem;
}

.tattoox-leads__turnstile {
	display: flex;
	justify-content: center;
	margin: 0 0 1.6rem;
}

/* —— Actions (club fms-groupButtons) —— */
.tattoox-leads__actions {
	display: flex;
	gap: 1.6rem;
	align-items: stretch;
}

.tattoox-leads__actions--sticky {
	position: sticky;
	bottom: 20px;
	z-index: 20;
	padding: 1.6rem 0 0;
	background: linear-gradient(to bottom, transparent, #fff 1.6rem);
}

.tattoox-leads__actions .btn {
	flex: 1;
}

.tattoox-leads__btn-back {
	position: relative;
	flex: 0 0 auto;
	width: 4.8rem;
	height: 4.8rem;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 0;
	border-radius: 0.8rem;
	background: transparent;
	box-shadow: var(--txl-shadow);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	cursor: pointer;
	transition: background 0.2s ease;
}

.tattoox-leads__btn-back:hover {
	background: #fff;
}

.tattoox-leads__btn-back svg {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

/* Ensure theme .btn-red works if present; fallback if not */
.tattoox-leads .btn {
	display: inline-block;
	padding: 1.4rem 2rem;
	border: 0;
	border-radius: 0.8rem;
	font-family: inherit;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
}

.tattoox-leads .btn-block {
	display: block;
	width: 100%;
}

.tattoox-leads .btn-red {
	background-color: var(--txl-red);
	color: #fff;
}

.tattoox-leads .btn-red:hover {
	filter: brightness(0.97);
}

.tattoox-leads .btn-red:disabled {
	opacity: 0.65;
	cursor: wait;
}

.tattoox-leads__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tattoox-leads__success {
	text-align: center;
	padding: 1.6rem 0;
}

.tattoox-leads__success p {
	font-size: 1.6rem;
	margin: 0;
	font-weight: 100;
}

/* —— Phone (intl-tel-input, separate dial code) —— */
.tattoox-leads__field--phone .iti,
.tattoox-leads__field--phone .intl-tel-input {
	display: block;
	width: 100%;
}

.tattoox-leads__field--phone .iti input.tattoox-leads__phone,
.tattoox-leads__field--phone .intl-tel-input input.tattoox-leads__phone {
	width: 100%;
	margin: 0;
	border-radius: 0.8rem;
	background: var(--txl-input-bg);
	box-shadow: var(--txl-shadow);
}

.tattoox-leads__field--phone .iti__flag-container,
.tattoox-leads__field--phone .intl-tel-input.allow-dropdown .flag-container,
.tattoox-leads__field--phone .intl-tel-input.separate-dial-code .flag-container {
	top: 0;
	bottom: 0;
	padding: 0;
	z-index: 3;
}

.tattoox-leads__field--phone .iti__selected-flag,
.tattoox-leads__field--phone .intl-tel-input .selected-flag {
	height: 100%;
	box-sizing: border-box;
	padding: 0 0.8rem 0 1.2rem;
	border-radius: 0.8rem 0 0 0.8rem;
	background: var(--txl-input-bg);
}

.tattoox-leads__field--phone .iti--separate-dial-code .iti__selected-dial-code,
.tattoox-leads__field--phone .intl-tel-input.separate-dial-code .selected-dial-code {
	font-size: 1.6rem;
	font-weight: 100;
	line-height: 2.4rem;
	color: var(--txl-black);
	padding-left: 0.4rem;
}

.tattoox-leads__field--phone .iti__country-list,
.tattoox-leads__field--phone .intl-tel-input .country-list {
	z-index: 20;
	border-radius: 0.8rem;
	box-shadow: 0 8px 24px rgba(25, 25, 25, 0.12);
	font-size: 1.4rem;
	max-height: 22rem;
	width: 32rem;
	max-width: 90vw;
}
