/**
 * HubSpot form modal dialogs.
 *
 * @package Bringits
 */

body.bringits-hubspot-modal-open {
	overflow: hidden;
}

.bringits-hubspot-modals-root {
	position: relative;
	z-index: 10000;
}

.bringits-hubspot-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.bringits-hubspot-modal[hidden] {
	display: none !important;
}

.bringits-hubspot-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(27, 31, 29, 0.56);
	backdrop-filter: blur(2px);
}

.bringits-hubspot-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #ffffff;
	border-radius: 20px;
	padding: 48px 28px 28px;
	box-shadow: 0 24px 64px rgba(31, 35, 61, 0.18);
	box-sizing: border-box;
}

.bringits-hubspot-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #f6f6f6;
	color: #1b1f1d;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.bringits-hubspot-modal__close:hover {
	background: #edecf0;
}

.bringits-hubspot-modal__close:focus-visible {
	outline: 2px solid var(--secondary-color, #3716de);
	outline-offset: 2px;
}

.bringits-hubspot-modal__title {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
	line-height: 1.2;
	color: #1f233d;
	margin: 0 40px 20px 0;
}

.bringits-hubspot-modal__form {
	width: 100%;
}

.bringits-hubspot-modal__embed {
	min-height: 120px;
}

.bringits-hubspot-modal__form .hs-form label {
	font-family: 'Poppins', sans-serif;
}

.bringits-hubspot-modal__form .hs-button,
.bringits-hubspot-modal__form input[type='submit'] {
	font-family: 'Poppins', sans-serif;
}

button.sol-btn,
button.sol-pricing-card-btn,
button.uc-use-case-cta-btn {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
}

@media (max-width: 768px) {
	.bringits-hubspot-modal {
		padding: 16px;
	}

	.bringits-hubspot-modal__panel {
		padding: 28px 20px 24px;
	}
}
