/* TTC Forms — uses TTC News tokens with fallbacks */
.ttcf-page, .ttcf, .ttcf-done {
	--f-red: var(--red, #c8102e);
	--f-ink: var(--ink, #141414);
	--f-ink2: var(--ink-2, #3d3d3d);
	--f-muted: var(--muted, #6f6a63);
	--f-line: var(--line, #e6e2dc);
	--f-soft: var(--soft, #f6f4f1);
	--f-serif: var(--serif, Georgia, "Times New Roman", serif);
	--f-sans: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
}

/* ---------- Page layout ---------- */
.ttcf-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 56px; padding-top: 44px; padding-bottom: 72px; align-items: start; }
.ttcf-page--newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: 1080px; }
.ttcf-page__lead { max-width: 760px; font-size: 16px; line-height: 1.55; color: var(--f-ink2); }
.ttcf-page__side { position: sticky; top: 140px; font-family: var(--f-sans); }
.ttcf-page__intro { font-size: 15.5px; line-height: 1.65; color: var(--f-ink2); }
.ttcf-page__intro p { margin: 0 0 14px; }
.ttcf-page__intro p:first-child { font-family: var(--f-serif); font-size: 21px; line-height: 1.4; color: var(--f-ink); }
.ttcf-page__intro ul { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--f-line); }
.ttcf-page__intro li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--f-line); position: relative; font-size: 14.5px; color: var(--f-ink); }
.ttcf-page__intro li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 2px; background: var(--f-red); }
.ttcf-steps { margin-top: 28px; padding: 20px 22px; background: var(--f-soft); border-left: 3px solid var(--f-red); }
.ttcf-steps__title { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-ink); }
.ttcf-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ttcf-steps li { counter-increment: s; position: relative; padding-left: 30px; font-size: 14px; line-height: 1.5; color: var(--f-ink2); }
.ttcf-steps li + li { margin-top: 10px; }
.ttcf-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--f-ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ttcf-page__mail { margin: 22px 0 0; font-size: 13.5px; color: var(--f-muted); }
.ttcf-page__mail a { color: var(--f-ink); font-weight: 600; border-bottom: 1px solid var(--f-red); }

.ttcf-card { background: #fff; border: 1px solid var(--f-line); border-top: 3px solid var(--f-ink); padding: 32px 34px 34px; }
.ttcf-card__title { margin: 0; font-family: var(--f-serif); font-size: 27px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--f-ink); }
.ttcf-card__sub { margin: 6px 0 0; font-size: 13px; color: var(--f-muted); }
.ttcf-card:has(.ttcf-done) .ttcf-card__title, .ttcf-card:has(.ttcf-done) .ttcf-card__sub { display: none; }

/* ---------- Form ---------- */
.ttcf { font-family: var(--f-sans); color: var(--f-ink); margin: 0; }
.ttcf *, .ttcf *::before, .ttcf *::after { box-sizing: border-box; }
.ttcf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ttcf__section { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; }
.ttcf__legend { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 0 0 10px; margin-bottom: 18px; border-bottom: 1px solid var(--f-line); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-ink); }
.ttcf__legend span { font-family: var(--f-serif); font-size: 15px; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--f-red); font-weight: 700; }
.ttcf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ttcf--newsletter .ttcf__section { margin-top: 18px; }
.ttcf__field { min-width: 0; }
.ttcf__field.is-wide { grid-column: 1 / -1; }
.ttcf__label { display: flex; align-items: baseline; gap: 6px; margin: 0 0 7px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--f-ink); line-height: 1.3; }
.ttcf__req { color: var(--f-red); font-weight: 700; }
.ttcf__opt { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--f-muted); }

