/**
 * Contact page component styles.
 */

.ankhang-contact {
	--ankhang-theme-primary: var(--wp--preset--color--primary, var(--primary-color, #1c22cc));
}

.ankhang-contact-hero {
	background: var(--ankhang-theme-primary);
	color: #fff;
	padding: 64px 20px;
	text-align: center;
	background-size: cover;
	background-position: center;
}

.ankhang-contact-hero__inner {
	max-width: 860px;
	margin: 0 auto;
}

.ankhang-contact-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .86);
}

.ankhang-contact-hero__title {
	color: #fff !important;
	font-size: clamp(30px, 4vw, 52px);
	margin: 0 0 12px;
	line-height: 1.2;
}

.ankhang-contact-hero__subtitle {
	margin: 0 auto;
	max-width: 720px;
	color: rgba(255, 255, 255, .92);
	font-size: 18px;
}

.ankhang-contact__content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 54px;
}

.ankhang-contact-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
	height: 100%;
}

.ankhang-contact-card__title {
	font-size: 24px;
	margin: 0 0 16px;
	color: #0f172a;
}

.ankhang-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.ankhang-contact-list li,
.ankhang-contact-list a {
	color: #475569;
}

.ankhang-contact-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.ankhang-contact-social__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	padding: 10px 14px;
	border-radius: 999px;
	background: #eef2ff;
	color: var(--ankhang-theme-primary) !important;
	font-weight: 700;
}

.ankhang-contact-social__btn:hover {
	background: var(--ankhang-theme-primary);
	color: #fff !important;
}

.ankhang-contact-form__note {
	margin: 0 0 16px;
	color: #64748b;
}

.ankhang-contact-alert {
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-weight: 600;
}

.ankhang-contact-alert--success {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.ankhang-contact-alert--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.ankhang-contact-form {
	display: grid;
	gap: 14px;
}

.ankhang-contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ankhang-contact-form__field {
	display: grid;
	gap: 6px;
}

.ankhang-contact-form__label {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.ankhang-contact-form__label .required {
	color: #dc2626;
}

.ankhang-contact-form input,
.ankhang-contact-form textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	padding: 10px 12px;
	font-size: 15px;
	background: #fff;
	color: #0f172a;
}

.ankhang-contact-form input:focus,
.ankhang-contact-form textarea:focus {
	border-color: var(--ankhang-theme-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(28, 34, 204, .12);
}

.ankhang-contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ankhang-contact-form__submit {
	justify-self: start;
	min-width: 160px;
	padding: 12px 24px !important;
	background: var(--ankhang-theme-primary) !important;
	color: #fff !important;
	border: 0 !important;
	font-weight: 700;
}

.ankhang-contact-form__submit:hover {
	opacity: .92;
}

.ankhang-contact-form__placeholder {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f8fafc;
	color: #64748b;
}

.ankhang-contact-card--form :where(input, textarea, select) {
	border-radius: 10px;
	min-height: 44px;
}

.ankhang-contact-card--form :where(textarea) {
	min-height: 120px;
}

.ankhang-contact-card--form :where(button, .button, input[type="submit"]) {
	border-radius: 999px !important;
}

.ankhang-contact-map {
	margin-top: 28px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.ankhang-contact-map iframe {
	width: 100%;
	height: 420px;
	border: 0;
	border-radius: 12px;
}

.ankhang-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
	transition-delay: var(--ankhang-delay, 0s);
}

.ankhang-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 849px) {
	.ankhang-contact-hero {
		padding: 44px 16px;
	}

	.ankhang-contact-hero__subtitle {
		font-size: 16px;
	}

	.ankhang-contact__content {
		padding: 28px 16px 40px;
	}

	.ankhang-contact-form__row {
		grid-template-columns: 1fr;
	}

	.ankhang-contact-card,
	.ankhang-contact-map {
		padding: 20px;
	}

	.ankhang-contact-map iframe {
		height: 320px;
	}
}
