/*
 * Strona „Kontakt” (templates/contact-page.php, Pencil G6TETJ).
 * BEM: dehoust-contact__*. Zależny od dehoust-main (kontener, tokeny).
 */

.dehoust-contact {
	background: #fff;
	padding-block: 3rem 4rem;
}

@media (min-width: 1024px) {
	.dehoust-contact {
		padding-block: 4.5rem 6rem;
	}
}

.dehoust-contact__grid {
	display: flex;
	align-items: flex-start;
	gap: 4.75rem; /* 76 px */
}

.dehoust-contact__info {
	flex: 1 1 0;
	min-width: 0;
}

.dehoust-contact__form-col {
	flex: 0 1 850px;
	max-width: 850px;
	min-width: 0;
}

/* Nagłówki bloków + akcent */
.dehoust-contact__block {
	margin-bottom: 2.25rem;
}

.dehoust-contact__block:last-child {
	margin-bottom: 0;
}

.dehoust-contact__block-head {
	margin-bottom: 1.25rem;
}

.dehoust-contact__block-title {
	margin: 0;
	font-family: var(--dehoust-font-heading);
	font-size: 1.75rem; /* 28 px */
	font-weight: 700;
	line-height: 1.3;
	color: var(--dehoust-color-text); /* #252525 */
}

.dehoust-contact__rule {
	display: flex;
	align-items: center;
	margin-top: 0.5rem;
}

.dehoust-contact__accent {
	width: 2.5rem; /* 40 px */
	height: 0.375rem; /* 6 px */
	flex-shrink: 0;
	background: var(--dehoust-color-primary); /* #096cb2 */
}

.dehoust-contact__rule-line {
	height: 0.8px;
	flex: 1;
	background: #e2f3ff;
}

/* Wiersze danych */
.dehoust-contact__rows {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dehoust-contact__row {
	display: flex;
	align-items: flex-start;
	gap: 0.8125rem; /* 13 px */
}

.dehoust-contact__row-icon {
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
	width: 1rem; /* 16 px */
	margin-top: 0.2rem;
}

.dehoust-contact__row-icon svg {
	width: auto;
	height: 1rem; /* 16 px */
}

/* Wcięcie tekstu wierszy bez ikony — wyrównanie do wierszy z ikoną. */
.dehoust-contact__row:not(.dehoust-contact__row--has-icon) .dehoust-contact__row-text {
	padding-left: 1.8125rem; /* 16 + 13 px */
}

.dehoust-contact__row-text {
	min-width: 0;
	font-family: var(--dehoust-font-body);
	font-size: 1rem; /* 16 px */
	line-height: 1.5;
	color: var(--dehoust-color-text-muted); /* #1d1d1d */
	white-space: pre-line;
}

.dehoust-contact__row-text.is-bold {
	font-weight: 700;
}

/* Telefon i e-mail: klikalne, ale w kolorze wiersza — kolor firmowy dopiero pod kursorem. */
.dehoust-contact__row-text a {
	color: inherit;
	text-decoration: none;
}

.dehoust-contact__row-text a:hover,
.dehoust-contact__row-text a:focus-visible {
	color: var(--dehoust-color-primary);
	text-decoration: underline;
	opacity: 1;
}

/* Formularz */
.dehoust-contact__form {
	max-width: 100%;
}

.dehoust-contact__field {
	margin-bottom: 1rem; /* 16 px */
}

.dehoust-contact__input {
	width: 100%;
	height: 3.25rem; /* 52 px */
	border: 0.8px solid var(--dehoust-color-primary); /* #096cb2 */
	border-radius: 0.5rem;
	background: #fff;
	padding: 0 1rem;
	font-family: var(--dehoust-font-body);
	font-size: 0.875rem; /* 14 px */
	color: var(--dehoust-color-text-muted);
}

.dehoust-contact__input::placeholder {
	color: var(--dehoust-color-text-muted);
	opacity: 1;
}

.dehoust-contact__input:focus-visible {
	outline: 2px solid var(--dehoust-color-primary);
	outline-offset: 1px;
}

.dehoust-contact__textarea {
	height: 7.6875rem; /* 123 px */
	padding: 0.875rem 1rem;
	resize: vertical;
	line-height: 1.5;
}

/* Zgoda RODO */
.dehoust-contact__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.8125rem; /* 13 px */
	margin: 1.5rem 0 0;
	cursor: pointer;
}

/* Wygląd pola wyboru siedzi w main.css jako .dehoust-checkbox — ten sam komponent
   działa w modalu „Zapytaj o produkt”. */


.dehoust-contact__consent-text {
	font-family: var(--dehoust-font-body);
	font-size: 1rem; /* 16 px */
	line-height: 1.5;
	color: #3a3a3a;
}

.dehoust-contact__consent-text p {
	margin: 0;
}

.dehoust-contact__consent-text a {
	color: var(--dehoust-color-primary);
	text-decoration: underline;
}

/* Honeypot — ukryty przed użytkownikiem */
.dehoust-contact__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Przycisk */
.dehoust-contact__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15.6875rem; /* 251 px */
	max-width: 100%;
	height: 3.125rem; /* 50 px */
	margin-top: 1.75rem;
	border: 0;
	border-radius: var(--dehoust-radius-btn); /* 8 px */
	background: var(--dehoust-color-primary); /* #096cb2 */
	font-family: var(--dehoust-font-body);
	font-size: 0.9375rem; /* 15 px */
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: background-color var(--dehoust-transition);
}

.dehoust-contact__submit:hover,
.dehoust-contact__submit:focus-visible {
	background: var(--dehoust-color-primary-hover);
}

.dehoust-contact__submit.is-loading {
	opacity: 0.7;
	cursor: wait;
}

.dehoust-contact__error {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	color: #e5484d;
}

.dehoust-contact__success {
	padding: 1.5rem;
	border: 0.8px solid var(--dehoust-color-accent);
	border-radius: 0.5rem;
	background: #f2f9ea;
}

.dehoust-contact__success-text {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--dehoust-color-text);
}

/* Responsywność */
@media (max-width: 980px) {
	.dehoust-contact__grid {
		flex-direction: column;
		gap: 2.75rem;
	}

	.dehoust-contact__info,
	.dehoust-contact__form-col {
		flex: 1 1 100%;
		max-width: 100%;
		width: 100%;
	}

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