.ttcf input[type="text"], .ttcf input[type="email"], .ttcf input[type="tel"], .ttcf input[type="url"], .ttcf input[type="date"], .ttcf select, .ttcf textarea {
	display: block; width: 100%; margin: 0; padding: 11px 13px; min-height: 46px;
	font: 400 15px/1.4 var(--f-sans); color: var(--f-ink);
	background: #fff; border: 1px solid #d6d1ca; border-radius: 3px; box-shadow: none;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.ttcf textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.ttcf input::placeholder, .ttcf textarea::placeholder { color: #a9a39b; }
.ttcf input:hover, .ttcf select:hover, .ttcf textarea:hover { border-color: #b4aea6; }
.ttcf input:focus, .ttcf select:focus, .ttcf textarea:focus { outline: none; border-color: var(--f-ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.ttcf__select { position: relative; }
.ttcf__select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--f-ink2); border-bottom: 1.5px solid var(--f-ink2); transform: rotate(45deg); pointer-events: none; }
.ttcf select { padding-right: 38px; cursor: pointer; }
.ttcf input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

.has-error input, .has-error select, .has-error textarea, .has-error .ttcf__drop { border-color: var(--f-red) !important; }
.ttcf__err { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--f-red); font-weight: 500; }
.ttcf__hint { margin: 6px 0 0; font-size: 12.5px; color: var(--f-muted); }

/* Multi-select pills */
.ttcf__pills { border: 0; margin: 0; padding: 0; min-width: 0; }
.ttcf__pillset { display: flex; flex-wrap: wrap; gap: 8px; }
.ttcf__pill { position: relative; cursor: pointer; margin: 0; }
.ttcf__pill input { position: absolute; opacity: 0; pointer-events: none; }
.ttcf__pill span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13.5px; line-height: 1.25; color: var(--f-ink2); background: #fff; border: 1px solid #d6d1ca; border-radius: 999px; transition: background .15s, border-color .15s, color .15s; user-select: none; }
.ttcf__pill span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid #b4aea6; border-radius: 3px; flex: none; transition: all .15s; }
.ttcf__pill:hover span { border-color: var(--f-ink); color: var(--f-ink); }
.ttcf__pill input:checked + span { background: var(--f-ink); border-color: var(--f-ink); color: #fff; }
.ttcf__pill input:checked + span::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23141414' stroke-width='2.2'/%3E%3C/svg%3E") center/11px no-repeat; }
.ttcf__pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20,20,20,.15); }
.has-error .ttcf__pill span { border-color: #e3a3ac; }

/* File drop */
.ttcf__drop { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--f-soft); border: 1px dashed #c4beb6; border-radius: 3px; cursor: pointer; transition: border-color .15s, background .15s; }
.ttcf__drop:hover, .ttcf__drop.is-over { border-color: var(--f-ink); background: #fff; }
.ttcf__drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ttcf__drop svg { grid-row: span 2; color: var(--f-ink2); }
.ttcf__dropmain { font-size: 14px; color: var(--f-ink2); }
.ttcf__dropmain b { color: var(--f-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--f-red); text-underline-offset: 3px; }
.ttcf__dropmeta { font-size: 12px; color: var(--f-muted); }
.ttcf__dropfiles { grid-column: 1 / -1; display: none; flex-wrap: wrap; gap: 6px; margin-top: 10px; position: relative; z-index: 2; }
.ttcf__drop.has-files .ttcf__dropfiles { display: flex; }
.ttcf__file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; background: #fff; border: 1px solid var(--f-line); border-radius: 3px; font-size: 12.5px; color: var(--f-ink); }
.ttcf__file em { font-style: normal; color: var(--f-muted); white-space: nowrap; }
.ttcf__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttcf__field--file:not(.is-wide) .ttcf__drop, .ttcf__field--files .ttcf__drop { min-height: 72px; }

/* Consent */
.ttcf__consent { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--f-line); display: grid; gap: 12px; }
.ttcf__check label { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; cursor: pointer; font-size: 13.5px; line-height: 1.5; color: var(--f-ink2); }
.ttcf__check input { position: absolute; opacity: 0; pointer-events: none; }
.ttcf__box { width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #b4aea6; border-radius: 3px; background: #fff; transition: all .15s; }
.ttcf__check input:checked + .ttcf__box { background: var(--f-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--f-ink); }
.ttcf__check input:focus-visible + .ttcf__box { box-shadow: 0 0 0 3px rgba(20,20,20,.15); }
.ttcf__check.has-error .ttcf__box { border-color: var(--f-red); }
.ttcf__check .ttcf__err { margin-left: 31px; }
.ttcf__checktext a { color: var(--f-ink); text-decoration: underline; text-decoration-color: var(--f-red); text-underline-offset: 2px; }
.ttcf__captcha { margin-top: 18px; }

.ttcf__foot { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ttcf__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; font: 700 15px/1 var(--f-sans); letter-spacing: .01em; color: #fff !important; background: var(--f-red); border: 0; border-radius: 3px; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .15s; }
.ttcf__submit:hover { background: #a50d25; }
.ttcf__submit:active { transform: translateY(1px); }
.ttcf__submit svg { transition: transform .2s; }
.ttcf__submit:hover svg { transform: translateX(3px); }
.ttcf__submit[disabled] { opacity: .7; cursor: progress; }
.ttcf__submit.is-busy svg { animation: ttcf-spin .8s linear infinite; }
@keyframes ttcf-spin { to { transform: rotate(360deg); } }
.ttcf__note { flex: 1 1 260px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--f-muted); }

.ttcf__alert { margin: 22px 0 0; padding: 13px 16px; background: #fdf1f2; border-left: 3px solid var(--f-red); font-size: 14px; color: var(--f-ink); outline: none; }
.ttcf__alert strong { display: block; }
.ttcf__alert span { font-size: 13px; color: var(--f-ink2); }

/* ---------- Success ---------- */
.ttcf-done { font-family: var(--f-sans); text-align: left; outline: none; }
.ttcf-done__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--f-ink); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.ttcf-done h3 { margin: 0 0 10px; font-family: var(--f-serif); font-size: 26px; line-height: 1.25; letter-spacing: -.01em; color: var(--f-ink); }
.ttcf-done p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: var(--f-ink2); }
.ttcf-done__ref { margin: 20px 0; padding: 16px 20px; background: var(--f-soft); border-left: 3px solid var(--f-red); }
.ttcf-done__ref dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-muted); }
.ttcf-done__ref dd { margin: 4px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .03em; color: var(--f-ink); }
.ttcf-done__small { font-size: 13.5px !important; color: var(--f-muted) !important; }
.ttcf-done__back { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--f-ink); border-bottom: 1px solid var(--f-red); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ttcf-page { gap: 36px; }
	.ttcf-card { padding: 26px 24px 28px; }
}
@media (max-width: 860px) {
	.ttcf-page, .ttcf-page--newsletter { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; padding-bottom: 44px; }
	.ttcf-page__side { position: static; order: 2; }
	.ttcf-page__form { order: 1; }
	.ttcf-page__intro p:first-child { font-size: 18px; }
}
@media (max-width: 600px) {
	.ttcf-page { padding-top: 14px; }
	.ttcf-page__lead { font-size: 14.5px; }
	.ttcf-card { margin: 0 -4px; padding: 20px 16px 22px; border-left: 0; border-right: 0; }
	.ttcf-card__title { font-size: 22px; }
	.ttcf__section { margin-top: 20px; }
	.ttcf__legend { margin-bottom: 14px; }
	.ttcf__grid { grid-template-columns: 1fr; gap: 14px; }
	.ttcf input[type="text"], .ttcf input[type="email"], .ttcf input[type="tel"], .ttcf input[type="url"], .ttcf input[type="date"], .ttcf select, .ttcf textarea { font-size: 16px; min-height: 46px; }
	.ttcf__pill span { padding: 7px 12px; font-size: 13px; }
	.ttcf__submit { width: 100%; }
	.ttcf__note { flex-basis: 100%; }
	.ttcf-steps { padding: 16px; }
	.ttcf-done h3 { font-size: 22px; }
	.ttcf-done__ref dd { font-size: 19px; }
}
