:root {
	--contact-ink: #1f3a44;
	--contact-strong: #075e63;
	--contact-muted: #607781;
	--contact-teal: #047d80;
	--contact-teal-dark: #055f63;
	--contact-soft: #e8fbfb;
	--contact-page: #f4fbfc;
	--contact-surface: #ffffff;
	--contact-line: #d9e8eb;
	--contact-focus: rgba(4, 125, 128, 0.2);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
	font-family: "Mitr", "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
	color: var(--contact-ink);
	background: var(--contact-page);
}

body {
	overflow-x: hidden;
}

a,
a:hover {
	text-decoration: none;
}

.contact-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(
			circle at 88% 8%,
			rgba(4, 125, 128, 0.09),
			transparent 28rem
		),
		linear-gradient(180deg, #f9fefe 0, var(--contact-page) 36rem);
}

.contact-topbar {
	min-height: 88px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 12px max(28px, calc((100vw - 1160px) / 2));
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(4, 125, 128, 0.12);
}

.contact-brand {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--contact-strong);
}

.contact-brand:hover,
.contact-brand:focus {
	color: var(--contact-strong);
}

.contact-brand__logo {
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 60px;
	overflow: hidden;
}

.contact-brand__logo img {
	width: 58px;
	height: 58px;
	object-fit: contain;
}

.contact-brand__text strong,
.contact-brand__text span {
	display: block;
}

.contact-brand__text strong {
	font-size: 1.18rem;
	line-height: 1.25;
	font-weight: 600;
}

.contact-brand__text span {
	margin-top: 3px;
	color: var(--contact-muted);
	font-size: 0.82rem;
	line-height: 1.35;
}

.contact-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.contact-nav__link {
	min-height: 42px;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid rgba(4, 125, 128, 0.3);
	border-radius: 999px;
	color: var(--contact-teal-dark);
	background: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.tpt-contact-img {
	width: 320px;
	height: 320px;
	object-fit: contain;
	display: block;
}

.contact-nav__link:hover,
.contact-nav__link:focus-visible {
	color: #fff;
	background: var(--contact-teal);
	border-color: var(--contact-teal);
	transform: translateY(-1px);
}

.contact-nav__link--primary {
	color: #fff;
	background: var(--contact-teal);
	border-color: var(--contact-teal);
}

.contact-nav__link--primary:hover,
.contact-nav__link--primary:focus-visible {
	background: var(--contact-teal-dark);
	border-color: var(--contact-teal-dark);
}

.contact-main {
	width: min(1160px, calc(100% - 48px));
	margin: 0 auto;
	padding: 46px 0 64px;
	flex: 1;
}

.contact-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	padding: 6px 0 40px;
	text-align: left;
}

.contact-hero__visual {
	width: 138px;
	height: 138px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 138px;
	border-radius: 50%;
	color: var(--contact-teal-dark);
	background: #dff7f8;
}

.contact-hero__visual::before {
	content: "";
	width: 102px;
	height: 102px;
	position: absolute;
	border-radius: 50%;
	background: #fff;
}

.contact-hero__headset {
	position: relative;
	z-index: 1;
	font-size: 3.4rem;
}

.contact-hero__bubble {
	width: 38px;
	height: 38px;
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	font-size: 0.95rem;
}

.contact-hero__bubble--mail {
	top: 5px;
	right: 0;
	background: #f2aa43;
}

.contact-hero__bubble--chat {
	bottom: 3px;
	left: 0;
	background: #5aaec2;
}

.contact-hero__content {
	max-width: 650px;
}

