/* Folsen enquiry popup. */

/* Three classes so these beat the theme's own .wd-popup-element rules, which
   are printed after this stylesheet and otherwise add 30px of padding and
   square off the corners. */
.folsen-inquiry.wd-popup.wd-popup-element {
	padding: 0;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	border-radius: 8px;
	background-color: #fff;
}

.folsen-inquiry-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

/* Brand panel ---------------------------------------------------------- */

.folsen-inquiry-intro {
	flex: 1 1 340px;
	padding: 24px 24px;
	background-color: #fff;
}

.folsen-inquiry-logo {
	display: block;
	width: 150px;
	height: auto;
	margin-bottom: 14px;
}

.folsen-inquiry .folsen-inquiry-title {
	margin-bottom: 10px;
	color: #0068b0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.folsen-inquiry-lead {
	margin-bottom: 14px;
	color: var(--wd-text-color, #313131);
	font-size: 14px;
	line-height: 1.5;
}

.folsen-inquiry-image {
	display: block;
	width: 100%;
	/* The product shot is nearly square; capping it keeps the whole panel on
	   screen at laptop heights without scrolling. It sits on white, so
	   letterboxing is invisible. */
	max-height: 190px;
	object-fit: contain;
	margin-bottom: 14px;
	border-radius: 5px;
	background-color: #fff;
}

/* "Saziņai:" heads the contact block; on mobile the block sits below the form,
   away from the panel title, so it needs a heading of its own. */
.folsen-inquiry .folsen-inquiry-contacts-title {
	margin-top: 0;
	margin-bottom: 4px;
}

.folsen-inquiry-contacts {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Latvia and Lithuania each sit on their own card so the two offices read as
   separate blocks instead of one run of four rows. */
.folsen-inquiry-contacts .folsen-office {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #e8ebf0;
	list-style: none;
}

.folsen-inquiry-contacts .folsen-office:first-child {
	padding-top: 0;
	border-top: 0;
}

.folsen-inquiry-contacts .folsen-office:last-child {
	padding-bottom: 0;
}

.folsen-office-label {
	display: block;
	margin-bottom: 5px;
	color: #5d5d5d;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.folsen-inquiry-contacts .folsen-contact {
	display: flex;
	gap: 11px;
	align-items: center;
	margin-bottom: 6px;
	padding: 0;
}

.folsen-inquiry-contacts .folsen-contact:last-child {
	margin-bottom: 0;
}

.folsen-office-address .folsen-contact {
	align-items: flex-start;
}

.folsen-contact-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #0068b0;
}

.folsen-contact-icon img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.folsen-contact-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	line-height: 1.45;
}

