/* Trang Liên hệ (inc/contact.php). */
body:has(.fx-contact) .fx-page > .fx-prose, body:has(.fx-contact) .fx-page > .fx-page__title, .fx-prose > .fx-contact { max-width: 1080px !important; }
.fx-contact { margin: 0 0 48px; font-family: var(--f-sans); color: var(--c-ink); }
.fx-contact h2, .fx-contact h3, .fx-contact p { margin: 0; }
.fx-contact a { text-decoration: none; }
.fx-contact .fx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fx-contact__lead { max-width: 720px; margin-bottom: 28px !important; font-size: 17px; line-height: 1.6; color: var(--c-ink-2); }
.fx-contact__grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.fx-contact__card { padding: 26px 28px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 16px; }
.fx-contact__card h2 { margin-bottom: 18px !important; font-family: var(--f-sans); font-size: 19px; font-weight: 700; }
.fx-contact__side { display: flex; flex-direction: column; gap: 20px; }

.fx-contact__form { display: flex; flex-direction: column; gap: 16px; }
.fx-contact__form h2 { margin-bottom: 2px !important; }
.fx-contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-contact__form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-contact__form label[hidden], .fx-contact__row[hidden] { display: none; }
.fx-contact__form label > span { font-size: 13px; font-weight: 600; color: var(--c-ink-2); }
.fx-contact__form input:not(.fx-hp), .fx-contact__form select, .fx-contact__form textarea {
	box-sizing: border-box; width: 100%; padding: 0 14px; height: 46px;
	border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-field);
	font: inherit; font-size: 15.5px; color: var(--c-ink); transition: border-color .15s, box-shadow .15s;
}
.fx-contact__form textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.fx-contact__form input:focus, .fx-contact__form select:focus, .fx-contact__form textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 16%, transparent); }
.fx-contact__legal { font-size: 13px; color: var(--c-muted); }
.fx-contact__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fx-contact__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fx-contact__send .fx-btn { display: inline-flex; align-items: center; gap: 8px; }
.fx-contact__msg { font-size: 14px; }
.fx-contact__msg[data-kind="error"] { color: var(--c-accent); font-weight: 600; }
.fx-contact__done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 12px; text-align: center; }
.fx-contact__done[hidden] { display: none; }
.fx-contact__done .fx-icon { width: 56px; height: 56px; padding: 12px; box-sizing: border-box; border-radius: 50%; background: color-mix(in srgb, var(--c-success) 16%, transparent); color: var(--c-success); }
.fx-contact__done h3 { font-family: var(--f-serif); font-size: 24px; font-weight: 500; }
.fx-contact__done p { max-width: 420px; color: var(--c-muted); line-height: 1.6; }

.fx-contact .fx-contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-contact .fx-contact__list li { margin: 0; }
.fx-contact__list a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-field); color: var(--c-ink); transition: border-color .15s, transform .15s; }
.fx-contact__list a:hover { border-color: var(--c-accent); transform: translateY(-1px); }
.fx-contact__ico { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in srgb, var(--c-accent) 12%, transparent); color: var(--c-accent); }
.fx-contact__list a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fx-contact__list strong { font-size: 15px; }
.fx-contact__list em { font-style: normal; font-size: 14px; color: var(--c-ink-2); overflow-wrap: anywhere; }
.fx-contact__list small { font-size: 13px; line-height: 1.45; color: var(--c-muted); }
.fx-contact__tip p { margin-bottom: 14px !important; font-size: 14.5px; line-height: 1.55; color: var(--c-muted); }
.fx-contact__tip a.fx-btn { color: var(--c-ink); }
.fx-contact__tip a.fx-btn:hover { color: var(--c-paper); }

@media (min-width: 900px) {
	.fx-contact__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.fx-contact__card { padding: 20px 16px; }
	.fx-contact__row { grid-template-columns: 1fr; }
	.fx-contact__send .fx-btn { width: 100%; justify-content: center; }
}