.contact-hero h1 {
	margin: 0;
	color: var(--contact-ink);
	font-size: 2.45rem;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.contact-hero h1 strong {
	color: var(--contact-teal-dark);
	font-weight: 600;
}

.contact-hero p {
	max-width: 66ch;
	margin: 14px 0 0;
	color: var(--contact-muted);
	font-size: 1rem;
	line-height: 1.75;
	text-wrap: pretty;
}

.contact-details {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
	overflow: hidden;
	border-radius: 16px;
	background: var(--contact-surface);
	box-shadow: 0 8px 24px rgba(31, 58, 68, 0.09);
}

.contact-details__info {
	min-width: 0;
	padding: 30px 32px;
}

.contact-details__heading {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	text-align: left;
}

.contact-details__icon,
.team-section__icon {
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	border-radius: 12px;
	color: var(--contact-teal-dark);
	background: var(--contact-soft);
	font-size: 1.05rem;
}

.contact-details h2 {
	margin: 0;
	color: var(--contact-strong);
	font-size: 1.35rem;
	line-height: 1.35;
	font-weight: 600;
}

.contact-details__heading p {
	margin: 4px 0 0;
	color: var(--contact-muted);
	font-size: 0.88rem;
}

.contact-channels {
	margin: 25px 0 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--contact-line);
	font-style: normal;
}

.contact-channel--address {
	grid-column: 1 / -1;
}

.contact-channel {
	min-width: 0;
	padding: 20px 18px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--contact-ink);
}

.contact-channel + .contact-channel {
	border-left: 1px solid var(--contact-line);
}

.contact-channel--address + .contact-channel {
	border-left: 0;
}

.contact-channel:not(.contact-channel--address) {
	border-top: 1px solid var(--contact-line);
}

.contact-channel > i {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	border-radius: 50%;
	color: var(--contact-teal-dark);
	background: var(--contact-soft);
}

.contact-channel span,
.contact-channel strong {
	display: block;
}

.contact-channel span {
	margin-bottom: 4px;
	color: var(--contact-muted);
	font-size: 0.76rem;
}

.contact-channel strong {
	color: var(--contact-ink);
	font-size: 0.88rem;
	line-height: 1.55;
	font-weight: 500;
	overflow-wrap: anywhere;
}

a.contact-channel:hover strong {
	color: var(--contact-teal-dark);
}

.contact-line {
	min-width: 0;
	padding: 26px 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	border-left: 1px solid #d9eee2;
	background: #effbf5;
	text-align: center;
}

.contact-line__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.contact-line__logo {
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 64px;
	overflow: hidden;
	border-radius: 12px;
}

.contact-line__logo img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.contact-line h3 {
	margin: 0;
	color: var(--contact-ink);
	font-size: 1.02rem;
	line-height: 1.4;
	font-weight: 600;
}

.contact-line p {
	margin: 5px 0 0;
	color: var(--contact-muted);
	font-size: 0.84rem;
	line-height: 1.6;
}

