/**
 * TutorBridgePro Contact Experience v0.7.8
 * Premium bilingual layout with truthful support pathways and a working form.
 */

.tbp-contact-page {
	--tbp-contact-blue: #1278e7;
	--tbp-contact-blue-deep: #0756b4;
	--tbp-contact-gold: #d4af37;
	--tbp-contact-violet: #7657e8;
	--tbp-contact-green: #169b72;
	background: var(--tbp-color-background);
	color: var(--tbp-color-text);
}

.tbp-contact-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(4.8rem, 10vw, 8.2rem) clamp(7.4rem, 13vw, 10rem);
	background:
		radial-gradient(circle at 12% 18%, rgb(18 120 231 / 31%), transparent 29rem),
		radial-gradient(circle at 88% 20%, rgb(212 175 55 / 18%), transparent 24rem),
		linear-gradient(137deg, #071b33 0%, #0b1f3a 48%, #10345c 100%);
	color: #fff;
	text-align: center;
}

.tbp-contact-hero__grid {
	position: absolute;
	z-index: -2;
	inset: 0;
	opacity: .17;
	background-image:
		linear-gradient(rgb(255 255 255 / 12%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 12%) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.tbp-contact-hero__orb {
	position: absolute;
	z-index: -1;
	width: 24rem;
	height: 24rem;
	border-radius: 50%;
	filter: blur(10px);
	pointer-events: none;
}

.tbp-contact-hero__orb--one {
	inset-block-start: -11rem;
	inset-inline-start: -8rem;
	background: rgb(18 120 231 / 22%);
}

.tbp-contact-hero__orb--two {
	inset-block-end: -13rem;
	inset-inline-end: -7rem;
	background: rgb(212 175 55 / 14%);
}

.tbp-contact-hero__inner {
	max-width: 57rem;
	margin-inline: auto;
}

.tbp-contact-hero__icon {
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
	margin: 0 auto 1.5rem;
	border: 1px solid rgb(255 255 255 / 24%);
	border-radius: 1.7rem;
	background: linear-gradient(145deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 7%));
	box-shadow: 0 1.4rem 3.6rem rgb(0 0 0 / 25%), inset 0 1px 0 rgb(255 255 255 / 35%);
	backdrop-filter: blur(12px);
	transform: rotate(-3deg);
}

html[dir="rtl"] .tbp-contact-hero__icon { transform: rotate(3deg); }
.tbp-contact-hero__icon .tbp-visual-icon { width: 4.1rem; height: 4.1rem; }

.tbp-contact-kicker {
	margin: 0 0 .72rem;
	color: #efc94f;
	font-weight: 900;
	letter-spacing: .045em;
}

.tbp-contact-hero h1 {
	max-width: 54rem;
	margin: 0 auto;
	color: #fff;
	font-size: clamp(2.55rem, 6.4vw, 5rem);
	line-height: 1.08;
	letter-spacing: -.045em;
}

.tbp-contact-lead {
	max-width: 48rem;
	margin: 1.25rem auto 0;
	color: rgb(255 255 255 / 82%);
	font-size: clamp(1.02rem, 2vw, 1.22rem);
	line-height: 1.9;
}

.tbp-contact-section { padding-block: clamp(3.5rem, 7vw, 6.2rem); }
.tbp-contact-section--methods { position: relative; z-index: 2; padding-block-start: 0; }
.tbp-contact-section--form { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tbp-contact-blue) 4%, var(--tbp-color-background))); }

.tbp-contact-methods {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: clamp(-5.6rem, -7vw, -4.1rem);
}

.tbp-contact-method {
	--tbp-method-a: var(--tbp-contact-blue);
	--tbp-method-b: var(--tbp-contact-blue-deep);
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 1.05rem;
	min-width: 0;
	min-height: 10.8rem;
	padding: 1.45rem;
	border: 1px solid color-mix(in srgb, var(--tbp-method-a) 24%, var(--tbp-color-border));
	border-radius: 1.4rem;
	background: linear-gradient(145deg, color-mix(in srgb, var(--tbp-method-a) 5%, var(--tbp-color-surface)), var(--tbp-color-surface) 48%);
	box-shadow: 0 1.35rem 3.2rem rgb(11 31 58 / 13%);
	overflow: hidden;
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tbp-contact-method::before {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 1.5rem;
	width: 4.2rem;
	height: 3px;
	border-radius: 0 0 99px 99px;
	background: linear-gradient(90deg, var(--tbp-method-a), var(--tbp-method-b));
	content: "";
}

.tbp-contact-method::after {
	position: absolute;
	inset-block-start: -4rem;
	inset-inline-end: -4rem;
	width: 11rem;
	height: 11rem;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--tbp-method-a) 16%, transparent), transparent 70%);
	content: "";
}

