/* Request a Demo modal + form (uses design tokens defined in site.css) */

.strivo-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
}
.strivo-modal.is-open {
	display: block;
}
.strivo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(29, 32, 41, 0.6);
}
.strivo-modal__dialog {
	position: relative;
	z-index: 1;
	background: var(--strivo-surface, #fff);
	max-width: 720px;
	width: calc(100% - 32px);
	margin: 5vh auto;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(29, 32, 41, 0.25);
	padding: 40px 40px 32px;
}
/* .strivo-modal__close twice: out-specificities Hello Elementor's
   reset.css `button` / `[type=button]` rules, which tie otherwise and win
   by loading after this stylesheet. */
.strivo-modal__close.strivo-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--strivo-bg, #fafafa);
	border: 1px solid var(--strivo-border, #e4e7ec);
	border-radius: 8px;
	color: var(--strivo-navy, #282c38);
	cursor: pointer;
}
.strivo-modal__close.strivo-modal__close:hover,
.strivo-modal__close.strivo-modal__close:focus,
.strivo-modal__close.strivo-modal__close:focus-visible {
	background: var(--strivo-border, #e4e7ec);
	color: var(--strivo-navy, #282c38);
}
/* Root cause of the icon rendering at 0 width: an <svg> with only HTML
   width/height attributes (no CSS width/height) is a flex item here, and
   `min-width: auto` + `flex-shrink: 1` collapses it to 0px in this engine.
   Setting explicit CSS width/height (and flex-shrink: 0) overrides that
   intrinsic-size flex calculation entirely. */
.strivo-modal__close.strivo-modal__close svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: block;
}
.strivo-modal__close.strivo-modal__close:focus-visible {
	outline: 2px solid var(--strivo-navy, #282c38);
	outline-offset: 2px;
}

.strivo-demo-form h2 {
	font-family: var(--strivo-font-heading, inherit);
	margin: 0 0 8px;
	font-size: 28px;
	color: var(--strivo-navy, #282c38);
}
.strivo-demo-form__intro {
	color: var(--strivo-muted, #667085);
	margin: 0 0 24px;
	line-height: 1.6;
}
.strivo-demo-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.strivo-demo-form__error {
	background: #FEF2F2;
	border: 1px solid #FCA5A5;
	color: #991B1B;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}
.strivo-demo-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin-bottom: 8px;
}
.strivo-field--full {
	grid-column: 1 / -1;
}
.strivo-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.strivo-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--strivo-navy, #282c38);
}
.strivo-field span[aria-hidden] {
	color: #C0362C;
}
.strivo-field.strivo-field input,
.strivo-field.strivo-field select {
	font-family: var(--strivo-font-body, inherit);
	font-size: 15px;
	padding: 10px 12px;
	border: 1px solid var(--strivo-border, #e4e7ec);
	border-radius: 8px;
	background: #fff;
	width: 100%;
	color: var(--strivo-text, #282c38);
}
.strivo-field.strivo-field input:focus,
.strivo-field.strivo-field select:focus,
.strivo-field.strivo-field input:focus-visible,
.strivo-field.strivo-field select:focus-visible {
	outline: 2px solid var(--strivo-navy, #282c38);
	outline-offset: 1px;
	border-color: var(--strivo-navy, #282c38);
}
.strivo-field.has-error input,
.strivo-field.has-error select {
	border-color: #C0362C;
}
.strivo-field__error {
	font-size: 12px;
	color: #C0362C;
}

.strivo-demo-form__submit {
	width: 100%;
	margin-top: 16px;
	font-size: 16px;
}
.strivo-demo-form__submit[disabled] {
	opacity: 0.65;
	cursor: default;
}
.strivo-demo-form__note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--strivo-muted, #667085);
}

.strivo-demo-form__success h2 {
	font-family: var(--strivo-font-heading, inherit);
	color: var(--strivo-navy, #282c38);
	margin: 0 0 8px;
}
.strivo-demo-form__success p {
	color: var(--strivo-muted, #667085);
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 600px) {
	.strivo-modal__dialog {
		padding: 32px 20px 24px;
		margin: 0;
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
		width: 100%;
	}
	.strivo-demo-form__grid {
		grid-template-columns: 1fr;
	}
}
