/**
 * NT Projektai – "Kontaktai" widgets
 * (NT kontaktai ir forma – Kontaktai, NT vieta ir žemėlapis).
 *
 * Builds on nt-home-section.css; the form card and MetForm field skin come
 * from nt-home-contact.css (the contact section carries its classes).
 * Values below are defaults; the widgets' Style controls override them
 * through the custom properties (or direct selectors for typography).
 */

/* ------------------------------------------------------------------ */
/* Contact cards + form                                                */
/* ------------------------------------------------------------------ */

.nt-contact-main {
	--ntcm-info-width: 44%;
	--ntcm-cols: 1;
	--ntcm-gap: 14px;
	--ntcm-card-bg: #fbfaf7;
	--ntcm-card-border: #e9e3d8;
	--ntcm-card-radius: 18px;
	--ntcm-icon-color: #2f5e46;
	--ntcm-icon-bg: #e7ede4;
	background-color: #fff;
}

.nt-contact-main__layout {
	display: grid;
	grid-template-columns: var(--ntcm-info-width) minmax(0, 1fr);
	align-items: start;
	gap: var(--nth-columns-gap);
}

.nt-contact-main__info {
	min-width: 0;
}

.nt-contact-main .nt-contact-main__header {
	margin-bottom: 36px;
}