.tbp-contact-method--gold { --tbp-method-a: #d4af37; --tbp-method-b: #a3750d; }
.tbp-contact-method--violet { --tbp-method-a: #7657e8; --tbp-method-b: #4934a9; }

.tbp-contact-method:hover {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--tbp-method-a) 47%, var(--tbp-color-border));
	box-shadow: 0 1.7rem 3.7rem rgb(11 31 58 / 17%);
}

.tbp-contact-method__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 1.2rem;
	background: color-mix(in srgb, var(--tbp-method-a) 9%, var(--tbp-color-surface));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tbp-method-a) 20%, transparent);
}

.tbp-contact-method__icon .tbp-visual-icon { width: 3.15rem; height: 3.15rem; }
.tbp-contact-method > div { position: relative; z-index: 1; min-width: 0; }
.tbp-contact-method h2 { margin: .15rem 0 .4rem; font-size: 1.16rem; }
.tbp-contact-method p { margin: 0; color: var(--tbp-color-text-muted); font-size: .91rem; line-height: 1.72; }
.tbp-contact-method a { display: inline-block; max-width: 100%; margin-top: .65rem; color: var(--tbp-color-primary); font-size: .84rem; font-weight: 850; text-decoration: none; overflow-wrap: anywhere; }
.tbp-contact-method a:hover { text-decoration: underline; text-underline-offset: .2em; }

.tbp-contact-promises {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 1.35rem;
	border: 1px solid var(--tbp-color-border);
	border-radius: 1.25rem;
	background: var(--tbp-color-border);
	overflow: hidden;
}

.tbp-contact-promise {
	display: flex;
	align-items: center;
	gap: .85rem;
	min-width: 0;
	padding: 1.05rem 1.15rem;
	background: var(--tbp-color-surface);
}

.tbp-contact-promise > span {
	display: grid;
	place-items: center;
	flex: 0 0 2.8rem;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: .85rem;
	background: color-mix(in srgb, var(--tbp-contact-blue) 8%, var(--tbp-color-surface));
}

.tbp-contact-promise .tbp-visual-icon { width: 2.15rem; height: 2.15rem; }
.tbp-contact-promise div { min-width: 0; }
.tbp-contact-promise strong, .tbp-contact-promise small { display: block; }
.tbp-contact-promise strong { color: var(--tbp-color-heading); font-size: .91rem; }
.tbp-contact-promise small { margin-top: .16rem; color: var(--tbp-color-text-muted); font-size: .76rem; line-height: 1.5; }

.tbp-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
	align-items: start;
	gap: clamp(1.25rem, 3vw, 2.2rem);
}

.tbp-contact-card,
.tbp-contact-aside {
	border: 1px solid var(--tbp-color-border);
	border-radius: 1.65rem;
	background: var(--tbp-color-surface);
	box-shadow: 0 1.6rem 4rem rgb(11 31 58 / 10%);
}

.tbp-contact-card { padding: clamp(1.4rem, 4vw, 2.8rem); }
.tbp-contact-card__heading { max-width: 42rem; margin-bottom: 1.85rem; }
.tbp-contact-card__heading h2, .tbp-contact-aside__heading h2 { margin: 0 0 .7rem; font-size: clamp(1.65rem, 3.3vw, 2.35rem); line-height: 1.25; }
.tbp-contact-card__heading > p:last-child { margin: 0; color: var(--tbp-color-text-muted); line-height: 1.75; }

.tbp-contact-status {
	margin-bottom: 1.25rem;
	padding: 1rem 1.1rem;
	border-radius: 1rem;
	font-weight: 750;
	line-height: 1.65;
}

