/**
 * CMP LMS — Trang Liên hệ (Tutor Starter layout).
 */

.cmp-contact {
	--cmp-ct-primary: var(--ts-primary);
	--cmp-ct-primary-dark: var(--ts-primary-dark);
	--cmp-ct-text: var(--ts-text-strong);
	--cmp-ct-muted: var(--ts-muted);
	--cmp-ct-bg: var(--ts-surface-soft);
	--cmp-ct-white: var(--ts-surface);
	--cmp-ct-border: var(--ts-border);
	--cmp-ct-radius: var(--ts-radius-lg);
	--cmp-ct-shadow: var(--ts-shadow-md);
	color: var(--cmp-ct-text);
}

.cmp-contact .cmp-ct-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.cmp-lms-shell.cmp-contact-page {
	max-width: none;
	padding: 0;
}

body.cmp-contact-active {
	overflow-x: hidden;
}

.cmp-ct-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--cmp-ct-primary);
	margin: 0 0 12px;
}

/* Hero */
.cmp-ct-hero {
	background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-primary-dark) 100%);
	color: #ffffff;
	padding: 56px 0 64px;
	position: relative;
	overflow: hidden;
}

.cmp-ct-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 50%);
	pointer-events: none;
}

.cmp-ct-hero .cmp-ct-container {
	position: relative;
	z-index: 1;
}

.cmp-ct-hero .cmp-ct-eyebrow {
	color: rgba(255, 255, 255, 0.85);
}

.cmp-ct-breadcrumb {
	font-size: 0.875rem;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.85);
}

.cmp-ct-breadcrumb a {
	color: #ffffff;
	text-decoration: none;
	opacity: 0.85;
}

.cmp-ct-breadcrumb a:hover {
	opacity: 1;
	text-decoration: underline;
}

.cmp-ct-breadcrumb__sep {
	opacity: 0.6;
}

body.cmp-tutor-starter-layout .cmp-ct-hero,
body.cmp-tutor-starter-layout .cmp-ct-hero__title {
	color: #ffffff;
}

.cmp-ct-hero__title {
	font-size: clamp(1.6rem, 3.6vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
}

.cmp-ct-hero__lead {
	font-size: 1.0625rem;
	line-height: 1.6;
	max-width: 640px;
	opacity: 0.92;
	margin: 0;
}

/* Sections */
.cmp-ct-section {
	padding: 72px 0;
}

.cmp-ct-section--alt {
	background: var(--cmp-ct-bg);
}

/* Form + info grid */
.cmp-ct-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.95fr;
	gap: 40px;
	align-items: start;
}

.cmp-ct-form-card {
	background: var(--cmp-ct-white);
	border: 1px solid var(--cmp-ct-border);
	border-radius: var(--cmp-ct-radius);
	box-shadow: var(--cmp-ct-shadow);
	padding: 40px;
}

.cmp-ct-form-card__title {
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	font-weight: 700;
	margin: 0 0 8px;
}

.cmp-ct-form-card__lead {
	color: var(--cmp-ct-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0 0 28px;
}

.cmp-ct-notice {
	border-radius: var(--ts-radius-sm);
	padding: 14px 16px;
	font-size: 0.9375rem;
	margin: 0 0 20px;
}

.cmp-ct-notice p {
	margin: 0 0 4px;
}

.cmp-ct-notice p:last-child {
	margin-bottom: 0;
}

.cmp-ct-notice--success {
	background: rgba(22, 163, 74, 0.1);
	color: #15803d;
	border: 1px solid rgba(22, 163, 74, 0.25);
}

.cmp-ct-notice--error {
	background: rgba(220, 38, 38, 0.08);
	color: #b91c1c;
	border: 1px solid rgba(220, 38, 38, 0.25);
}

.cmp-ct-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cmp-ct-form__row {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.cmp-ct-form__row--2col {
	grid-template-columns: 1fr 1fr;
}

.cmp-ct-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.cmp-ct-field:last-of-type {
	margin-bottom: 0;
}

.cmp-ct-field label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cmp-ct-text);
}

.cmp-ct-req {
	color: #dc2626;
}

.cmp-ct-field input,
.cmp-ct-field textarea {
	border: 1px solid var(--cmp-ct-border);
	border-radius: var(--ts-radius-sm);
	padding: 11px 14px;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--cmp-ct-text);
	background: var(--cmp-ct-white);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.cmp-ct-field input:focus,
.cmp-ct-field textarea:focus {
	outline: none;
	border-color: var(--cmp-ct-primary);
	box-shadow: 0 0 0 3px var(--ts-primary-soft);
}

.cmp-ct-field textarea {
	resize: vertical;
	min-height: 120px;
}

.cmp-ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 32px;
	border: none;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cmp-ct-btn--primary {
	background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-dark));
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(25, 80, 209, 0.3);
	margin-top: 16px;
}

.cmp-ct-btn--primary:hover {
	background: linear-gradient(135deg, var(--ts-primary-dark), var(--ts-primary-dark));
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(25, 80, 209, 0.4);
	transform: translateY(-2px);
}

/* Typography reset của theme (`body.cmp-tutor-starter-layout button { color:
   #344050 }`) áp lên MỌI <button>, độ ưu tiên cao hơn 2 rule .cmp-ct-btn--primary
   ở trên (1 class vs 1 class + 2 type) nên chữ trong nút bị chìm màu xám tối
   trên nền gradient xanh, mất chữ và hover không đổi được gì. Ép lại màu trắng
   với selector đủ độ ưu tiên để thắng chắc chắn. */
body.cmp-tutor-starter-layout .cmp-ct-btn--primary,
body.cmp-tutor-starter-layout .cmp-ct-btn--primary:hover,
body.cmp-tutor-starter-layout .cmp-ct-btn--primary:focus-visible {
	color: #ffffff;
}

.cmp-ct-btn--primary:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--ts-primary-soft), 0 8px 24px rgba(25, 80, 209, 0.3);
}

/* Info column */
.cmp-ct-info__title {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 700;
	margin: 0 0 20px;
}

.cmp-ct-info__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cmp-ct-info-card__inner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--cmp-ct-white);
	border: 1px solid var(--cmp-ct-border);
	border-radius: var(--ts-radius-md);
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

a.cmp-ct-info-card__inner:hover {
	border-color: var(--cmp-ct-primary);
	box-shadow: var(--cmp-ct-shadow);
	transform: translateY(-2px);
}

.cmp-ct-info-card__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ts-primary-soft);
	color: var(--cmp-ct-primary);
}

.cmp-ct-info-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.9375rem;
}

.cmp-ct-info-card__body strong {
	color: var(--cmp-ct-text);
	font-size: 0.9375rem;
}

.cmp-ct-info-card__body span {
	color: var(--cmp-ct-muted);
	line-height: 1.5;
}

/* Map */
.cmp-ct-map__title {
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	font-weight: 700;
	text-align: center;
	margin: 0 0 24px;
}

.cmp-ct-map__frame {
	border-radius: var(--cmp-ct-radius);
	overflow: hidden;
	box-shadow: var(--cmp-ct-shadow);
	aspect-ratio: 16 / 6;
	min-height: 320px;
}

/* Responsive */
@media (max-width: 1024px) {
	.cmp-ct-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.cmp-ct-section {
		padding: 48px 0;
	}

	.cmp-ct-hero {
		padding: 44px 0 52px;
	}

	.cmp-ct-form-card {
		padding: 28px 22px;
	}

	.cmp-ct-form__row--2col {
		grid-template-columns: 1fr;
	}

	.cmp-ct-map__frame {
		aspect-ratio: 4 / 5;
		min-height: 280px;
	}
}
