/* WB Contact: modal contact form. */

.wbc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(14, 21, 34, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.wbc-overlay.on {
	display: flex;
}

.wbc-box {
	position: relative;
	background: #fff;
	color: #0f1622;
	width: 100%;
	max-width: 540px;
	max-height: 92vh;
	overflow: auto;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
	padding: 30px 30px 26px;
	font-family: Inter, system-ui, sans-serif;
}

.wbc-box h2 {
	font-family: "Bricolage Grotesque", Inter, sans-serif;
	font-size: 1.5rem;
	margin: 0 0 4px;
	letter-spacing: -.02em;
}

.wbc-box p.wbc-sub {
	margin: 0 0 18px;
	color: #586374;
	font-size: .95rem;
}

.wbc-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #586374;
	cursor: pointer;
}

.wbc-field {
	margin: 0 0 14px;
}

.wbc-field label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	color: #3a4658;
	margin-bottom: 5px;
}

.wbc-field input,
.wbc-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d7deea;
	border-radius: 10px;
	font: inherit;
	font-size: .95rem;
	background: #fff;
	color: #0f1622;
}

.wbc-field input:focus,
.wbc-field textarea:focus {
	outline: 2px solid #3f83c9;
	border-color: #3f83c9;
}

.wbc-field textarea {
	min-height: 120px;
	resize: vertical;
}

.wbc-drop {
	border: 1.5px dashed #c4cede;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	color: #586374;
	font-size: .9rem;
	cursor: pointer;
	background: #f7f9fc;
}

.wbc-drop:hover {
	border-color: #3f83c9;
	color: #1c3f6e;
}

.wbc-files {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	font-size: .85rem;
}

.wbc-files li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-top: 1px solid #eef1f6;
}

.wbc-files li.bad {
	color: #b3261e;
}

.wbc-files button {
	background: none;
	border: 0;
	color: #b3261e;
	cursor: pointer;
	font-size: 1rem;
}

.wbc-hp {
	position: absolute;
	left: -9999px;
}

.wbc-submit {
	width: 100%;
	margin-top: 8px;
	background: #1c3f6e;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background .15s;
}

.wbc-submit:hover {
	background: #122c50;
}

.wbc-submit:disabled {
	opacity: .6;
	cursor: default;
}

.wbc-msg {
	margin: 12px 0 0;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: .9rem;
	display: none;
}

.wbc-msg.err {
	display: block;
	background: #fdecea;
	color: #8a1f1a;
}

.wbc-msg.ok {
	display: block;
	background: #e8f5ec;
	color: #1e5b33;
}

.wbc-box .wb-captcha {
	margin: 4px 0 12px;
}

.wbc-req {
	color: inherit;
}

.wbc-hint,
.wbc-consent {
	display: block;
	font-size: .78rem;
	color: #8a94a6;
	margin: 6px 0 0;
}

:root[data-theme="dark"] .wbc-box {
	background: #141c29;
	color: #e6ecf5;
}

:root[data-theme="dark"] .wbc-box p.wbc-sub {
	color: #9aa7bb;
}

:root[data-theme="dark"] .wbc-close {
	color: #9aa7bb;
}

:root[data-theme="dark"] .wbc-field label {
	color: #c3ccda;
}

:root[data-theme="dark"] .wbc-field input,
:root[data-theme="dark"] .wbc-field textarea {
	background: #0f1622;
	border-color: #2a3547;
	color: #e6ecf5;
}

:root[data-theme="dark"] .wbc-field input:focus,
:root[data-theme="dark"] .wbc-field textarea:focus {
	outline-color: #6aa8e8;
	border-color: #6aa8e8;
}

:root[data-theme="dark"] .wbc-drop {
	background: #0f1622;
	border-color: #2a3547;
	color: #9aa7bb;
}

:root[data-theme="dark"] .wbc-drop:hover {
	border-color: #6aa8e8;
	color: #cfe0f4;
}

:root[data-theme="dark"] .wbc-files li {
	border-top-color: #232d3d;
}

:root[data-theme="dark"] .wbc-hint,
:root[data-theme="dark"] .wbc-consent {
	color: #7d879a;
}

:root[data-theme="dark"] .wbc-submit {
	background: #2f6fb8;
}

:root[data-theme="dark"] .wbc-submit:hover {
	background: #3f83c9;
}

:root[data-theme="dark"] .wbc-msg.err {
	background: #3a1d1b;
	color: #f3b4ae;
}

:root[data-theme="dark"] .wbc-msg.ok {
	background: #173425;
	color: #a7e0bf;
}
