/**
 * Supplier application popup.
 *
 * Scoped to the popup modal rather than the form element, because the padding
 * that keeps the fields clear of the modal edge — and of the close button — has
 * to sit on the dialog, not on the form inside it.
 *
 * Field styling mirrors the contact form exactly (same borders, radius, type and
 * submit treatment) so the two read as one system.
 */

#elementor-popup-modal-12825 .dialog-message {
	padding: 40px 40px 36px;
	box-sizing: border-box;
}

/* The close button sits top-right over the first field without this. */
#elementor-popup-modal-12825 .dialog-close-button {
	inset-block-start: 14px;
	inset-inline-end: 14px;
}

#elementor-popup-modal-12825 .e-form-base {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 6px;
	column-gap: 0;
	width: 100%;
}

/**
 * Required-field marker.
 *
 * Driven off the field's own `required` attribute rather than written into the
 * label text, so marking a field required in the editor is all it takes and the
 * two can never disagree.
 *
 * A label sits BEFORE its field, so `:has(+ …)` reaches forward to it. The radio
 * group's own label is followed by the flexbox holding the buttons, hence the
 * descendant match. The consent checkbox is deliberately left unmarked — an
 * asterisk reads as clutter on a sentence-length label.
 *
 * aria-hidden is not available on a pseudo-element, so the asterisk is decorative
 * to a screen reader either way — `required` on the input is what actually
 * announces it.
 */
#elementor-popup-modal-12825 label:has(+ input:required)::after,
#elementor-popup-modal-12825 label:has(+ textarea:required)::after,
#elementor-popup-modal-12825 label:has(+ select:required)::after,
#elementor-popup-modal-12825 label:has(+ div input:required)::after {
	content: " *";
	color: #c8102e;
	font-weight: 600;
}

#elementor-popup-modal-12825 label {
	font-family: "Open Sans", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.3;
	color: #30303c;
	display: block;
	margin: 0;
}

#elementor-popup-modal-12825 input[type="text"],
#elementor-popup-modal-12825 input[type="email"],
#elementor-popup-modal-12825 input[type="tel"],
#elementor-popup-modal-12825 input[type="url"],
#elementor-popup-modal-12825 select,
#elementor-popup-modal-12825 textarea {
	width: 100%;
	min-height: 39px;
	font-family: "Open Sans", sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #21272a;
	background: #fff;
	border: 1px solid #97979d;
	border-radius: 4px;
	padding: 0 10px;
	margin-block-end: 14px;
	box-sizing: border-box;
}

#elementor-popup-modal-12825 textarea {
	min-height: 110px;
	line-height: 24px;
	padding: 10px;
	resize: vertical;
}

#elementor-popup-modal-12825 select {
	padding-block: 8px;
}

/* Radio pair: each button hugs its own label, and the two options are separated
   by a wider gap. Flat siblings, so the spacing is per-element rather than a
   single row gap, which would space button-to-label as widely as option-to-option. */
#elementor-popup-modal-12825 .e-form-base > div:has(> input[type="radio"]) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin-block: 2px 16px;
}

#elementor-popup-modal-12825 input[type="radio"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 0 8px 0 0;
	accent-color: #05d16e;
	flex: 0 0 auto;
}

#elementor-popup-modal-12825 .e-form-base > div:has(> input[type="radio"]) label {
	width: auto;
	margin: 0 28px 0 0;
}

/* Consent row */
#elementor-popup-modal-12825 .e-form-base > div:has(> input[type="checkbox"]) {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0;
	margin-block: 6px 4px;
}

#elementor-popup-modal-12825 input[type="checkbox"] {
	width: 20px;
	height: 20px;
	min-width: 20px;
	margin: 0 10px 0 0;
	border: 1px solid #97979d;
	border-radius: 2px;
	background: #fff;
	accent-color: #05d16e;
	flex: 0 0 auto;
}

#elementor-popup-modal-12825 .e-form-base > div:has(> input[type="checkbox"]) label {
	width: auto;
	margin: 0;
}

/**
 * The submit button.
 *
 * min-width carries !important because Elementor writes `min-width: 0` inline on
 * the atomic button at runtime, and an inline declaration outranks any selector
 * here. That inline reset is why the button rendered at its content width all
 * along — the previous 120px never applied either.
 *
 * justify-self centres it: the form is a grid, so align-self would centre on the
 * block axis and do nothing horizontally.
 */
#elementor-popup-modal-12825 button[type="submit"] {
	width: fit-content;
	min-width: 260px !important;
	justify-self: center;
	min-height: 47px;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 12px;
	color: #30303c;
	text-transform: uppercase;
	cursor: pointer;
	background: #05d16e;
	border: 0;
	border-radius: 999px;
	padding: 15px 24px;
	margin-block-start: 20px;
	transition: background-color 0.25s ease;
}

#elementor-popup-modal-12825 button[type="submit"]:hover {
	background: #04b75f;
}

/* Paired fields (first/last name, company name/website) share a row on desktop.
   The label and its input are a column inside it, so each half keeps its own
   stack. Below the tablet breakpoint the pair stacks instead — at popup width
   two side-by-side inputs are too narrow to type into comfortably.

   Spacing inside a column comes from the label's margin, NOT from gap. A
   password manager injects a zero-size <div> next to the input to hang its icon
   on; gap treats that div as another item and adds a second gap, so the field
   visibly drops. Its inline styles are all !important, so it cannot be hidden or
   repositioned from here — but a margin costs nothing when the extra child is
   the one carrying it. */
#elementor-popup-modal-12825 .form-two-col > * {
	margin-block-end: 0;
	row-gap: 0;
}

#elementor-popup-modal-12825 .form-two-col label {
	margin-block-end: 6px;
}

@media (max-width: 767px) {
	#elementor-popup-modal-12825 .dialog-message {
		padding: 32px 20px 28px;
	}

	#elementor-popup-modal-12825 .form-two-col {
		flex-direction: column;
		row-gap: 0;
	}
}
