/* ============================================================
   New look - contact page (global, English)
   Loaded after new-look/base.css and laid out like the Hebrew contact page: the heading on the soft grey,
   a dashed band with the white form panel beside a soft column for people who prefer to email, then the
   client logos. The form keeps its markup and script (reason dropdown, error summary, reCAPTCHA, honeypot,
   success panel); this file styles it and every state the script switches.
   Every rule is scoped under .ct (the page <main>).
   ============================================================ */

/* The section is first, under the fixed bar */
.ct-contact {
	padding-top: calc(68px + clamp(48px, 6vw, 88px));
	padding-bottom: 0;
}

.ct .ct-contact .acn-head {
	max-width: 820px;
}

/* ---------- The band: the form panel, then the column beside it ---------- */
.ct .ct-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	padding-inline: 0;
}

/* Same side spacing as the heading above, so the heading and the first field start on one line */
.ct .ct-contact__panel {
	padding: clamp(28px, 4.5vw, 56px) var(--acn-pad);
	border-inline-end: 1px solid var(--acn-line);
	background: #ffffff;
}

.ct .ct-contact__panel-title {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.3;
}

.ct .ct-contact__panel-text {
	margin: 8px 0 28px;
	color: var(--acn-muted);
}

.ct .ct-contact__aside {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 4.5vw, 56px) var(--acn-pad);
}

/* The team, overlapping, each with a white ring */
.ct .ct-contact__avatars {
	display: flex;
}

.ct .ct-contact__avatars img {
	width: 44px;
	height: 44px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	object-fit: cover;
	background: var(--acn-line);
}

.ct .ct-contact__avatars img + img {
	margin-inline-start: -10px;
}

.ct .ct-contact__intro {
	margin-top: 20px;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.45;
}

.ct .ct-contact__text {
	margin-top: 12px;
	color: var(--acn-muted);
	line-height: 1.7;
}

/* Email and what to expect, between dashed rules */
.ct .ct-contact__ways {
	margin-top: 28px;
	border-bottom: 1px dashed var(--acn-line);
}

.ct .ct-contact__way {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding-block: 16px;
	border-top: 1px dashed var(--acn-line);
	color: var(--acn-muted);
}

.ct .ct-contact__way a,
.ct .ct-contact__way b {
	color: var(--acn-ink);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
}

.ct .ct-contact__way a:hover {
	color: var(--acn-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- The form: two columns of fields; the reason and the message across both ---------- */
.ct .tnv-contact__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 20px;
}

.ct .tnv-contact__field {
	min-width: 0;
}

.ct .tnv-contact__field--full,
.ct .tnv-contact__summary,
.ct .tnv-contact__captcha,
.ct .tnv-contact__submit,
.ct .tnv-contact__legal {
	grid-column: 1 / -1;
}

.ct .tnv-contact__label {
	display: block;
	margin-bottom: 8px;
	color: var(--acn-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ct .tnv-contact__required {
	color: var(--acn-muted);
	font-weight: 400;
}

.ct .tnv-contact__optional {
	color: var(--acn-muted);
	font-weight: 400;
}

/* Fields: a light tinted fill and a 3:1 border (WCAG 1.4.11); white with the purple ring while typing */
.ct .tnv-contact__input,
.ct .tnv-contact__combo-trigger {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #8b8998;
	border-radius: 10px;
	background: #f6f5f9;
	color: var(--acn-ink);
	font: 400 1rem/1.4 inherit;
	text-align: left;
	box-shadow: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ct .tnv-contact__textarea {
	height: auto;
	min-height: 120px;
	padding-block: 14px;
	resize: vertical;
}

.ct .tnv-contact__input::placeholder {
	color: #6f6d7a;
	opacity: 1;
}

.ct .tnv-contact__input:hover,
.ct .tnv-contact__combo-trigger:hover {
	border-color: #6c6a79;
}

.ct .tnv-contact__input:focus,
.ct .tnv-contact__combo-trigger:focus-visible,
.ct .tnv-contact__combo-trigger[aria-expanded="true"] {
	border-color: var(--acn-accent);
	background: #ffffff;
	outline: 3px solid rgba(142, 86, 220, 0.35);
	outline-offset: 0;
}

/* A field the script marked wrong: red border, and its message under it */
.ct .tnv-contact__field.is-error .tnv-contact__input,
.ct .tnv-contact__field.is-error .tnv-contact__combo-trigger {
	border-color: #b3261e;
}

.ct .tnv-contact__error {
	display: none;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0;
	color: #b3261e;
	font-size: 0.875rem;
	font-weight: 500;
}

.ct .tnv-contact__error.is-visible {
	display: flex;
}

.ct .tnv-contact__error.is-visible::before {
	content: "!";
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #b3261e;
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

/* ---------- The reason dropdown ---------- */
.ct .tnv-contact__combo {
	position: relative;
}

.ct .tnv-contact__combo-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
}

.ct .tnv-contact__combo-trigger-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ct .tnv-contact__combo-selected-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 20px;
	height: 20px;
	color: var(--acn-muted);
}

.ct .tnv-contact__combo-selected-icon svg {
	width: 20px;
	height: 20px;
}

.ct .tnv-contact__combo-value {
	overflow: hidden;
	color: var(--acn-ink);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* The placeholder before a reason is picked */
.ct .tnv-contact__combo-value[data-combo-placeholder] {
	color: #6f6d7a;
}

.ct .tnv-contact__combo-arrow {
	flex: 0 0 auto;
	width: 12px;
	height: 8px;
	color: var(--acn-muted);
	transition: transform 0.15s ease;
}

.ct .tnv-contact__combo-trigger[aria-expanded="true"] .tnv-contact__combo-arrow {
	transform: rotate(180deg);
}

.ct .tnv-contact__combo-list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 50;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--acn-line);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 24px 48px -28px rgba(20, 16, 40, 0.28);
	list-style: none;
}

.ct .tnv-contact__combo-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
}

.ct .tnv-contact__combo-opt:hover,
.ct .tnv-contact__combo-opt.is-active {
	background: var(--acn-soft);
}

.ct .tnv-contact__combo-opt[aria-selected="true"] {
	background: #f7f2fe;
}

/* The keyboard's current option gets a visible ring, not only a tint */
.ct .tnv-contact__combo-opt.is-active {
	box-shadow: inset 0 0 0 2px var(--acn-accent);
}

/* Icons in the quiet squares used in the header menu: purple on the current or chosen option */
.ct .tnv-contact__combo-opt-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--acn-line);
	border-radius: 10px;
	background: var(--acn-soft);
	color: #4a4858;
}

