/* ==========================================================================
   LEARN WITH — CONTACT PAGE
   Follows the "Learn With – Website UI/UX Redesign" board. Scoped to .lw-contact.
   ========================================================================== */

body.lw-contact-page {
	background: #011f01;
}

html:has(body.lw-contact-page) {
	background: #011f01;
}

.lw-contact {
	background: #011f01;
	color: #f2f1ec;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.55;
}

.lw-contact__section {
	padding-block: 72px 96px;
}

.lw-contact__w {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

.lw-contact p {
	margin: 0;
}

/* Heading block */
.lw-contact__head {
	margin-bottom: 56px;
	text-align: center;
}

.lw-contact__eyebrow {
	margin-bottom: 12px !important;
	color: var(--lw-lime);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lw-contact__eyebrow--small {
	margin-bottom: 6px !important;
}

.lw-theme .lw-contact h1 {
	margin: 0 0 20px;
	color: #f2f1ec;
	font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	font-size: clamp(2.5rem, 1.3rem + 4.4vw, 3.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
}

.lw-contact__lead {
	max-width: 560px;
	margin-inline: auto !important;
	color: #9db3a6;
	font-size: 1.125rem;
	line-height: 1.6;
	text-wrap: pretty;
}

/* Layout */
.lw-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.lw-contact__side {
	display: grid;
	gap: 16px;
}

.lw-contact__card {
	padding: 28px;
	border: 1px solid #7e9688;
	border-radius: 20px;
	background: #011f01;
	box-sizing: border-box;
}

.lw-contact__card--form {
	padding: 36px;
	scroll-margin-top: calc(var(--lw-header-h) + 24px);
}

.lw-contact__muted {
	color: #9db3a6;
	font-size: 0.9375rem;
}

.lw-contact a.lw-contact__mail {
	color: #f2f1ec;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.lw-contact a.lw-contact__mail:hover,
.lw-contact a.lw-contact__mail:focus-visible {
	color: var(--lw-lime);
}

/* Form */
.lw-contact__field {
	margin-bottom: 18px;
}

.lw-contact label {
	display: block;
	margin-bottom: 6px;
	color: #f2f1ec;
	font-size: 0.875rem;
	font-weight: 500;
}

.lw-theme .lw-contact input[type="text"],
.lw-theme .lw-contact input[type="email"],
.lw-theme .lw-contact select,
.lw-theme .lw-contact textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #7e9688;
	border-radius: 12px;
	background-color: #011f01;
	color: #f2f1ec;
	font: inherit;
	box-sizing: border-box;
}

.lw-theme .lw-contact textarea {
	resize: vertical;
	min-height: 140px;
}

.lw-theme .lw-contact select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%239db3a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.lw-theme .lw-contact input::placeholder,
.lw-theme .lw-contact textarea::placeholder {
	color: #7e9688;
}

.lw-theme .lw-contact input:focus,
.lw-theme .lw-contact select:focus,
.lw-theme .lw-contact textarea:focus {
	border-color: var(--lw-lime);
	outline: 2px solid var(--lw-lime);
	outline-offset: 0;
	box-shadow: none;
}

.lw-theme .lw-contact [aria-invalid="true"] {
	border-color: #ff8a80;
}

.lw-contact__error {
	margin-top: 6px !important;
	color: #ff9c93;
	font-size: 0.875rem;
}

.lw-contact__notice {
	margin-bottom: 20px !important;
	padding: 14px 16px;
	border: 1px solid;
	border-radius: 12px;
	font-size: 0.9375rem;
}

.lw-contact__notice--ok {
	border-color: var(--lw-lime);
	background: rgba(200, 241, 53, 0.08);
	color: #e8f9b0;
}

.lw-contact__notice--error {
	border-color: #ff8a80;
	background: rgba(255, 138, 128, 0.08);
	color: #ffb3ac;
}

.lw-contact__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: #c8f135;
	color: #0a0a0a;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.lw-contact__btn:hover,
.lw-contact__btn:focus-visible {
	background: #d9ff5a;
	transform: translateY(-2px);
}

/* Honeypot: off-screen, not display:none, so only bots tend to fill it */
.lw-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
	.lw-contact__section {
		padding-block: 44px 64px;
	}

	.lw-contact__head {
		margin-bottom: 40px;
	}

	.lw-contact__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.lw-contact__side {
		order: 2;
	}

	.lw-contact__card--form {
		order: 1;
	}
}

@media (max-width: 600px) {
	.lw-contact__w {
		padding-inline: 16px;
	}

	.lw-contact__card,
	.lw-contact__card--form {
		padding: 22px;
	}

	.lw-contact__btn {
		min-height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lw-contact__btn {
		transition: none;
	}
}
