/* Tracy English Core: buttons, form, campuses, mobile contact bar. */
.tracy-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	background: #E11D2E; color: #fff; border: 0; border-radius: 999px;
	padding: .65rem 1.35rem; font-weight: 700; font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.02rem;
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; line-height: 1.2;
}
.tracy-btn:hover { background: #A8122A; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(225,29,46,.7); }
.tracy-btn:active { transform: scale(.97); }
.tracy-btn--ghost { background: transparent; color: #A8122A; box-shadow: inset 0 0 0 2px #E11D2E; }
.tracy-btn--ghost:hover { background: #E11D2E; color: #fff; }
.tracy-btn--big { font-size: 1.15rem; padding: .85rem 1.8rem; }
.tracy-btn:focus-visible, .tracy-form input:focus-visible, .tracy-form select:focus-visible, .tracy-form textarea:focus-visible { outline: 3px solid #2F9BEA; outline-offset: 2px; }

/* Trial form */
.tracy-form { background: #fff; border-radius: 24px; padding: clamp(1.2rem, 4vw, 2rem); box-shadow: 0 14px 40px -18px rgba(31,45,82,.35); border: 1px solid rgba(31,45,82,.07); display: grid; gap: 1rem; }
.tracy-form label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .25rem; row-gap: .35rem; font-weight: 600; font-size: .95rem; }
.tracy-form label span { color: #A8122A; }
.tracy-form input[type=text], .tracy-form input[type=tel], .tracy-form select, .tracy-form textarea {
	width: 100%; flex: 1 0 100%; box-sizing: border-box; font: inherit; font-weight: 400; padding: .75rem .9rem; border-radius: 14px;
	border: 1.5px solid #F2D3D0; background: #fff; color: #1F2D52;
}
.tracy-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .tracy-form__row { grid-template-columns: 1fr; } }
.tracy-form__consent { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; }
.tracy-form__consent input { margin-top: .3rem; width: 18px; height: 18px; flex: none; }
.tracy-form__note { font-size: .9rem; margin: 0; text-align: center; }
.tracy-form__error { background: #FDECEC; color: #A8122A; padding: .75rem 1rem; border-radius: 12px; margin: 0; }
.tracy-form__level { background: #FFF4CC; padding: .6rem 1rem; border-radius: 12px; margin: 0; }
.tracy-form--done { text-align: center; }
.tracy-form__big { font-size: 3.5rem; line-height: 1; }
.tracy-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Campuses */
.tracy-campus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; font-size: .92rem; }
.tracy-campuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.tracy-campus { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 40px -18px rgba(31,45,82,.35); }
.tracy-campus iframe { width: 100%; height: 240px; border: 0; display: block; background: #FFE1DC; }
.tracy-campus__body { padding: 1.2rem 1.4rem 1.4rem; }
.tracy-campus__body h3 { margin: 0 0 .3rem; }
.tracy-campus__body p { margin: 0 0 .6rem; }
.tracy-campus__meta { color: #56607A; font-size: .9rem; }
.tracy-campus__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.tracy-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.tracy-social a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); font-size: .85rem; text-decoration: none; }

/* Quick contact: floating buttons (tablet/desktop) */
.tracy-fab { position: fixed; right: 18px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.tracy-fab__btn {
	position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
	color: #fff; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); transition: transform .2s ease;
}
.tracy-fab__btn:hover { transform: scale(1.08); color: #fff; }
.tracy-fab__btn svg { width: 28px; height: 28px; }
.tracy-fab__btn--phone { background: #E11D2E; }
.tracy-fab__btn--zalo { background: #0068FF; }
.tracy-fab__btn--zalo svg { width: 34px; height: 34px; }
.tracy-fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: tracy-pulse 2s ease-out infinite; }
.tracy-fab__btn--zalo::before { animation-delay: 1s; }
.tracy-fab__label {
	position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap;
	background: #fff; color: #1F2D52; font-weight: 700; font-size: .92rem; padding: .4rem .8rem; border-radius: 999px;
	box-shadow: 0 8px 20px -10px rgba(0,0,0,.35);
}
.tracy-fab__btn--zalo .tracy-fab__label { opacity: 0; pointer-events: none; transition: opacity .2s; }
.tracy-fab__btn--zalo:hover .tracy-fab__label, .tracy-fab__btn--zalo:focus-visible .tracy-fab__label { opacity: 1; }
.tracy-fab__btn--phone .tracy-fab__label { color: #E11D2E; }
.tracy-fab__btn--phone svg { animation: tracy-ring 2.4s ease-in-out infinite; }
@keyframes tracy-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes tracy-ring { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(8deg); } }

/* Mobile contact bar */
.tracy-mobilebar { display: none; }
@media (max-width: 781px) {
	.tracy-fab { display: none; }
	.tracy-mobilebar {
		display: grid; grid-template-columns: 1.45fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: #fff; box-shadow: 0 -6px 20px rgba(168,18,42,.18); padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom)); gap: .4rem;
	}
	.tracy-mobilebar a {
		display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px;
		text-decoration: none; color: #fff; font-weight: 800; font-size: .92rem; padding: .35rem .4rem; border-radius: 14px; line-height: 1.1;
		font-family: "Baloo 2", system-ui, sans-serif; white-space: nowrap;
	}
	.tracy-mobilebar a svg { flex: none; }
	.tracy-mobilebar a span { display: flex; flex-direction: column; }
	.tracy-mobilebar a small { font-size: .68rem; font-weight: 600; opacity: .9; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
	.tracy-mobilebar a.is-phone { background: #E11D2E; }
	.tracy-mobilebar a.is-phone svg { animation: tracy-ring 2.4s ease-in-out infinite; }
	.tracy-mobilebar a.is-zalo { background: #0068FF; }
	.tracy-mobilebar a.is-primary { background: #FFC845; color: #1F2D52; }
}
@media (prefers-reduced-motion: reduce) { .tracy-fab__btn::before, .tracy-fab__btn svg, .tracy-mobilebar svg { animation: none !important; } }
@media print { .tracy-mobilebar, .tracy-fab { display: none !important; } }
.tracy-form .tracy-form__consent span { color: inherit; }