.nt-contact-main .nt-contact-main__items {
	display: grid;
	grid-template-columns: repeat(var(--ntcm-cols), minmax(0, 1fr));
	gap: var(--ntcm-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nt-contact-main .nt-contact-main__item {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	margin: 0;
	padding: 20px 24px;
	border: 1px solid var(--ntcm-card-border);
	border-radius: var(--ntcm-card-radius);
	background-color: var(--ntcm-card-bg);
}

.nt-contact-main .nt-contact-main__item--empty {
	display: block;
	padding: 0;
	border: 0;
	background: none;
}

.nt-contact-main .nt-contact-main__item--empty .nt-home-section__notice {
	margin: 0;
}

.nt-contact-main__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: var(--ntcm-icon-bg);
	color: var(--ntcm-icon-color);
	line-height: 1;
}

.nt-contact-main__icon .ntp-icon {
	display: block;
	width: 24px;
	height: 24px;
}

.nt-contact-main__icon--library i {
	font-size: 22px;
	color: inherit;
}

.nt-contact-main__icon--library svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.nt-contact-main__item-body {
	min-width: 0;
}

.nt-contact-main .nt-contact-main__item-title {
	margin: 0 0 4px;
	padding: 0;
	color: #7a7e7f;
	font-family: var(--nth-font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.nt-contact-main .nt-contact-main__item-value,
.nt-contact-main a.nt-contact-main__item-value:visited {
	display: inline;
	margin: 0;
	padding: 0;
	color: #26292a;
	font-family: var(--nth-font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.nt-contact-main p.nt-contact-main__item-value {
	display: block;
}

.nt-contact-main a.nt-contact-main__item-value:hover,
.nt-contact-main a.nt-contact-main__item-value:focus-visible {
	color: var(--nth-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nt-contact-main .nt-contact-main__item-text {
	margin: 6px 0 0;
	padding: 0;
	color: #595c5d;
	font-family: var(--nth-font-body);
	font-size: 15px;
	line-height: 1.55;
}

.nt-contact-main .nt-contact-main__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.nt-contact-main .nt-contact-main__social li {
	margin: 0;
	padding: 0;
}

.nt-contact-main .nt-contact-main__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--ntcm-card-border);
	border-radius: 50%;
	background-color: #fff;
	color: var(--ntcm-icon-color);
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nt-contact-main .nt-contact-main__social-link i {
	font-size: 17px;
	color: inherit;
}

.nt-contact-main .nt-contact-main__social-link svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.nt-contact-main .nt-contact-main__social-link:hover,
.nt-contact-main .nt-contact-main__social-link:focus-visible {
	border-color: var(--nth-accent);
	background-color: var(--nth-accent);
	color: #fff;
}

/* Form card: the base card, fields and button come from nt-home-contact.css. */
.nt-contact-main .nt-contact-main__card {
	/* The homepage layout's named area does not exist in this grid. */
	grid-area: auto;
}

.nt-contact-main .nt-contact-main__form-eyebrow {
	margin: 0 0 12px;
	padding: 0;
	color: var(--nth-accent);
	font-family: var(--nth-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
}

.nt-contact-main .nt-home-contact__form-title {
	font-size: clamp(26px, 2.4vw, 32px);
}

/* GDPR consent checkbox (not used in the homepage form, so styled here). */
.nt-contact-main.nt-home-contact--skin .nt-home-contact__form .mf-checkbox-option label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--nth-text);
	font-family: var(--nth-font-body);
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

/* MetForm draws the box itself (hidden native input + span::before). */
.nt-contact-main.nt-home-contact--skin .nt-home-contact__form .mf-checkbox-option a {
	color: var(--nth-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Location + map                                                      */
/* ------------------------------------------------------------------ */

.nt-contact-map {
	--ntmap-text-width: 32%;
	--ntmap-height: 480px;
	--ntmap-radius: 24px;
	--ntmap-bg: #ece8df;
	--ntmap-gray: 15%;
	background-color: #f7f4ee;
}

.nt-contact-map__layout {
	display: grid;
	grid-template-columns: var(--ntmap-text-width) minmax(0, 1fr);
	align-items: center;
	gap: var(--nth-columns-gap);
}

.nt-contact-map--no-map .nt-contact-map__layout {
	grid-template-columns: minmax(0, 1fr);
}

.nt-contact-map--no-map .nt-contact-map__text {
	max-width: 640px;
}

.nt-contact-map__text {
	min-width: 0;
}

.nt-contact-map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.nt-contact-map .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* The map fills the whole right column, up to the content edge. */
.nt-contact-map__frame {
	position: relative;
	min-width: 0;
	height: var(--ntmap-height);
	overflow: hidden;
	border: 1px solid #e3ddd1;
	border-radius: var(--ntmap-radius);
	background-color: var(--ntmap-bg);
	box-shadow: 0 1px 2px rgba(38, 41, 42, 0.04), 0 24px 48px -32px rgba(38, 41, 42, 0.22);
	isolation: isolate;
}

/* Under the iframe: only visible if the map cannot load. */
.nt-contact-map__fallback {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.nt-contact-map .nt-contact-map__fallback-link {
	color: #1f5d48;
	font-family: var(--nth-font-heading);
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nt-contact-map .nt-contact-map__iframe {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	filter: grayscale(var(--ntmap-gray));
}

.nt-contact-map__consent {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 32px;
	background-color: var(--ntmap-bg);
	text-align: center;
}

.nt-contact-map .nt-contact-map__consent-text {
	max-width: 420px;
	margin: 0;
	color: #595c5d;
	font-family: var(--nth-font-body);
	font-size: 15px;
	line-height: 1.6;
}

/* The theme styles plain buttons globally: restate the site button here. */
.nt-contact-map .nt-contact-map__load,
.nt-contact-map .nt-contact-map__load:hover,
.nt-contact-map .nt-contact-map__load:focus {
	border: 1px solid #1f5d48;
	border-radius: 999px;
	background-color: #1f5d48;
	color: #fff;
	font-family: var(--nth-font-heading);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.nt-contact-map .nt-contact-map__load:hover {
	border-color: #164535;
	background-color: #164535;
}

/* Editor-only: no address yet. */
.nt-contact-map__frame--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	border-style: dashed;
	border-color: #c9b98f;
	background-color: #fbf8f1;
	box-shadow: none;
}

.nt-contact-map .nt-contact-map__placeholder-text {
	max-width: 420px;
	margin: 0;
	color: #5b4e2e;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Responsive (Elementor breakpoints)                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.nt-contact-main {
		--ntcm-cols: 2;
	}

	.nt-contact-main__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.nt-contact-main .nt-contact-main__header {
		max-width: 640px;
	}

	.nt-contact-map {
		--ntmap-height: 420px;
	}

	/* Text above, map below at full width. */
	.nt-contact-map__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.nt-contact-map__text {
		max-width: 640px;
	}
}

@media (max-width: 767px) {
	.nt-contact-main {
		--ntcm-cols: 1;
	}

	.nt-contact-main .nt-contact-main__header {
		margin-bottom: 28px;
	}

	.nt-contact-main .nt-contact-main__item {
		gap: 14px;
		padding: 18px;
	}

	.nt-contact-main__icon {
		width: 46px;
		height: 46px;
	}

	.nt-contact-main .nt-contact-main__item-value,
	.nt-contact-main a.nt-contact-main__item-value:visited {
		font-size: 17px;
	}

	.nt-contact-map {
		--ntmap-height: 340px;
		--ntmap-radius: 18px;
	}

	.nt-contact-map__layout {
		gap: 28px;
	}

	.nt-contact-map__actions {
		margin-top: 24px;
	}

	.nt-contact-map__actions .nt-about-btn {
		width: 100%;
	}
}