.tbp-contact-status--error { border: 1px solid color-mix(in srgb, var(--tbp-color-danger) 45%, transparent); background: color-mix(in srgb, var(--tbp-color-danger) 9%, var(--tbp-color-surface)); color: var(--tbp-color-danger); }
.tbp-contact-status--success { border: 1px solid color-mix(in srgb, var(--tbp-contact-green) 43%, transparent); background: color-mix(in srgb, var(--tbp-contact-green) 10%, var(--tbp-color-surface)); color: var(--tbp-contact-green); }

.tbp-contact-form { display: grid; gap: 1.18rem; }
.tbp-contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tbp-contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbp-contact-field { display: grid; gap: .53rem; }

.tbp-contact-field label {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--tbp-color-heading);
	font-size: .91rem;
	font-weight: 850;
}

.tbp-contact-field label > span {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: .55rem;
	background: color-mix(in srgb, var(--tbp-color-primary) 10%, var(--tbp-color-surface));
}

.tbp-contact-field label .tbp-visual-icon {
	width: .76rem;
	height: .76rem;
	filter: brightness(0) saturate(100%) invert(36%) sepia(81%) saturate(1695%) hue-rotate(194deg);
}

.tbp-contact-field label small {
	margin-inline-start: auto;
	padding: .2rem .42rem;
	border-radius: 99px;
	background: color-mix(in srgb, var(--tbp-contact-gold) 13%, var(--tbp-color-surface));
	color: color-mix(in srgb, var(--tbp-contact-gold) 72%, var(--tbp-color-heading));
	font-size: .67rem;
	font-weight: 850;
}

.tbp-contact-field input,
.tbp-contact-field select,
.tbp-contact-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 57px;
	padding: 12px 16px;
	border: 1px solid var(--tbp-color-border-strong);
	border-radius: .95rem;
	outline: none;
	background: color-mix(in srgb, var(--tbp-color-background) 37%, var(--tbp-color-surface));
	color: var(--tbp-color-text);
	font: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tbp-contact-field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.tbp-contact-field input::placeholder, .tbp-contact-field textarea::placeholder { color: color-mix(in srgb, var(--tbp-color-text-muted) 75%, transparent); }
.tbp-contact-field input:hover, .tbp-contact-field select:hover, .tbp-contact-field textarea:hover { border-color: color-mix(in srgb, var(--tbp-color-primary) 42%, var(--tbp-color-border-strong)); }
.tbp-contact-field input:focus, .tbp-contact-field select:focus, .tbp-contact-field textarea:focus { border-color: var(--tbp-color-primary); background: var(--tbp-color-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tbp-color-primary) 14%, transparent); }

.tbp-contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .72rem;
	min-height: 59px;
	padding: .9rem 1.55rem;
	border: 0;
	border-radius: .95rem;
	background: linear-gradient(135deg, var(--tbp-color-primary), #0a5db6);
	color: #fff;
	font-size: 1rem;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 .9rem 2rem rgb(18 120 231 / 24%);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tbp-contact-button:hover { transform: translateY(-2px); box-shadow: 0 1.12rem 2.4rem rgb(18 120 231 / 30%); filter: saturate(1.08); }
.tbp-contact-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--tbp-color-primary) 35%, transparent); outline-offset: 3px; }
.tbp-contact-button .tbp-visual-icon { width: 1.05rem; height: 1.05rem; }
html[dir="rtl"] .tbp-contact-button .tbp-visual-icon { transform: scaleX(-1); }

.tbp-contact-privacy-note { margin: -.15rem 0 0; color: var(--tbp-color-text-muted); font-size: .78rem; line-height: 1.65; text-align: center; }
.tbp-contact-privacy-note a { color: var(--tbp-color-primary); font-weight: 800; text-decoration: none; }
.tbp-contact-privacy-note a:hover { text-decoration: underline; }

.tbp-contact-aside {
	position: sticky;
	inset-block-start: 7.5rem;
	padding: clamp(1.3rem, 3vw, 2rem);
	background:
		radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--tbp-contact-blue) 9%, transparent), transparent 16rem),
		var(--tbp-color-surface);
}