.ct .tnv-contact__combo-opt-icon svg {
	width: 20px;
	height: 20px;
}

.ct .tnv-contact__combo-opt.is-active .tnv-contact__combo-opt-icon,
.ct .tnv-contact__combo-opt[aria-selected="true"] .tnv-contact__combo-opt-icon {
	border-color: #ddd0f3;
	background: #ffffff;
	color: var(--acn-accent-hover);
}

.ct .tnv-contact__combo-opt-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ct .tnv-contact__combo-opt-title {
	color: var(--acn-ink);
	font-weight: 500;
}

.ct .tnv-contact__combo-opt-desc {
	color: var(--acn-muted);
	font-size: 0.875rem;
}

/* ---------- Error summary (shown, and focused, after a failed send) ---------- */
.ct .tnv-contact__summary {
	padding: 16px 18px;
	border: 1px solid #e3b2ae;
	border-radius: 10px;
	background: #fdf3f2;
	color: #8c1d18;
}

.ct .tnv-contact__summary:focus-visible {
	outline: 3px solid #b3261e;
	outline-offset: 2px;
}

.ct .tnv-contact__summary-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ct .tnv-contact__summary-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 20px;
	height: 20px;
	color: #b3261e;
}

.ct .tnv-contact__summary-icon svg {
	width: 20px;
	height: 20px;
}

.ct .tnv-contact__summary-title {
	font-weight: 500;
}

.ct .tnv-contact__summary-list {
	margin: 8px 0 0;
	padding-inline-start: 30px;
	list-style: disc;
}

.ct .tnv-contact__summary-list li + li {
	margin-top: 4px;
}

.ct .tnv-contact__summary-list a {
	color: #8c1d18;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Honeypot: off screen for people, still in the form for bots ---------- */
.ct .tnv-contact__honeypot {
	position: fixed !important;
	top: -10000px !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ---------- reCAPTCHA (shown on the first send) ---------- */
.ct .tnv-contact__captcha {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px dashed var(--acn-line);
	border-radius: 10px;
	background: var(--acn-soft);
}

.ct .tnv-contact__captcha-widget > div {
	max-width: 100%;
}

.ct .tnv-contact__captcha.is-error {
	border: 1px solid #b3261e;
	background: #fdf3f2;
}

.ct .tnv-contact__captcha-error {
	margin: 0;
	color: #b3261e;
	font-size: 0.875rem;
	font-weight: 500;
}

/* ---------- Send ---------- */
.ct .tnv-contact__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	justify-self: start;
	min-height: 48px;
	margin-top: 10px;
	padding: 12px 22px;
	border: 0;
	border-radius: 48px;
	background: var(--acn-accent);
	color: #ffffff;
	font: 500 1rem/1.2 inherit;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ct .tnv-contact__submit:hover {
	background: var(--acn-accent-hover);
}

.ct .tnv-contact__submit-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--acn-ease);
}

