/* Contact Page Styles - Mobile First */

/* Contact Section Full Width Wrapper */
.contact-page-contact-wrapper {
	width: 100%;
	margin-top: -2rem;
	margin-bottom: 3.125rem; /* zachowanie oryginalnych wartości dla contact-page */
}

@media (min-width: 992px) {
	.contact-page-contact-wrapper {
		width: 100%;
		max-width: 1600px;
		margin: 0 auto 100px auto;
	}
}

.contact-page-container {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.contact-heading-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
	margin-top: 2rem;
}

.contact-heading {
	font-family: var(--font-family-primary);
	font-size: 24px;
	font-weight: 700;
	color: var(--primary-violet-dark);
	letter-spacing: -1%;
	line-height: 110%;
}

.contact-info-container {
	margin-bottom: 3.125rem;
}

.contact-lead {
	font-family: var(--font-family-primary);
	font-weight: 500;
	font-size: 16px;
	line-height: 150%;
	letter-spacing: -2%;
}

.company-address-row {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.manager-email-row {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-top: 2rem;
}

.contact-info-right {
	display: flex;
	flex-direction: column;
	gap: 6rem;
}

.contact-info-heading {
	font-family: var(--font-family-primary);
	font-weight: 700;
	font-size: 18px;
	line-height: 150%;
	letter-spacing: -2%;
	min-height: 1.2em;
	text-wrap: wrap;
}

.contact-info-box {
	height: auto;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.info-box-content {
	font-family: var(--font-family-primary);
	font-size: 12px;
	font-weight: 400;
	line-height: 150%;
	color: var(--font-color-primary);
	margin: 0;
	text-wrap: nowrap;
}

.contact-info-left {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 1rem;
}

.map-container {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 2rem;
}

.map-content {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.map-content iframe {
	width: 100%;
	height: 300px;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
	/* padding handled by base.css */

	.contact-heading {
		font-size: 32px;
	}

	.contact-info-left,
	.contact-info-right {
		gap: 2.5rem;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	/* padding handled by base.css */

	.contact-heading-container {
		margin-top: 6rem;
	}

	.contact-heading {
		font-size: 48px;
	}

	.contact-info-container {
		width: 100%;
		display: flex;
		flex-direction: column;
	}

	.contact-info-heading {
		font-size: 23px;
		text-wrap: nowrap;
	}

	.info-box-content {
		font-size: 16px;
	}

	.contact-info-left {
		display: grid;
		column-gap: 6rem;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		width: 100%;
	}

	.company-address-row {
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		width: 100%;
		gap: 5rem;
		flex-wrap: nowrap;
		margin-top: 0;
		align-items: flex-start;
	}
	.manager-email-row {
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		width: 100%;
		gap: 5rem;
		flex-wrap: nowrap;
		margin-top: 2rem;
		align-items: flex-start;
	}

	.contact-info-right {
		gap: 1rem;
	}

	.map-content iframe {
		height: 350px;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	/* padding handled by base.css */

	.contact-heading {
		font-size: 56px;
	}

	.contact-content {
		padding-left: 1.5rem;
	}

	.contact-section {
		padding: 0;
	}

	.contact-heading-container {
		margin-top: 0;
		margin-bottom: 0;
	}

	.contact-info-container {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 4rem;
		margin-bottom: 6rem;
	}

	.contact-info-left {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		width: 100%;
		height: 100%;
		gap: 2rem;
		align-items: stretch;
	}

	.contact-info-box {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		height: fit-content;
	}

	.company-address-row {
		display: none;
	}
	.manager-email-row {
		display: none;
	}

	.contact-info-right {
		display: none;
	}

	.map-container {
		width: 85%;
		margin-top: 0;
	}

	.map-content iframe {
		width: 100%;
		height: 364px;
	}
}

@media (min-width: 1024px) {
	.contact-info-left {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 2.5rem;
		align-items: stretch;
	}

	.contact-info-box {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}

	.company-address-row {
		display: none;
	}

	.manager-email-row {
		display: none;
	}
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
	/* padding handled by base.css */

	.contact-heading {
		font-size: 64px;
	}

	.contact-info-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: stretch;
	}

	.contact-info-heading {
		font-size: 28px;
	}

	.contact-info-left {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		width: 100%;
		gap: 3rem;
		align-items: stretch;
	}

	.contact-info-box {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}

	.company-address-row {
		display: none;
	}
	.manager-email-row {
		display: none;
	}

	.map-container {
		width: 100%;
		height: 85%;
		display: flex;
		justify-content: center;
		align-items: stretch;
	}

	.page-template-contact-page .contact-section {
		padding: 0 0.5rem 0 1rem;
	}

	.map-content {
		width: 100%;
		height: 100%;
		display: flex;
	}

	.map-content iframe {
		width: 100%;
		max-width: 1400px;
		height: 100%;
		min-height: 300px;
	}
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
	.contact-page-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4rem;
	}

	.contact-heading-container {
		margin-top: 6rem;
	}

	.contact-info-container {
		gap: 3rem;
		align-items: stretch;
		padding: 0 0.5rem;
	}

	.contact-info-heading {
		font-size: 22px;
	}

	.contact-page-contact-wrapper {
		margin: 0 4rem 6rem 1rem;
		padding-right: 1rem;
	}

	.contact-page-container {
		padding: 0 2rem 0 1rem;
	}

	.contact-content {
		padding-left: 1rem;
	}

	.contact-info-left {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 4rem;
		row-gap: 9rem;
	}

	.contact-lead {
		max-width: 610px;
		font-size: 18px;
		margin-left: 0.3rem;
	}

	.contact-heading-container {
		gap: 2rem;
		margin-bottom: 4rem;
	}

	.map-content iframe {
		width: 100%;
		max-width: 1400px;
		height: 100%;
		min-height: 350px;
	}
}

@media (min-width: 1800px) {
	.contact-page-container {
		padding: 0 2rem 0 0;
	}

	.contact-page-contact-wrapper {
		width: 100%;
		max-width: 1600px;
		margin: 0 auto 100px auto;
	}

	.contact-content {
		width: 100%;
		max-width: 1600px;
		margin: 0 auto;
	}

	.contact-heading-container {
		width: 100%;
		max-width: 1600px;
	}

	.form-container {
		padding-right: 0;
	}

	.page-template-contact-page .contact-section {
		padding: 0 0.5rem 0 0;
	}
}
