/* ==== Signup consultation form — popup + inline ==== */
.la-modal,
.la-inline {
	--brand: #6b3fa0;
	--brand-dark: #4f2c7a;
	--ink: #3a2b53;
	--field-bg: #f4f0fb;
}

.la-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: inherit;
}
.la-modal.is-open {
	display: flex;
}
.la-modal *,
.la-modal *::before,
.la-modal *::after,
.la-inline,
.la-inline *,
.la-inline *::before,
.la-inline *::after {
	box-sizing: border-box;
}

/* ---- Inline form: same fields, no overlay. [signup_form] ---- */
.la-inline {
	max-width: 500px;
	margin: 0 auto;
	padding: 28px 26px 22px;
	background: #ffffff;
	border: 1px solid #e3dbf2;
	border-radius: 16px;
	font-family: inherit;
	color: var(--ink);
}
.la-inline__title {
	margin: 0 0 18px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 800;
	text-align: center;
	color: var(--brand);
}
@media (max-width: 480px) {
	.la-inline {
		padding: 22px 18px 18px;
	}
}

.la-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(58, 43, 83, 0.55);
	backdrop-filter: blur(2px);
	animation: la-fade 0.25s ease;
}

.la-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 500px;
	background: #ffffff;
	border-radius: 16px;
	padding: 40px 36px 30px;
	box-shadow: 0 30px 70px rgba(58, 43, 83, 0.4);
	animation: la-pop 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.la-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	color: #9a8fb0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s, color 0.2s;
}
.la-modal__close:hover {
	background: var(--field-bg);
	color: var(--brand);
}

.la-modal__title {
	margin: 0 0 24px;
	text-align: center;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--brand);
	letter-spacing: 0.2px;
}

.la-field {
	margin-bottom: 16px;
}

.la-input,
.la-select {
	width: 100%;
	height: 54px;
	padding: 0 18px;
	border: 1px solid #e3dbf2;
	border-radius: 10px;
	background: var(--field-bg);
	font-size: 15px;
	color: var(--ink);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.la-input::placeholder {
	color: #8f84a5;
}
.la-input:focus,
.la-select:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
	background: #fff;
}

/* Select with custom caret */
.la-select-wrap {
	position: relative;
}
.la-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	color: #8f84a5;
}
.la-select:valid,
.la-select option {
	color: var(--ink);
}
.la-select-caret {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--brand);
	pointer-events: none;
	font-size: 14px;
}

/* honeypot — visually hidden from real users */
.la-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.la-msg {
	min-height: 0;
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
.la-msg.is-error {
	color: #d63b52;
}
.la-msg.is-success {
	color: #1f9d63;
	font-weight: 600;
}

.la-submit {
	display: block;
	width: 100%;
	max-width: 230px;
	margin: 8px auto 0;
	padding: 14px 20px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.4px;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(107, 63, 160, 0.35);
	transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.la-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(107, 63, 160, 0.45);
}
.la-submit:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

.la-privacy {
	margin: 16px 0 0;
	text-align: center;
	font-size: 13px;
	font-style: italic;
	color: #8a7fa0;
}

/* Success state: hide fields, center the thank-you message */
.la-form.is-done .la-field,
.la-form.is-done .la-submit,
.la-form.is-done .la-privacy {
	display: none;
}
.la-form.is-done .la-msg {
	font-size: 16px;
	padding: 12px 0;
}

/* A generic trigger button (from [signup_button]) */
.la-btn {
	display: inline-block;
	padding: 12px 26px;
	border: none;
	border-radius: 999px;
	background: var(--brand, #6b3fa0);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.4px;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(107, 63, 160, 0.3);
	transition: background 0.2s, transform 0.2s;
}
.la-btn:hover {
	background: #4f2c7a;
	transform: translateY(-2px);
}

@keyframes la-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes la-pop {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
	.la-modal__dialog {
		padding: 34px 22px 26px;
	}
	.la-modal__title {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.la-modal__overlay,
	.la-modal__dialog {
		animation: none;
	}
}
