/**
 * Contact page — map + dark info sidebar + form (casesolved.gr layout).
 */

.cs-contact {
	--cs-contact-dark: #2b2f36;
	--cs-contact-line: rgba(255, 255, 255, 0.14);
	--cs-contact-accent: var(--cs-menu-accent, #18c1b8);
	--cs-contact-text: #1a2436;
	--cs-contact-muted: #5a6578;
	--cs-contact-border: #d9dee7;
	width: 100%;
	margin: 0 0 48px;
	color: var(--cs-contact-text);
}

/* Full-bleed map inside Astra content column */
.cs-contact__map {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	height: min(420px, 55vh);
	min-height: 280px;
	background: #e8eaee;
	overflow: hidden;
}

.cs-contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.cs-contact__grid {
	display: grid;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	align-items: stretch;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #fff;
}

.cs-contact__info {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 28px 24px;
	background: var(--cs-contact-dark);
	color: #fff;
}

.cs-contact__block {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 0;
	border-bottom: 1px solid var(--cs-contact-line);
	color: inherit;
	text-decoration: none;
}

.cs-contact__block:first-child {
	padding-top: 4px;
}

.cs-contact__block:last-child {
	border-bottom: 0;
	padding-bottom: 4px;
}

a.cs-contact__block:hover .cs-contact__block-title,
a.cs-contact__block:focus-visible .cs-contact__block-title {
	color: var(--cs-contact-accent);
}

.cs-contact__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--cs-contact-accent);
}

.cs-contact__icon svg {
	display: block;
}

.cs-contact__block-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cs-contact__block-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.cs-contact__block-text {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
	opacity: 0.92;
	text-wrap: pretty;
}

.cs-contact__form-wrap {
	padding: 36px 40px 40px;
	background: #fff;
}

.cs-contact__form-title {
	margin: 0 0 28px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	color: var(--cs-contact-text);
}

.cs-contact__notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.45;
}

.cs-contact__notice--ok {
	background: rgba(24, 193, 184, 0.12);
	color: #0f6e69;
}

.cs-contact__notice--err {
	background: rgba(214, 54, 56, 0.1);
	color: #a2191f;
}

.cs-contact__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 720px;
	margin: 0 auto;
}

.cs-contact__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cs-contact__field {
	display: grid;
	grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
	gap: 12px 16px;
	align-items: start;
}

.cs-contact__field--message {
	align-items: start;
}

.cs-contact__label {
	padding-top: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--cs-contact-text);
}

.cs-contact__label span {
	color: #d63638;
}

.cs-contact__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--cs-contact-border);
	border-radius: 2px;
	background: #fff;
	color: var(--cs-contact-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-contact__input:focus-visible {
	outline: 2px solid var(--cs-contact-accent);
	outline-offset: 1px;
	border-color: var(--cs-contact-accent);
}

.cs-contact__input:user-invalid:not(:placeholder-shown):not(:focus) {
	border-color: #d63638;
}

.cs-contact__textarea {
	min-height: 120px;
	resize: vertical;
}

.cs-contact__agree {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--cs-contact-muted);
}

.cs-contact__agree label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.cs-contact__agree input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.cs-contact__agree a {
	color: var(--cs-contact-text);
	text-decoration: underline;
}

.cs-contact__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

.cs-contact__submit {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	padding: 12px 28px;
	border: 0;
	border-radius: 2px;
	background: var(--cs-contact-accent);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.cs-contact__submit:hover {
	filter: brightness(0.95);
}

.cs-contact__submit:focus-visible {
	outline: 2px solid var(--cs-contact-text);
	outline-offset: 2px;
}

.cs-contact__submit:active {
	transform: translateY(1px);
}

/* Tighten Astra page chrome on contact */
body.cs-contact-page .entry-header,
body.cs-contact-page .ast-article-single > .entry-header {
	margin-bottom: 12px;
}

body.cs-contact-page .entry-content > .cs-contact:first-child,
body.cs-contact-page .entry-content > p:empty + .cs-contact {
	margin-top: 0;
}

@media (max-width: 900px) {
	.cs-contact__grid {
		grid-template-columns: 1fr;
	}

	.cs-contact__map {
		height: min(320px, 45vh);
	}

	.cs-contact__form-wrap {
		padding: 28px 20px 36px;
	}

	.cs-contact__field {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.cs-contact__label {
		padding-top: 0;
	}

	.cs-contact__actions {
		justify-content: stretch;
	}

	.cs-contact__submit {
		width: 100%;
	}
}