.folsen-contact-label {
	color: #5d5d5d;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.folsen-office-address .folsen-contact-label {
	color: var(--wd-text-color, #313131);
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}

.folsen-office-address .folsen-contact {
	margin-bottom: 12px;
}

.folsen-office-address .folsen-contact:last-child {
	margin-bottom: 0;
}

.folsen-inquiry .folsen-contact-link {
	color: #0068b0;
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
}

.folsen-inquiry .folsen-contact-link:hover {
	text-decoration: underline;
}

.folsen-contact-text {
	color: #5d5d5d;
}

/* Form ----------------------------------------------------------------- */

.folsen-inquiry-form {
	flex: 1 1 420px;
	padding: 28px 26px;
	background-color: #f3f5f9;
}

.folsen-inquiry .folsen-inquiry-form-title {
	margin-bottom: 6px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.folsen-inquiry-form-lead {
	margin-bottom: 20px;
	color: #5d5d5d;
	font-size: 14px;
	line-height: 1.5;
}

.folsen-inquiry .folsen-field {
	margin-bottom: 12px;
}

.folsen-inquiry .folsen-field label {
	display: block;
	margin-bottom: 4px;
	color: var(--wd-text-color, #313131);
	font-size: 13px;
	font-weight: 600;
}

.folsen-inquiry .red-asterisk {
	margin-left: 2px;
	color: #e01b1b;
}

.folsen-inquiry input[type="text"],
.folsen-inquiry input[type="email"],
.folsen-inquiry input[type="tel"],
.folsen-inquiry textarea {
	width: 100%;
	height: auto;
	padding: 9px 14px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	background-color: #fff;
	font-size: 14px;
}

.folsen-inquiry textarea {
	height: 88px;
	min-height: 88px;
	resize: vertical;
}

.folsen-inquiry input[type="text"]:focus,
.folsen-inquiry input[type="email"]:focus,
.folsen-inquiry input[type="tel"]:focus,
.folsen-inquiry textarea:focus {
	border-color: var(--wd-primary-color, #7fc241);
	outline: none;
}

/* The consent text and the privacy policy link read as one sentence: the
   checkbox hangs in the left gutter and everything after it flows inline. */
.folsen-inquiry .folsen-consent {
	position: relative;
	margin-bottom: 14px;
	padding-left: 28px;
	color: #5d5d5d;
	font-size: 12.5px;
	line-height: 1.55;
}

.folsen-inquiry .folsen-consent .wpcf7-form-control-wrap,
.folsen-inquiry .folsen-consent .wpcf7-acceptance,
.folsen-inquiry .folsen-consent .wpcf7-list-item {
	display: inline;
	margin: 0;
}

.folsen-inquiry .folsen-consent label {
	display: inline;
	color: #5d5d5d;
	font-weight: 400;
}

.folsen-inquiry .folsen-consent .wpcf7-list-item-label {
	display: inline;
}

.folsen-inquiry .folsen-consent input[type="checkbox"] {
	/* Matches the checkbox size used elsewhere on the site; the browser default
	   rendered about half that next to this text. */
	position: absolute;
	top: 1px;
	left: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #0068b0;
	cursor: pointer;
}

.folsen-inquiry .folsen-privacy-link {
	/* Inline inside the consent sentence — no extra margin, the surrounding
	   text already supplies the spaces. */
	display: inline;
	margin: 0;
	color: #0068b0;
	/* Match the consent sentence, whatever size the theme gives the label. */
	font-size: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

.folsen-inquiry .folsen-submit {
	margin-bottom: 0;
}

.folsen-inquiry .folsen-submit-btn {
	width: 100%;
	padding: 13px 20px;
	border: none;
	border-radius: 5px;
	background-color: var(--wd-primary-color, #7fc241);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.folsen-inquiry .folsen-submit-btn:hover {
	background-color: #6fae35;
}

.folsen-inquiry .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.folsen-inquiry .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: #e01b1b;
	font-size: 12px;
}

.folsen-inquiry .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-radius: 5px;
	font-size: 13px;
	line-height: 1.45;
}

/* Popup chrome --------------------------------------------------------- */

.mfp-wrap .folsen-inquiry {
	max-width: var(--wd-popup-width, 940px);
	margin: 20px auto;
}

/* On a phone the form comes first — the Folsen introduction stays above it,
   the product shot and the contacts move below, so the fields are reachable
   without scrolling past the whole brand panel. */
@media (max-width: 860px) {
	.folsen-inquiry-grid {
		flex-direction: column;
	}

	.folsen-inquiry-intro {
		display: contents;
	}

	.folsen-inquiry-head {
		order: 1;
		padding: 20px 20px 18px;
		background-color: #fff;
	}

	.folsen-inquiry-head .folsen-inquiry-logo {
		width: 130px;
		margin-bottom: 14px;
	}

	.folsen-inquiry-head .folsen-inquiry-lead {
		font-size: 13px;
	}

	.folsen-inquiry-form {
		order: 2;
		flex: 1 1 auto;
		padding: 25px 20px;
		/* Stacked on a phone the grey split reads as a random band, so the
		   whole popup stays white. */
		background-color: #fff;
	}

	.folsen-inquiry-aside {
		order: 3;
		padding: 25px 20px;
		background-color: #fff;
	}

	.folsen-inquiry-image {
		margin-bottom: 20px;
	}

	.folsen-inquiry .folsen-inquiry-title {
		margin-bottom: 8px;
		font-size: 19px;
	}

	.folsen-inquiry .folsen-inquiry-form-title {
		font-size: 19px;
	}

	.folsen-inquiry-lead {
		margin-bottom: 0;
	}
}

/* Contact Form 7 adds a <br> after each label when autop is on; the popup lays
   the fields out itself, so any stray one is ignored. */
.folsen-inquiry .folsen-field > br,
.folsen-inquiry .folsen-consent > br {
	display: none;
}
