/**
 * Lumo — Contact / message page (page-templates/page-contact.php)
 */

.leafs-contact-page {
	position: relative;
	min-height: min(72vh, 900px);
	padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4rem);
	overflow: hidden;
}

.leafs-contact-page__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 55% at 50% -20%, color-mix(in srgb, var(--leafs-brand, #0f766e) 14%, transparent), transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 80%, color-mix(in srgb, var(--leafs-mint, #06b6d4) 8%, transparent), transparent 50%),
		var(--leafs-bg, #f8fafc);
	pointer-events: none;
	z-index: 0;
}

html[data-leafs-theme="dark"] .leafs-contact-page__backdrop {
	background:
		radial-gradient(ellipse 75% 50% at 50% -15%, rgba(120, 170, 220, 0.12), transparent 52%),
		radial-gradient(ellipse 55% 45% at 95% 85%, rgba(80, 140, 200, 0.08), transparent 48%),
		linear-gradient(180deg, #0b0f14 0%, #070a0e 100%);
}

.leafs-contact-page__inner {
	position: relative;
	z-index: 1;
	max-width: 1080px;
}

.leafs-contact-page__crumb {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	opacity: 0.85;
}

.leafs-contact-page__header {
	margin-bottom: 1.5rem;
}

.leafs-contact-page__title-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.leafs-contact-page__accent {
	display: block;
	width: 4px;
	height: 1.85rem;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--leafs-brand, #0f766e), var(--leafs-mint, #06b6d4));
	flex-shrink: 0;
}

.leafs-contact-page__title {
	margin: 0;
	font-size: clamp(1.65rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--leafs-text, #0f172a);
}

html[data-leafs-theme="dark"] .leafs-contact-page__title {
	color: #e8eef5;
}

.leafs-contact-page__lead,
.leafs-contact-page__intro {
	margin: 0;
	max-width: 52rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: color-mix(in srgb, var(--leafs-text, #0f172a) 72%, transparent);
}

html[data-leafs-theme="dark"] .leafs-contact-page__lead,
html[data-leafs-theme="dark"] .leafs-contact-page__intro {
	color: rgba(216, 228, 242, 0.78);
}

.leafs-contact-page__intro {
	margin-top: 0.5rem;
}

.leafs-contact-page__notices {
	margin-bottom: 1.25rem;
	max-width: 52rem;
}

.leafs-contact-page__notices .leafs-notice {
	border-radius: 12px;
}

.leafs-contact-page__grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

@media (min-width: 900px) {
	.leafs-contact-page__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
	}
}

.leafs-contact-page__card {
	background: color-mix(in srgb, var(--leafs-surface, #fff) 94%, transparent);
	border: 1px solid color-mix(in srgb, var(--leafs-text, #0f172a) 8%, transparent);
	border-radius: 16px;
	padding: clamp(1.25rem, 3vw, 1.85rem);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.65) inset,
		0 18px 48px rgba(15, 23, 42, 0.06);
	backdrop-filter: blur(10px);
}

html[data-leafs-theme="dark"] .leafs-contact-page__card {
	background: rgba(18, 24, 34, 0.72);
	border-color: rgba(148, 176, 220, 0.14);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.04) inset,
		0 20px 50px rgba(0, 0, 0, 0.35);
}

.leafs-contact-page__card--aside {
	background: color-mix(in srgb, var(--leafs-brand, #0f766e) 5%, var(--leafs-surface, #fff));
}

html[data-leafs-theme="dark"] .leafs-contact-page__card--aside {
	background: rgba(22, 32, 48, 0.85);
	border-color: rgba(120, 160, 220, 0.12);
}

.leafs-contact-page__card-title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	font-weight: 650;
	color: var(--leafs-text, #0f172a);
}

html[data-leafs-theme="dark"] .leafs-contact-page__card-title {
	color: #e8eef5;
}

.leafs-contact-page__card-hint {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--leafs-text, #0f172a) 58%, transparent);
}

html[data-leafs-theme="dark"] .leafs-contact-page__card-hint {
	color: rgba(186, 205, 230, 0.65);
}

/* Form */
.leafs-contact-form__field {
	margin: 0 0 1.1rem;
}

.leafs-contact-form__field--hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.leafs-contact-form__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: color-mix(in srgb, var(--leafs-text, #0f172a) 88%, transparent);
}

html[data-leafs-theme="dark"] .leafs-contact-form__field label {
	color: rgba(220, 232, 248, 0.88);
}

.leafs-contact-form__req {
	color: var(--leafs-warm, #f59e0b);
	font-weight: 700;
}

.leafs-contact-form__input,
.leafs-contact-form__textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--leafs-text, #0f172a);
	background: var(--leafs-surface, #fff);
	border: 1px solid color-mix(in srgb, var(--leafs-text, #0f172a) 12%, transparent);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[data-leafs-theme="dark"] .leafs-contact-form__input,
html[data-leafs-theme="dark"] .leafs-contact-form__textarea {
	color: #e8eef5;
	background: rgba(10, 14, 22, 0.65);
	border-color: rgba(140, 170, 210, 0.22);
}

.leafs-contact-form__input:hover,
.leafs-contact-form__textarea:hover {
	border-color: color-mix(in srgb, var(--leafs-brand, #0f766e) 35%, transparent);
}

.leafs-contact-form__input:focus,
.leafs-contact-form__textarea:focus {
	outline: none;
	border-color: var(--leafs-brand, #0f766e);
	box-shadow: 0 0 0 3px var(--leafs-focus-ring, rgba(15, 118, 110, 0.28));
}

.leafs-contact-form__textarea {
	resize: vertical;
	min-height: 8rem;
}

.leafs-contact-form__actions {
	margin: 1.35rem 0 0;
}

.leafs-contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0.5rem 1.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--leafs-brand, #0f766e), color-mix(in srgb, var(--leafs-brand, #0f766e) 72%, #000));
	box-shadow: 0 4px 14px color-mix(in srgb, var(--leafs-brand, #0f766e) 35%, transparent);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.leafs-contact-form__submit:hover {
	filter: brightness(1.06);
	box-shadow: 0 6px 20px color-mix(in srgb, var(--leafs-brand, #0f766e) 42%, transparent);
}

.leafs-contact-form__submit:active {
	transform: translateY(1px);
}

/* Aside */
.leafs-contact-aside__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.leafs-contact-aside__item {
	padding: 0.85rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--leafs-text, #0f172a) 8%, transparent);
}

.leafs-contact-aside__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

html[data-leafs-theme="dark"] .leafs-contact-aside__item {
	border-color: rgba(140, 170, 210, 0.12);
}

.leafs-contact-aside__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: color-mix(in srgb, var(--leafs-text, #0f172a) 50%, transparent);
	margin-bottom: 0.25rem;
}

html[data-leafs-theme="dark"] .leafs-contact-aside__label {
	color: rgba(186, 205, 230, 0.55);
}

.leafs-contact-aside__value {
	font-size: 0.98rem;
	line-height: 1.5;
	word-break: break-word;
	color: var(--leafs-text, #0f172a);
}

html[data-leafs-theme="dark"] .leafs-contact-aside__value {
	color: #e2eaf5;
}

a.leafs-contact-aside__value {
	color: var(--leafs-brand, #0f766e);
	text-decoration: none;
	font-weight: 600;
}

a.leafs-contact-aside__value:hover {
	color: var(--leafs-brand-hover, var(--leafs-brand, #0f766e));
}

.leafs-contact-aside__empty {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--leafs-text, #0f172a) 55%, transparent);
}

html[data-leafs-theme="dark"] .leafs-contact-aside__empty {
	color: rgba(186, 205, 230, 0.6);
}
