/**
 * Know-how B2B rules — inquiry modal.
 *
 * Optional module: deleting this file and assets/js/kbr-inquiry.js alongside
 * includes/inquiry/ removes the feature whole.
 */

.kbr-inquiry-open {
	background: var(--kbr-accent, #1f3fd4);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 0.8rem 1.4rem;
}

.kbr-inquiry-open[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

body.kbr-modal-open {
	overflow: hidden;
}

.kbr-modal {
	inset: 0;
	position: fixed;
	z-index: 99999;
}

.kbr-modal[hidden] {
	display: none;
}

.kbr-modal__backdrop {
	backdrop-filter: blur(4px);
	background: #15192b8c;
	animation: .2s fade;
	position: absolute;
	inset: 0;
}

.kbr-modal__dialog {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 40px 80px -20px #0006;
	left: 50%;
	max-height: calc(100vh - 40px);
	max-width: 920px;
	overflow-y: auto;
	padding: 32px 36px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(920px, 100%);
	animation: .2s drop;
}

.kbr-modal__close {
	background: none;
	border: 0;
	color: #6b7490;
	cursor: pointer;
	padding: 0.35rem;
	position: absolute;
	right: 1rem;
	top: 1rem;
}

.kbr-modal__head {
	align-items: center;
	border-bottom: 1px solid #e6e6e9;
	display: flex;
	gap: 20px;
	margin-bottom: 24px;
	padding-bottom: 22px;
}

.kbr-modal__thumb {
	background: #fdf8f1;
	border-radius: 12px;
	flex: 0 0 auto;
	padding: 0.5rem;
	width: 96px;
}

.kbr-modal__thumb img {
	display: block;
	height: auto;
	width: 100%;
}

.kbr-modal__eyebrow {
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #334eac;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 700;
	display: block;
}

.kbr-modal__title {
	letter-spacing: -.02em;
	font-size: 22px;
	font-weight: 800;
}

.kbr-modal__meta {
	color: #8a8f9c;
	margin-top: 4px;
	font-size: 13px;
	margin-bottom: 0;
}

.kbr-modal__body {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.kbr-modal__selection {
	align-self: start;
	background: #fffaf3;
	border-radius: 16px;
	padding: 18px 20px;
}

.kbr-selection__head {
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	display: flex;
}

.kbr-selection__head h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.kbr-selection__edit {
	color: #334eac;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 600;
	display: inline-flex;
	background: 0 0;
	border: 0;
	padding: 0;
}

.kbr-selection__rows {
	border-bottom: 1px solid #15192b1a;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 12px !important;
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kbr-selection__rows li {
	justify-content: space-between;
	align-items: center;
	display: flex;
	font-size: 13.5px;
}

.kbr-selection__label {
	flex: 1 1 auto;
}

.kbr-selection__details {
	display: grid;
	grid-template-columns: auto 1fr;
	margin: 0;
	gap: 6px;
	padding: 12px 0;
	font-size: 13px;
}

.kbr-selection__details dt {
	color: #8a8f9c;
	font-weight: 400;
}

.kbr-selection__details dd {
	font-weight: 600;
	margin: 0;
	text-align: right;
}

.kbr-selection__total {
	border-top: 1px solid #15192b1a;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 10px;
	font-size: 13.5px;
	font-weight: 600;
	display: flex;
}

.kbr-selection__total strong {
	color: #334eac;
	font-size: 20px;
	font-weight: 800;
}

.kbr-selection__note {
	color: #8a8f9c;
	margin: 10px 0 12px;
	font-size: 12px;
	line-height: 1.5;
}

/* Contact Form 7 owns the markup inside; these rules only lay it out. */

.kh-field--span {
	display: none !important;
}

.kbr-modal__form .kh-row p {}

.kh-row-half p {
	display: flex;
	gap: 8px;
}

.kbr-modal__form .kh-field {
	display: block;
	margin-bottom: 0.7rem;
}

.kbr-modal__form .kh-label {
	display: block;
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 700;
	margin-top: 16px;
}

.kbr-modal__form textarea {
	resize: vertical;
	height: 108px !important;
	padding: 10px 12px !important;
	font-family: inherit;
}

.kbr-modal__form .kh-label em {
	color: #c0392b;
	font-style: normal;
}

.kbr-modal__form input[type="text"],
.kbr-modal__form input[type="email"],
.kbr-modal__form input[type="tel"],
.kbr-modal__form textarea {
	box-sizing: border-box;
	border: 1.5px solid #e6e6e9 !important;
	background: #fff !important;
	border-radius: 10px !important;
	outline: 0 !important;
	width: 100% !important;
	height: 44px !important;
	padding: 0 12px !important;
	font-size: 14px !important;
	color: #15192b !important;
}

.kbr-modal__form textarea[readonly] {
	background: #fff !important;
	color: #15192b !important;
}

.kbr-modal__form .kh-hidden,
.kbr-modal__form .kh-hidden input {
	display: none !important;
}

.kbr-modal__form .kh-accept {
	margin: 0.8rem 0;
}

.kbr-modal__form .kh-submit {
	background: var(--kbr-accent, #1f3fd4);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 0.9rem 1.5rem;
	width: 100%;
}

.kh-submit-wrap .wpcf7-spinner {
	display: none !important;
}

.kbr-modal__form .kh-note {
	text-align: center;
	color: #8a8f9c;
	margin: 0px;
	font-size: 12px;
	width: 100%;
	display: block;
}

.kbr-modal__sent {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	justify-content: center;
	padding: 2rem 1rem;
	text-align: center;
}

.kbr-modal__sent svg {
	color: #1f7a3d;
}

.kbr-modal__sent h3 {
	margin: 0;
}

.kh-submit-wrap .wpcf7-submit {
	background-color: #334eac !important;
	border: 1px solid #334eac !important;
	color: #fff !important;
	padding: 0 22px !important;
	border-radius: 4px !important;
	transition: 0.3s !important;
	font-size: 15.5px !important;
	font-weight: 600 !important;
	letter-spacing: 3% !important;
	text-transform: initial !important;
	height: 50px !important;
	transition: background .15s, transform .15s, box-shadow .15s !important;
	display: inline-flex !important;
	white-space: nowrap !important;
	border-radius: 100px !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 8px !important;
	max-width: unset !important;
	flex: 1;
	flex-grow: 1;
}

.data-kbr-inquiry-close {
	background-color: #334eac !important;
	border: 1px solid #334eac !important;
	color: #fff !important;
	padding: 0 22px !important;
	border-radius: 4px !important;
	transition: 0.3s !important;
	font-size: 15.5px !important;
	font-weight: 600 !important;
	letter-spacing: 3% !important;
	text-transform: initial !important;
	height: 50px !important;
	transition: background .15s, transform .15s, box-shadow .15s !important;
	display: inline-flex !important;
	white-space: nowrap !important;
	border-radius: 100px !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 8px !important;
	max-width: unset !important;
}

.kbr-modal__sent button {
	background-color: #334eac !important;
	border: 1px solid #334eac !important;
	color: #fff !important;
	padding: 0 22px !important;
	border-radius: 4px !important;
	transition: 0.3s !important;
	font-size: 15.5px !important;
	font-weight: 600 !important;
	letter-spacing: 3% !important;
	text-transform: initial !important;
	height: 50px !important;
	transition: background .15s, transform .15s, box-shadow .15s !important;
	display: inline-flex !important;
	white-space: nowrap !important;
	border-radius: 100px !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 8px !important;
	max-width: unset !important;
	line-height: 1 !important;
}

@media (max-width: 782px) {
	.kbr-modal__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.kbr-modal__form .kh-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.kbr-modal__dialog {
		border-radius: 14px;
		max-height: 100vh;
		padding: 1.1rem;
	}
}