/* Consolidated from the site's previous 2125.css / 2169.css / 2180.css
   Simple Custom CSS & JS snippets — same class names, so existing visual
   output is preserved. */

/* Inline (non-popup) forms sit in a white card, as the old [sc name="form"]
   snippet's #sbContactForm did; the popup box provides its own chrome. */
.sb-contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 50px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
	box-sizing: border-box;
}

.sb-form-row {
	display: flex;
	gap: 20px;
}

.sb-form-row .sb-form-group {
	flex: 1;
}

/* Prefixed with .sb-contact-form to outrank Divi's global
   input[type=text], select, textarea { padding: 2px; border: 1px solid #bbb;
   background: #fff } rule, which otherwise ties on specificity and wins
   whenever Divi's stylesheet loads after this one. */
.sb-contact-form .sb-form-group input,
.sb-contact-form .sb-form-group select,
.sb-contact-form .sb-form-group textarea {
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #f9fafb;
	color: #222;
	font-size: 15px;
	outline: none;
	box-shadow: none;
	box-sizing: border-box;
	transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.sb-contact-form .sb-form-group input:focus,
.sb-contact-form .sb-form-group select:focus,
.sb-contact-form .sb-form-group textarea:focus {
	border-color: #2563eb;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.sb-contact-form .sb-form-group textarea {
	min-height: 160px;
	resize: vertical;
}

.sb-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.sb-captcha-wrap {
	flex: 1;
}

/*
 * !important throughout this rule is deliberate: Divi ships a broad,
 * high-specificity global style for `button`/submit elements (size,
 * uppercase text, letter-spacing, full-width in some contexts, hover
 * color) that was overriding every plain, non-!important property we
 * tried here — width, padding, font-size, and hover color all lost to
 * it. Since we can't out-specificity a theme-level reset without
 * knowing its exact selector, !important is the standard way a
 * self-contained embedded form asserts its own compact button style
 * regardless of host-page CSS.
 */
.sb-submit-btn {
	display: inline-block !important;
	width: auto !important;
	flex: 0 0 auto !important;
	align-self: flex-start !important;
	background-color: #f2711c !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 16px 34px !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: normal !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
	white-space: nowrap;
}

.sb-submit-btn:hover,
.sb-submit-btn:focus {
	background-color: #ff8c3f !important;
	color: #fff !important;
}

/* While "Sending…": progress (arrow + spinner) rather than wait, since
   the rest of the page stays usable. */
.sb-submit-btn:disabled {
	cursor: progress !important;
	opacity: .75 !important;
}

.plc-form-title {
	margin: 0 0 4px;
}

.plc-form-message {
	margin: 4px 0 0;
	font-size: 14px;
}

.plc-form-message.plc-success {
	color: #1a7f37;
}

.plc-form-message.plc-error {
	color: #c0362c;
}

.plc-file-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: #555;
}

.sb-contact-form .sb-form-group input[type="file"] {
	padding: 9px 10px;
	background: #fff;
}

/* Honeypot field — hidden from real visitors, left in the tab/DOM flow
   for bots that fill every field programmatically. */
.plc-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 767px) {
	.sb-contact-form {
		padding: 30px 20px;
	}

	.sb-form-row {
		flex-direction: column;
	}
}

/* Quote/Demo popup chrome, migrated from 2180.css */
.plc-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
}

.plc-popup-overlay.active {
	display: flex;
}

.plc-popup-box {
	background: #fff;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow: auto;
	border-radius: 12px;
	padding: 40px;
	position: relative;
}

/* The popup box already provides its own spacing — without this, an
   inline-context form's padding would stack with it and look oversized. */
.plc-popup-box .sb-contact-form,
.sgpb-popup-dialog-main-div-wrapper .sb-contact-form {
	padding: 0;
	box-shadow: none;
	border-radius: 0;
}

.plc-popup-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
}

body.plc-popup-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.plc-popup-box {
		padding: 25px;
	}
}