.tbp-contact-aside__heading { margin-bottom: 1.5rem; }
.tbp-contact-aside__heading h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.tbp-contact-journey { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.tbp-contact-journey li {
	position: relative;
	display: grid;
	grid-template-columns: 2.55rem 1fr;
	gap: .9rem;
	padding-bottom: 1.35rem;
}

.tbp-contact-journey li:not(:last-child)::after {
	position: absolute;
	inset-block-start: 2.55rem;
	inset-block-end: 0;
	inset-inline-start: 1.25rem;
	width: 1px;
	background: linear-gradient(var(--tbp-contact-blue), color-mix(in srgb, var(--tbp-contact-blue) 15%, transparent));
	content: "";
}

.tbp-contact-journey li > span {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.55rem;
	height: 2.55rem;
	border: 1px solid color-mix(in srgb, var(--tbp-contact-blue) 25%, var(--tbp-color-border));
	border-radius: .82rem;
	background: color-mix(in srgb, var(--tbp-contact-blue) 9%, var(--tbp-color-surface));
	color: var(--tbp-color-primary);
	font-size: .72rem;
	font-weight: 950;
}

.tbp-contact-journey strong { display: block; margin: .12rem 0 .27rem; color: var(--tbp-color-heading); font-size: .94rem; }
.tbp-contact-journey p { margin: 0; color: var(--tbp-color-text-muted); font-size: .8rem; line-height: 1.62; }

.tbp-contact-help {
	display: grid;
	gap: .55rem;
	margin-top: .3rem;
	padding: 1rem;
	border: 1px solid var(--tbp-color-border);
	border-radius: 1rem;
	background: color-mix(in srgb, var(--tbp-contact-gold) 5%, var(--tbp-color-surface));
}

.tbp-contact-help > strong { margin-bottom: .15rem; font-size: .88rem; }
.tbp-contact-help a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--tbp-color-primary); font-size: .82rem; font-weight: 800; text-decoration: none; }
.tbp-contact-help a:hover { text-decoration: underline; text-underline-offset: .2em; }

.tbp-contact-email-chip {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-width: 0;
	margin-top: 1rem;
	padding: .85rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, #0b1f3a, #123b69);
	color: #fff;
	text-decoration: none;
}

.tbp-contact-email-chip > span:first-child { display: grid; place-items: center; flex: 0 0 2.7rem; width: 2.7rem; height: 2.7rem; border-radius: .75rem; background: rgb(255 255 255 / 10%); }
.tbp-contact-email-chip .tbp-visual-icon { width: 2.05rem; height: 2.05rem; }
.tbp-contact-email-chip > span:last-child { min-width: 0; }
.tbp-contact-email-chip small, .tbp-contact-email-chip strong { display: block; }
.tbp-contact-email-chip small { color: rgb(255 255 255 / 64%); font-size: .67rem; }
.tbp-contact-email-chip strong { margin-top: .16rem; font-size: .77rem; overflow-wrap: anywhere; }

html[data-theme="dark"] .tbp-contact-method,
html[data-theme="dark"] .tbp-contact-card,
html[data-theme="dark"] .tbp-contact-aside { box-shadow: none; }

@media (max-width: 980px) {
	.tbp-contact-methods { grid-template-columns: 1fr; margin-top: -4rem; }
	.tbp-contact-method { min-height: 0; }
	.tbp-contact-promises { grid-template-columns: 1fr; }
	.tbp-contact-layout { grid-template-columns: 1fr; }
	.tbp-contact-aside { position: static; }
}

@media (max-width: 640px) {
	.tbp-contact-hero { padding-block-start: 4rem; }
	.tbp-contact-hero h1 { letter-spacing: -.025em; }
	.tbp-contact-hero__icon { width: 5.25rem; height: 5.25rem; border-radius: 1.45rem; }
	.tbp-contact-hero__icon .tbp-visual-icon { width: 3.6rem; height: 3.6rem; }
	.tbp-contact-form__grid { grid-template-columns: 1fr; }
	.tbp-contact-card, .tbp-contact-aside { padding: 1.2rem; border-radius: 1.3rem; }
	.tbp-contact-method { grid-template-columns: 3.55rem 1fr; padding: 1.15rem; }
	.tbp-contact-method__icon { width: 3.55rem; height: 3.55rem; border-radius: 1rem; }
	.tbp-contact-method__icon .tbp-visual-icon { width: 2.65rem; height: 2.65rem; }
	.tbp-contact-promise { padding: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
	.tbp-contact-method,
	.tbp-contact-button { transition: none; }
}