.ct .tnv-contact__submit:hover .tnv-contact__submit-icon {
	transform: translateX(2px);
}

.ct .tnv-contact__submit-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: ct-spin 0.7s linear infinite;
}

.ct .tnv-contact__submit.is-loading {
	background: var(--acn-accent-hover);
	cursor: progress;
	pointer-events: none;
}

.ct .tnv-contact__submit.is-loading .tnv-contact__submit-text,
.ct .tnv-contact__submit.is-loading .tnv-contact__submit-icon {
	display: none;
}

.ct .tnv-contact__submit.is-loading .tnv-contact__submit-spinner {
	display: inline-block;
}

/* Waiting for the captcha: the site's soft button, still readable */
.ct .tnv-contact__submit:disabled {
	background: var(--acn-line);
	color: var(--acn-muted);
	cursor: not-allowed;
}

@keyframes ct-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.ct .tnv-contact__submit-spinner {
		animation-duration: 1.6s;
	}
}

.ct .tnv-contact__legal {
	color: var(--acn-muted);
	font-size: 0.875rem;
}

/* ---------- Success (the script swaps it in for the form) ---------- */
.ct .tnv-contact__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 460px;
	text-align: center;
}

.ct .tnv-contact__success-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	color: var(--acn-accent);
}

.ct .tnv-contact__success-icon svg {
	width: 56px;
	height: 56px;
}

.ct .tnv-contact__success-title {
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.25;
}

.ct .tnv-contact__success-title:focus {
	outline: none;
}

.ct .tnv-contact__success-text {
	max-width: 34em;
	margin-top: 10px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
}

.ct .tnv-contact__success-text strong {
	color: var(--acn-ink);
	font-weight: 500;
}

.ct .tnv-contact__success-meta {
	width: 100%;
	max-width: 420px;
	margin-top: 24px;
	border-bottom: 1px dashed var(--acn-line);
}

.ct .tnv-contact__success-meta-item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
	border-top: 1px dashed var(--acn-line);
	color: var(--acn-muted);
	font-size: 0.9375rem;
}

.ct .tnv-contact__success-meta-value {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--acn-ink);
	font-weight: 500;
}

.ct .tnv-contact__success-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2f8a4c;
}

.ct .tnv-contact__success-again {
	min-height: 48px;
	margin-top: 28px;
	padding: 12px 22px;
	border: 0;
	border-radius: 48px;
	background: var(--acn-line);
	color: var(--acn-ink);
	font: 500 1rem/1.2 inherit;
	cursor: pointer;
}

.ct .tnv-contact__success-again:hover {
	background: #d9dade;
}

/* The success ring and tick draw in when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
	.ct .tnv-contact__success-ring {
		stroke-dasharray: 189;
		stroke-dashoffset: 189;
		animation: ct-draw 0.7s var(--acn-ease) forwards;
	}

	.ct .tnv-contact__success-check {
		stroke-dasharray: 40;
		stroke-dashoffset: 40;
		animation: ct-draw 0.45s var(--acn-ease) 0.45s forwards;
	}

	@keyframes ct-draw {
		to { stroke-dashoffset: 0; }
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.ct .ct-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct .ct-contact__panel {
		border-inline-end: 0;
		border-bottom: 1px solid var(--acn-line);
	}
}

@media (max-width: 767px) {
	.ct .tnv-contact__form {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct .tnv-contact__submit {
		justify-self: stretch;
	}
}

/* Thank-you summary: wider, one line per row, label on the left and value on the right */
.ct .tnv-contact__success-meta {
	max-width: 560px;
}

.ct .tnv-contact__success-meta-item {
	align-items: center;
}

.ct .tnv-contact__success-meta-label {
	flex: 0 0 auto;
	white-space: nowrap;
	text-align: left;
}

.ct .tnv-contact__success-meta-value {
	flex: 0 1 auto;
	justify-content: flex-end;
	overflow: hidden;
	overflow-wrap: normal;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: right;
}

/* Phone: a long email wraps under itself on the right instead of being cut off */
@media (max-width: 600px) {
	.ct .tnv-contact__success-meta-value {
		overflow: visible;
		white-space: normal;
		overflow-wrap: anywhere;
	}
}
