

:root {
	--frstrm-accent: #2c3e50;
	--frstrm-accent-contrast: #ffffff;
}

.frstrm-open-form {
	cursor: pointer;
}
.frstrm-trigger-link {
	cursor: pointer;
	text-decoration: underline;
}
.frstrm-trigger-button {
	display: inline-block;
	cursor: pointer;
	padding: 10px 18px;
	border-radius: 6px;
	background: var(--frstrm-accent);
	color: var(--frstrm-accent-contrast) !important;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
}
.frstrm-trigger-button:hover {
	filter: brightness( 1.08 );
}

.frstrm-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}
.frstrm-modal.is-open {
	display: block;
}
.frstrm-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}
.frstrm-modal-box {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 92%;
	max-width: 680px;
	max-height: 90vh;
	overflow-y: auto;
	margin: 5vh auto;
	background: #fff;
	border-radius: 10px;
	padding: 28px 26px 18px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.25 );
	font-family: inherit;
	color: #222;
	line-height: 1.5;
}
.frstrm-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 4px;
}
.frstrm-modal-close:hover {
	color: #222;
}
.frstrm-modal-title {
	margin: 0 30px 14px 0;
	font-size: 20px;
	color: #1a1a1a;
}

.frstrm-steps {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 20px;
}
.frstrm-step-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e2e2e2;
	color: #777;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex: 0 0 auto;
}
.frstrm-step-dot.is-active {
	background: var(--frstrm-accent);
	color: var(--frstrm-accent-contrast);
}
.frstrm-step-line {
	flex: 1 1 auto;
	height: 2px;
	background: #e2e2e2;
}

.frstrm-step {
	display: none;
}
.frstrm-step.is-active {
	display: block;
}
.frstrm-intro {
	font-size: 13px;
	color: #555;
	margin: 0 0 16px;
}

.frstrm-field {
	margin-bottom: 14px;
	min-width: 0;
}
.frstrm-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}
.frstrm-field input[type="text"],
.frstrm-field input[type="email"],
.frstrm-field input[type="tel"],
.frstrm-field input[type="date"],
.frstrm-field textarea,
.frstrm-field select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #222;
}
.frstrm-field input:focus,
.frstrm-field textarea:focus,
.frstrm-field select:focus {
	outline: none;
	border-color: var(--frstrm-accent);
	box-shadow: 0 0 0 2px rgba( 0, 0, 0, 0.06 );
}

.frstrm-field select {
	line-height: normal !important;
	height: 40px;
	-webkit-appearance: menulist !important;
	appearance: menulist !important;
}

.frstrm-field input[type="date"] {
	min-width: 0;
}

.frstrm-row {
	display: flex;
	gap: 12px;
}
.frstrm-field-half {
	flex: 1 1 0;
	min-width: 0;
}

.frstrm-toggle {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.frstrm-toggle-opt {
	flex: 1 1 0;
	min-width: 120px;
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500 !important;
	margin-bottom: 0 !important;
}
.frstrm-toggle-opt input {
	margin: 0;
}

.frstrm-field-check label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.45;
	color: #444;
	cursor: pointer;
}
.frstrm-field-check input {
	margin-top: 2px;
	flex: 0 0 auto;
}
.frstrm-req {
	color: #c0392b;
}

.frstrm-legal-links {
	font-size: 12px;
	margin: 4px 0 16px;
}
.frstrm-legal-links a {
	color: #666;
	margin-right: 12px;
}

.frstrm-actions {
	margin-top: 8px;
}
.frstrm-actions-split {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.frstrm-actions-split .frstrm-btn {
	flex: 1 1 auto;
}
.frstrm-btn {
	display: inline-block;
	border: 0;
	border-radius: 6px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.2;
}
.frstrm-btn-primary,
.frstrm-btn-confirm {
	background: var(--frstrm-accent);
	color: var(--frstrm-accent-contrast);
	width: 100%;
}
.frstrm-btn-confirm {
	width: auto;
}
.frstrm-btn-primary:hover,
.frstrm-btn-confirm:hover {
	filter: brightness( 1.08 );
}
.frstrm-btn-secondary {
	background: #eee;
	color: #333;
}
.frstrm-btn-secondary:hover {
	background: #e2e2e2;
}
.frstrm-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.frstrm-summary {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 18px;
	font-size: 13px;
}
.frstrm-summary-row {
	display: flex;
	border-bottom: 1px solid #eee;
}
.frstrm-summary-row:last-child {
	border-bottom: 0;
}
.frstrm-summary-row .frstrm-sum-label {
	width: 42%;
	background: #f7f7f7;
	padding: 9px 11px;
	font-weight: 600;
	color: #444;
}
.frstrm-summary-row .frstrm-sum-value {
	flex: 1 1 auto;
	padding: 9px 11px;
	color: #222;
	word-break: break-word;
}

.frstrm-success {
	text-align: center;
	padding: 10px 0;
}
.frstrm-success-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--frstrm-accent);
	color: var(--frstrm-accent-contrast);
	font-size: 32px;
	line-height: 60px;
}
.frstrm-reference {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--frstrm-accent);
	background: #f5f5f5;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 6px;
	margin: 6px 0 14px;
}

.frstrm-error {
	display: block;
	color: #c0392b;
	font-size: 12px;
	margin-top: 4px;
	min-height: 1px;
}
.frstrm-field.has-error input,
.frstrm-field.has-error textarea,
.frstrm-field.has-error select {
	border-color: #c0392b;
}
.frstrm-form-error {
	display: none;
	margin-top: 14px;
	padding: 10px 12px;
	background: #fdecea;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	color: #a02622;
	font-size: 13px;
}
.frstrm-form-error.is-visible {
	display: block;
}

.frstrm-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	overflow: hidden;
}

.frstrm-credit {
	text-align: center;
	margin-top: 16px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}
.frstrm-credit a {
	font-size: 13px;
	color: #666;
	text-decoration: underline;
	font-weight: 500;
}
.frstrm-credit a:hover {
	color: var(--frstrm-accent);
}

@media ( max-width: 520px ) {
	.frstrm-modal-box {
		width: 100%;
		max-height: 100vh;
		margin: 0;
		border-radius: 0;
		padding: 24px 18px 16px;
	}
	.frstrm-row {
		flex-direction: column;
		gap: 0;
	}
	.frstrm-actions-split {
		flex-direction: column-reverse;
	}
}
