/* =============================================
   Shared Popup (location-popup, calc-widget-popup, wymien-teraz-popup)
   ============================================= */

.popup {
	display: none;
	position: fixed;
	top: 0;
	left: var(--viewport-offset, 0);
	width: var(--viewport-base-width, 1920px);
	min-height: calc(100vh / var(--viewport-scale, 1));
	z-index: 9999;
	transform: scale(var(--viewport-scale, 1));
	transform-origin: top left;
	will-change: transform;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.popup.is-active {
	display: flex;
}

.popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.popup__container {
	position: relative;
	z-index: 1;
	width: 100%;
	overflow-y: auto;
	background: #161616;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 28px;
	box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.25), 0px 20px 30px rgba(0, 0, 0, 0.4), inset 0px 1px 6px 0px rgba(0, 0, 0, 0.06);
	padding: 60px;
	display: flex;
	flex-direction: column;
}

.popup--location .popup__container {
	max-width: 1298px;
	gap: 83px;
}

.popup--form .popup__container {
	max-width: 580px;
	gap: 36px;
}

.popup__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 40px;
	min-height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b4b4b4;
	padding: 0;
	transition: color 0.2s;
}

.popup__close:hover {
	color: #ffffff;
}

.popup__close svg {
	width: 20px;
	height: 20px;
}

.popup__header {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.popup__heading {
	font-family: 'Manrope';
	font-weight: 500;
	color: #ffffff;
	text-align: center;
	margin: 0;
}

.popup--location .popup__heading {
	font-size: 62px;
	line-height: 74.4px;
}

.popup--form .popup__heading {
	font-size: 32px;
	line-height: 1.2;
}

.popup__description {
	padding-top: 0px;
	text-align: center;
	margin-bottom: 0;
}

/* Location popup: location cards
--------------------------------------------- */

.popup__cards {
	display: flex;
	gap: 30px;
}

.popup__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	min-height: 421px;
	padding: 40px;
	border-radius: 22px;
	text-decoration: none;
	transition: border-color 0.2s;
}

.popup__card:hover {
	border-color: rgba(255, 255, 255, 0.25);
}

.popup__card-icon {
	width: 70px;
	height: 70px;
	border-radius: 999px;
	background: #f8cd04;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.popup__card-icon svg {
	width: 30px;
	height: 30px;
	color: #000000;
}

.popup__card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.popup__card-name {
	margin-bottom: 0;
	margin-top: 0;
	color: #b4b4b4;
}

.popup__card-address {
	font-family: 'Helvetica Neue';
	font-weight: 500;
	font-size: 34px;
	line-height: 40px;
	color: #ffffff;
	margin-bottom: 0;
}

.popup__card-hours {
	margin-bottom: 0;
	color: #b4b4b4;
	margin-top: 0;
}

/* Form popups: CF7 form fields (calc-widget-popup, wymien-teraz-popup)
--------------------------------------------- */

.popup__form .wpcf7-form p {
	margin: 0;
}

.popup__form .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 20px;
}

.popup__form input[type="text"],
.popup__form input[type="email"],
.popup__form input[type="tel"],
.popup__form textarea {
	width: 100%;
	box-sizing: border-box;
	background: #212121;
	border: none;
	border-radius: 10px;
	padding: 20px;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	color: #ffffff;
}

.popup__form textarea {
	resize: vertical;
}

.popup__form input[type="text"]::placeholder,
.popup__form input[type="email"]::placeholder,
.popup__form input[type="tel"]::placeholder,
.popup__form textarea::placeholder {
	color: #b4b4b4;
}

.popup__form input[type="text"]:focus,
.popup__form input[type="email"]:focus,
.popup__form input[type="tel"]:focus,
.popup__form textarea:focus {
	outline: none;
}

.popup__form button.button {
	width: 100%;
	border: none;
	-webkit-appearance: none;
	appearance: none;
}

.popup__form button.button .button-text {
	flex: 1;
	text-align: center;
}

.popup__form .wpcf7-response-output {
	margin: 20px 0 0;
	border-radius: 10px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
}

/* ============================================================
   # MEDIA: 1200px
   ============================================================ */

@media screen and (max-width: 1200px) {
	.popup__container {
		padding: 40px 24px;
	}

	.popup--location .popup__container {
		max-width: 840px;
		gap: 48px;
	}

	.popup--location .popup__heading {
		font-size: 40px;
		line-height: 1.2;
	}

	.popup--location .popup__card-address {
		font-size: 28px;
		line-height: 32px;
	}

	.popup--location .popup__card {
		min-height: auto;
	}

	.popup--form .popup__container {
		gap: 28px;
	}

	.popup--form .popup__heading {
		font-size: 26px;
	}
}

/* ============================================================
   # MEDIA: 992px
   ============================================================ */

@media (max-width: 992px) {

}

/* ============================================================
   # MEDIA: 576px
   ============================================================ */

@media (max-width: 576px) {
	.popup--location .popup__cards {
		flex-direction: column;
	}

	.popup--form .popup__container {
		padding: 32px 20px;
	}
}
