/*
 * Talk to an Advisor (/talk-to-an-advisor/) only — loaded on that page (see functions.php), after main.css.
 * 2026-10-30 redesign: intro + steps + helpline left, highlighted call-back form right.
 */

.tta-hero {
	padding: 48px 0 64px;
	background:
		radial-gradient(ellipse 55% 70% at 0% 0%, rgba(124, 58, 237, 0.09), transparent 60%),
		radial-gradient(ellipse 50% 60% at 100% 100%, rgba(242, 106, 27, 0.08), transparent 60%),
		#f6f5fc;
}
.tta-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 48px; align-items: start; }

/* ---------- left: intro ---------- */
.tta-intro h1 { color: var(--navy); margin: 0 0 12px; }
.tta-intro__desc { font-size: var(--type-intro, 16px); line-height: 1.65; color: var(--text-muted); max-width: 540px; margin: 0 0 24px; }

.tta-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tta-points li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1.5px solid #e6e1f6; border-radius: 16px; background: #fff; box-shadow: 0 12px 26px -20px rgba(76, 43, 209, 0.5); }
.tta-points__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #f3effe; color: #6c3be8; }
.tta-points__icon svg { width: 20px; height: 20px; }
.tta-points strong { display: block; font-size: var(--fs-sm); color: var(--navy); line-height: 1.35; }
.tta-points small { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; }

.tta-steps { margin: 0 0 24px; }
.tta-steps__title { margin: 0 0 12px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6c3be8; }
.tta-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.tta-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 0 0 18px; position: relative; }
.tta-steps li:last-child { padding-bottom: 0; }
.tta-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: repeating-linear-gradient(180deg, #cfc6f0 0 4px, transparent 4px 8px); }
.tta-steps__num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-sm); color: #fff; background: linear-gradient(135deg, #6c3be8, #8b5cf6); box-shadow: 0 6px 14px -6px rgba(108, 59, 232, 0.7); }
.tta-steps strong { display: block; font-size: var(--fs-sm); color: var(--navy); line-height: 1.3; margin-top: 2px; }
.tta-steps small { display: block; font-size: var(--fs-xs); color: var(--text-muted); }

.tta-helpline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1.5px solid #e6e1f6; box-shadow: 0 12px 26px -20px rgba(76, 43, 209, 0.5); }
.tta-helpline__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6c3be8, #f26a1b); color: #fff; }
.tta-helpline__icon svg { width: 22px; height: 22px; }
.tta-helpline__text { flex: 1 1 160px; }
.tta-helpline__text strong { display: block; font-size: var(--fs-sm); color: var(--navy); }
.tta-helpline__text small { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.tta-helpline__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tta-helpline__btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #dcd6f2; background: #fff; color: var(--navy); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color 0.2s ease, background 0.2s ease; }
.tta-helpline__btn svg { width: 16px; height: 16px; color: #6c3be8; }
.tta-helpline__btn:hover { border-color: #7c3aed; background: #faf8ff; }
.tta-helpline__btn--wa { border-color: #bfe5cf; background: #f3fbf6; color: #15803d; }
.tta-helpline__btn--wa svg { color: #16a34a; }
.tta-helpline__btn--wa:hover { border-color: #16a34a; background: #eaf8ef; }

/* ---------- right: highlighted form ---------- */
.tta-formcol { position: relative; }
.tta-form {
	position: relative;
	border-radius: 24px;
	background: #fff;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #6c3be8, #a855f7 45%, #f26a1b) border-box;
	box-shadow: 0 30px 60px -28px rgba(76, 43, 209, 0.55), 0 8px 20px -12px rgba(242, 106, 27, 0.25);
}
.tta-form[hidden] { display: none; }
.tta-form__head { display: flex; align-items: center; gap: 14px; padding: 22px 26px; background: linear-gradient(120deg, #6c3be8, #8b5cf6 55%, #c0569c); color: #fff; }
.tta-form__head h2 { margin: 0; font-size: var(--type-card-title, 22px) !important; color: #fff; line-height: 1.2; }
.tta-form__head p { margin: 4px 0 0; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.tta-form__avatar { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 18px -8px rgba(16, 31, 77, 0.6); }
.tta-form__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.tta-form__avatar--icon { display: inline-flex; align-items: center; justify-content: center; color: #6c3be8; }
.tta-form__avatar--icon svg { width: 28px; height: 28px; }

.tta-form__body { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 22px; background: linear-gradient(180deg, #faf8ff 0%, #ffffff 40%); }
.tta-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tta-form .hero__field { margin: 0; }
.tta-form .hero__field-label { display: block; margin-bottom: 7px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy); }
.tta-form .hero__field-label em { font-style: normal; font-weight: 500; color: var(--text-muted); }
.tta-form .hero__field:has([required]) .hero__field-label::after { content: " *"; color: #e5484d; }
.tta-form input[type="text"],
.tta-form input[type="tel"],
.tta-form select,
.tta-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1.5px solid #cfc8ea;
	border-radius: 12px;
	background-color: #fff;
	font-family: inherit;
	font-size: var(--fs-sm);
	color: var(--navy);
	box-shadow: 0 1px 2px rgba(16, 31, 77, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tta-form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.tta-form select {
	-webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c3be8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 18px 18px;
}
.tta-form input::placeholder,
.tta-form textarea::placeholder { color: #8a8fa8; opacity: 1; }
.tta-form input:hover, .tta-form select:hover, .tta-form textarea:hover { border-color: #a78bfa; }
.tta-form input:focus, .tta-form select:focus, .tta-form textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
.tta-form input.is-invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12); }
.tta-form__submit { min-height: 54px; margin-top: 4px; font-size: var(--fs-md); box-shadow: 0 14px 28px -14px rgba(254, 68, 7, 0.75); }
.tta-form .hero__form-status:empty { display: none; }
.tta-form__note { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin: 0; text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }
.tta-form__note svg { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 2px; color: #16a34a; }

@media (min-width: 1081px) {
	.tta-formcol { position: sticky; top: 116px; }
}
@media (max-width: 1080px) {
	.tta-hero { padding: 32px 0 48px; }
	.tta-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	/* tablets/phones: title + intro, then the form, then points / steps / helpline */
	.tta-intro { display: contents; }
	.tta-intro > * { order: 2; }
	.tta-intro > .eyebrow,
	.tta-intro > h1,
	.tta-intro > .tta-intro__desc { order: 0; }
	.tta-intro > .tta-intro__desc { margin-bottom: 20px; }
	.tta-formcol { order: 1; max-width: 560px; width: 100%; margin: 0 auto 28px; }
}
@media (max-width: 720px) {
	.tta-points { grid-template-columns: minmax(0, 1fr); }
	.tta-points li { flex-direction: row; align-items: center; padding: 12px 14px; }
}
@media (max-width: 520px) {
	.tta-form__head { padding: 18px; }
	.tta-form__avatar { flex-basis: 52px; width: 52px; height: 52px; }
	.tta-form__body { padding: 20px 18px; }
	.tta-form__row { grid-template-columns: minmax(0, 1fr); }
	.tta-helpline__actions { width: 100%; }
	.tta-helpline__btn { flex: 1 1 auto; justify-content: center; }
}
