/* CTA Forms – frontend baseline (scoped to .ctaforms) */
.ctaforms {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
}

.ctaforms *,
.ctaforms *::before,
.ctaforms *::after {
	box-sizing: border-box;
}

.ctaforms-inline {
	padding: 1.25rem;
	max-width: 100%;
}

.ctaforms-form .ctaforms-field {
	margin-bottom: 1rem;
}

.ctaforms-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.ctaforms-form input[type="text"],
.ctaforms-form input[type="email"],
.ctaforms-form input[type="tel"],
.ctaforms-form input[type="number"],
.ctaforms-form input[type="date"],
.ctaforms-form select,
.ctaforms-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.ctaforms-form textarea {
	min-height: 100px;
	resize: vertical;
}

.ctaforms-form .ctaforms-required {
	color: #b00;
}

.ctaforms-form .ctaforms-actions {
	margin-top: 1.25rem;
}

.ctaforms-submit {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	background: #2271b1;
	color: #fff;
	border: 1px solid #2271b1;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.ctaforms-submit:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.ctaforms-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ctaforms-message {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
}

.ctaforms-message.ctaforms-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.ctaforms-message.ctaforms-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.ctaforms-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Modal – base styles so form opens in modal window only */
.ctaforms-modal-wrapper {
	display: block;
}

.ctaforms-modal-trigger {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	background: #2271b1;
	color: #fff;
	border: 1px solid #2271b1;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.ctaforms-modal-trigger:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.ctaforms-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.ctaforms-modal-overlay[style*="display: none"],
.ctaforms-modal-overlay[aria-hidden="true"] {
	display: none !important;
}

.ctaforms-modal-box {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 500px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.5rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.ctaforms-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0.25rem;
}

.ctaforms-modal-close:hover {
	color: #000;
}

.ctaforms-modal-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

/* Form inside modal – only visible when overlay is shown */
.ctaforms-modal-wrapper .ctaforms-inline,
.ctaforms-modal-wrapper .ctaforms-form-in-modal {
	padding: 0;
	display: block;
}

.ctaforms-modal-box .ctaforms-message.ctaforms-success {
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.ctaforms-form.ctaforms-form-hidden {
	display: none !important;
}

/* Floating button */
.ctaforms-floating-wrapper {
	position: fixed;
	z-index: 99999;
}

.ctaforms-floating-wrapper.ctaforms-float-bottom-right {
	bottom: 1.5rem;
	right: 1.5rem;
}

.ctaforms-floating-wrapper.ctaforms-float-bottom-left {
	bottom: 1.5rem;
	left: 1.5rem;
}

.ctaforms-floating-wrapper .ctaforms-modal-trigger {
	padding: 0.75rem 1.25rem;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ctaforms-floating-wrapper .ctaforms-modal-trigger:hover {
	background: #135e96;
	color: #fff;
}

/* Radio/checkbox layout */
.ctaforms-field-radio label,
.ctaforms-field-checkbox label {
	display: inline-block;
	margin-right: 1rem;
	font-weight: normal;
}

.ctaforms-field-radio input,
.ctaforms-field-checkbox input {
	width: auto;
	margin-right: 0.25rem;
}