.contact-line__qr {
	width: 150px;
	height: 150px;
	display: block;
	flex: 0 0 150px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.contact-teams {
	padding-top: 48px;
}

.contact-section-heading {
	margin-bottom: 24px;
	text-align: center;
}

.contact-section-heading h2 {
	margin: 0;
	color: var(--contact-ink);
	font-size: 1.55rem;
	line-height: 1.35;
	font-weight: 600;
}

.contact-section-heading p {
	margin: 8px 0 0;
	color: var(--contact-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.team-section {
	overflow: hidden;
	margin-top: 18px;
	border-radius: 16px;
	background: var(--contact-surface);
	box-shadow: 0 8px 24px rgba(31, 58, 68, 0.08);
}

.team-section__heading {
	padding: 22px 26px;
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 1px solid var(--contact-line);
	background: #fbfefe;
}

.team-section__heading h3 {
	margin: 0;
	color: var(--contact-strong);
	font-size: 1.15rem;
	line-height: 1.4;
	font-weight: 600;
}

.team-section__heading p {
	margin: 5px 0 0;
	color: var(--contact-muted);
	font-size: 0.84rem;
	line-height: 1.55;
}

.team-members {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-member {
	min-width: 0;
	padding: 26px 32px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.team-member + .team-member {
	border-left: 1px solid var(--contact-line);
}

.team-member__avatar {
	width: 120px;
	height: 120px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 120px;
	border-radius: 50%;
	color: #294651;
	background: var(--contact-soft);
	font-size: 1.45rem;
	font-weight: 600;
}

.team-member__avatar img {
	width: 120px;
	height: 120px;
	position: relative;
	z-index: 1;
	display: block;
	object-fit: cover;
	object-position: center;
}

.team-member__initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.team-member__details h4 {
	margin: 0;
	color: var(--contact-ink);
	font-size: 1.05rem;
	line-height: 1.5;
	font-weight: 600;
	text-wrap: balance;
}

.team-member__details p {
	margin: 7px 0 0;
	color: var(--contact-teal-dark);
	font-size: 0.88rem;
	line-height: 1.5;
	font-weight: 500;
}

.contact-brand:focus-visible,
.contact-nav__link:focus-visible,
.contact-channel:focus-visible {
	outline: 3px solid var(--contact-focus);
	outline-offset: 3px;
}

.contact-footer {
	padding: 22px 24px;
	border-top: 1px solid var(--contact-line);
	color: var(--contact-muted);
	background: #fff;
	text-align: center;
}

.contact-footer p {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.6;
}

@media (max-width: 880px) {
	.contact-brand__text span {
		display: none;
	}
	.contact-nav__link span {
		display: none;
	}
	.contact-nav__link {
		width: 42px;
		padding: 0;
	}
	.contact-main {
		width: min(100% - 36px, 1160px);
		padding-top: 34px;
	}
	.contact-details {
		grid-template-columns: minmax(0, 1fr);
	}
	.contact-channels {
		grid-template-columns: 1fr;
	}
	.contact-channel--address {
		grid-column: auto;
	}
	.contact-channel + .contact-channel {
		border-top: 1px solid var(--contact-line);
		border-left: 0;
	}
	.contact-channel {
		padding: 18px 4px;
	}
	.contact-channel:last-child {
		padding-bottom: 0;
	}
	.contact-line {
		border-top: 1px solid #d9eee2;
		border-left: 0;
	}
}

@media (max-width: 640px) {
	.contact-topbar {
		min-height: 74px;
		gap: 10px;
		padding: 10px 16px;
	}
	.contact-brand {
		gap: 8px;
	}
	.contact-brand__logo {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}
	.contact-brand__logo img {
		width: 46px;
		height: 46px;
	}
	.contact-brand__text strong {
		font-size: 0.94rem;
	}
	.contact-nav {
		gap: 6px;
	}
	.contact-nav__link {
		width: 38px;
		min-height: 38px;
	}
	.contact-nav__link:nth-child(2) {
		display: none;
	}
	.contact-main {
		width: calc(100% - 24px);
		padding: 26px 0 42px;
	}
	.contact-hero {
		flex-direction: column;
		gap: 22px;
		padding-bottom: 30px;
		text-align: center;
	}
	.contact-hero__visual {
		width: 116px;
		height: 116px;
		flex-basis: 116px;
	}
	.contact-hero__visual::before {
		width: 84px;
		height: 84px;
	}
	.contact-hero__headset {
		font-size: 2.8rem;
	}
	.contact-hero__bubble {
		width: 32px;
		height: 32px;
	}
	.contact-hero h1 {
		font-size: 1.8rem;
	}
	.contact-hero p {
		font-size: 0.9rem;
	}
	.contact-details {
		padding: 0;
	}
	.contact-details__info {
		padding: 22px 18px;
	}
	.contact-details__heading {
		align-items: flex-start;
		justify-content: flex-start;
	}
	.contact-details h2 {
		font-size: 1.08rem;
	}
	.contact-line {
		padding: 20px 16px;
		flex-direction: column;
		gap: 18px;
		text-align: center;
	}
	.contact-line__content {
		flex-direction: column;
		gap: 10px;
	}
	.contact-line__qr {
		width: 124px;
		height: 124px;
		flex-basis: 124px;
	}
	.contact-teams {
		padding-top: 36px;
	}
	.team-section__heading {
		padding: 20px 18px;
		align-items: flex-start;
	}
	.team-members {
		grid-template-columns: minmax(0, 1fr);
	}
	.team-member {
		padding: 22px 20px;
		gap: 16px;
	}
	.team-member + .team-member {
		border-top: 1px solid var(--contact-line);
		border-left: 0;
	}
	.team-member__avatar {
		width: 74px;
		height: 74px;
		flex-basis: 74px;
		font-size: 1.15rem;
	}
	.team-member__details h4 {
		font-size: 0.96rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
