/**
 * Contact page — mirrors html_tntech/lien-he.html.
 */

.tntech-contact-page {
	background: #fff;
	padding-top: 5rem;
}

.tntech-contact-hero {
	position: relative;
	display: flex;
	min-height: 280px;
	align-items: center;
	overflow: hidden;
	background-image:
		linear-gradient(rgb(28 23 10 / 68%), rgb(28 23 10 / 68%)),
		url('../images/contact/contact-hero.webp');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}

.tntech-contact-hero__content {
	position: relative;
	z-index: 1;
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.tntech-contact-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(2.25rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	text-shadow: 0 4px 14px rgb(0 0 0 / 35%);
}

.tntech-contact-section {
	padding: 3rem 0;
	background: #fff;
}

.tntech-contact-grid {
	display: grid;
	gap: 3rem;
}

.tntech-contact-form-panel {
	padding: 1.5rem;
	border: 1px solid rgb(0 0 0 / 5%);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}

.tntech-contact-intro {
	margin: 0 0 2rem;
	color: #6c757d;
	font-size: 1.125rem;
	line-height: 1.75;
}

.tntech-contact-notice {
	margin-bottom: 1.5rem;
	padding: 0.85rem 1rem;
	border: 1px solid;
	border-radius: 0.5rem;
	font-size: 0.875rem;
}

.tntech-contact-notice--success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.tntech-contact-notice--error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.tntech-contact-form {
	display: grid;
	gap: 1.25rem;
}

.tntech-contact-field label {
	display: block;
	margin-bottom: 0.375rem;
	color: #212529;
	font-size: 0.875rem;
	font-weight: 600;
}

.tntech-contact-field label span {
	color: #dc2626;
}

.tntech-contact-field input,
.tntech-contact-field textarea {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	outline: none;
	background: #fff;
	color: #212529;
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tntech-contact-field textarea {
	min-height: 10rem;
	resize: vertical;
}

.tntech-contact-field input:focus,
.tntech-contact-field textarea:focus {
	border-color: #f4b811;
	box-shadow: 0 0 0 3px rgb(244 184 17 / 22%);
}

.tntech-contact-form__submit {
	text-align: right;
}

.tntech-contact-form__submit .btn-primary {
	min-width: 7rem;
	border: 0;
	cursor: pointer;
}

.tntech-contact-summary {
	position: relative;
	align-self: start;
	overflow: hidden;
	padding: 1.5rem;
	border-radius: 1rem;
	background: #2e2714;
	color: #fff;
	box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
}

.tntech-contact-summary::after {
	position: absolute;
	right: -5rem;
	bottom: -5rem;
	width: 12rem;
	height: 12rem;
	border-radius: 9999px;
	background: rgb(244 184 17 / 16%);
	content: '';
}

.tntech-contact-summary h2,
.tntech-contact-summary ul {
	position: relative;
	z-index: 1;
}

.tntech-contact-summary h2 {
	margin: 0 0 1.5rem;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
}

.tntech-contact-summary ul {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tntech-contact-summary li {
	display: flex;
	gap: 0.75rem;
	line-height: 1.65;
}

.tntech-contact-summary i {
	width: 1.25rem;
	flex: 0 0 1.25rem;
	margin-top: 0.3rem;
	color: #f4b811;
	text-align: center;
}

.tntech-contact-summary a {
	color: #fff;
	overflow-wrap: anywhere;
}

.tntech-contact-summary a:hover {
	color: #f4b811;
}

.tntech-contact-hotline {
	padding: 1rem 0 5rem;
	background: #fff;
}

.tntech-contact-hotline__grid {
	display: grid;
	align-items: center;
	gap: 2.5rem;
}

.tntech-contact-hotline__content {
	padding: 2rem 0;
}

.tntech-contact-hotline__content > h2 {
	margin: 0 0 1.25rem;
	color: #212529;
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
}

.tntech-contact-hotline__content > p {
	margin: 0 0 2rem;
	color: #6c757d;
	font-size: 1.125rem;
	line-height: 1.75;
}

.tntech-contact-method {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
	color: #212529;
	line-height: 1.65;
	text-decoration: none;
}

.tntech-contact-method i {
	width: 1.5rem;
	flex: 0 0 1.5rem;
	margin-top: 0.25rem;
	color: #936e07;
	font-size: 1.25rem;
	text-align: center;
}

.tntech-contact-method strong {
	display: block;
	margin-bottom: 0.25rem;
	color: #212529;
}

.tntech-contact-method span {
	color: #6c757d;
}

.tntech-contact-method:hover span {
	color: #936e07;
}

.tntech-contact-hotline__image {
	display: block;
	width: 100%;
	min-height: 360px;
	border-radius: 1rem;
	box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
	object-fit: cover;
}

@media (min-width: 640px) {
	.tntech-contact-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tntech-contact-field--wide,
	.tntech-contact-form__submit {
		grid-column: span 2 / span 2;
	}
}

@media (min-width: 768px) {
	.tntech-contact-hero {
		min-height: 340px;
		background-attachment: fixed;
	}

	.tntech-contact-hero__content {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}

	.tntech-contact-section {
		padding: 4rem 0;
	}

	.tntech-contact-form-panel,
	.tntech-contact-summary {
		padding: 2rem;
	}

	.tntech-contact-hotline {
		padding-bottom: 5rem;
	}

	.tntech-contact-hotline__image {
		min-height: 520px;
	}
}

@media (min-width: 1024px) {
	.tntech-contact-grid {
		grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
		gap: 4rem;
	}

	.tntech-contact-hotline__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tntech-contact-hero {
		background-attachment: scroll;
	}
}

/* -------------------------------------------------------------------------- */
/* Elementor HTML widget compatibility                                        */
/* Use these classes when importing the html_tntech/lien-he.html markup.       */
/* -------------------------------------------------------------------------- */

.contact-hero {
	position: relative;
	display: flex;
	min-height: 280px;
	align-items: center;
	overflow: hidden;
	background-image:
		linear-gradient(rgb(28 23 10 / 68%), rgb(28 23 10 / 68%)),
		url('../images/contact/contact-hero.webp');
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}

.contact-form-panel {
	padding: 1.5rem;
	border: 1px solid rgb(0 0 0 / 5%);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}

.contact-summary-card {
	position: relative;
	overflow: hidden;
	padding: 1.5rem;
	border-radius: 1rem;
	background: #2e2714;
	color: #fff;
	box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
}

.contact-summary-card::after {
	position: absolute;
	right: -5rem;
	bottom: -5rem;
	width: 12rem;
	height: 12rem;
	border-radius: 9999px;
	background: rgb(244 184 17 / 16%);
	content: '';
}

.contact-hotline-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	border-radius: 1rem;
	box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
	object-fit: cover;
}

.break-all {
	word-break: break-all !important;
}

@media (min-width: 768px) {
	.contact-hero {
		min-height: 340px;
	}

	.contact-form-panel,
	.contact-summary-card {
		padding: 2rem;
	}

	.contact-hotline-image {
		min-height: 520px;
	}
}

@media (min-width: 1024px) {
	.lg\:col-span-8 {
		grid-column: span 8 / span 8 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-hero {
		background-attachment: scroll;
	}
}
