/* Apex Lead Forms - front-end styles
   Colors approximate the reference mockups (navy / orange). Override any
   of this from your theme's stylesheet - every selector is prefixed .alf-
   so it won't collide with theme styles. */

.alf-form-wrap {
	--alf-navy: #0f2557;
	--alf-orange: #ef6c2e;
	--alf-gray: #8a8f98;
	--alf-border: #d7dbe0;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1c1c1c;
	box-sizing: border-box;
}
.alf-form-wrap * {
	box-sizing: border-box;
}

.alf-sample-wrap {
    background: #99939300;
	padding: 40px 32px;
	border-radius: 10px;
}

/* No max-width here (unlike .alf-quote-wrap's 980px cap) - this form is
   meant to stretch to fill whatever container it's placed in. */
.alf-contact-wrap {
	background: transparent;
	padding: 40px 32px;
	border-radius: 10px;
	width: 100%;
}

/* Newsletter Signup - a pill-shaped email input + button on a soft card.
   [apex_news_form] alone renders just the pill (.alf-news-plain); adding
   title/subtitle attributes adds a heading next to it (.alf-news-has-copy).
   layout="row" (default) sits the heading beside the pill; layout="column"
   stacks the heading above it - e.g. a narrow footer widget column. Fills
   whatever container it's dropped into rather than centering as a fixed
   card, so width is controlled by that container. */
.alf-news-wrap {
	width: 100%;
	max-width: none;
}
.alf-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.alf-news-card {
    background: #e9edf7;
    border-radius: 20px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 28px;
	margin-bottom: 21px;
}
.alf-news-plain .alf-news-card {
	justify-content: center;
}
.alf-news-copy {
    flex: 1 1 20px;
    min-width: 0;
}
.alf-news-title {
    margin: 0 0 6px;
    color: var(--alf-navy);
    font-weight: 800;
    font-size: 20px !important;
    font-size: 19px;
    line-height: 1.3 !important;
}
.alf-news-subtitle {
	margin: 0;
	color: #5b6472;
	font-size: 14px;
	line-height: 1.5;
}
.alf-news-pillwrap {
	flex: 0 0 auto;
	width: 100%;
	max-width: 420px;
}
.alf-news-plain .alf-news-pillwrap {
	max-width: 480px;
}
.alf-news-pill {
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 37, 87, 0.08);
	transition: box-shadow 0.15s ease;
}
.alf-news-pill:focus-within {
	box-shadow: 0 0 0 3px rgba(15, 37, 87, 0.15);
}
.alf-news-pill input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 15px 22px;
	font-size: 15px;
	color: #1c1c1c;
	outline: none;
}
.alf-news-pill input[type="email"]::placeholder {
	color: #9aa1ac;
}
.alf-news-btn {
    display:flex;
    align-items: center;
    margin: 0;
    padding: 11px !important;
    margin-top: 0px !important;
    flex: 0 0 auto;
    border: none;
    background: var(--alf-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px !important;
    line-height: 1.3;
    padding: 15px 30px;
    cursor: pointer;
    white-space: nowrap;
}
.alf-news-btn:hover {
	background: #d95f26;
}
.alf-news-btn:disabled {
	opacity: 0.7;
	cursor: default;
}
.alf-news-pillwrap > .alf-error-text {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #c0392b;
}

/* layout="column" (or a narrow container in the row layout) - heading
   breaks onto its own line above the pill instead of sitting beside it. */
.alf-news-layout-column .alf-news-card {
	flex-direction: column;
	align-items: stretch;
}
.alf-news-layout-column .alf-news-copy,
.alf-news-layout-column .alf-news-pillwrap {
	max-width: none;
}
@media (max-width: 640px) {
	.alf-news-layout-row .alf-news-card {
		flex-direction: column;
		align-items: stretch;
	}
	.alf-news-layout-row .alf-news-pillwrap {
		max-width: none;
	}
}

.alf-title {
	color: var(--alf-navy);
	font-weight: 800;
	font-size: 30px;
	margin: 0 0 4px;
}
.alf-title-center {
	text-align: center;
}
.alf-subtitle {
	text-align: center;
	color: #555b64;
	max-width: 560px;
	margin: 10px auto 28px;
	line-height: 1.5;
}
.alf-section-title {
	color: var(--alf-navy);
	font-weight: 800;
	font-size: 22px;
	margin: 0 0 20px;
}

.alf-section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 18px;
}
.alf-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--alf-navy);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	flex: 0 0 auto;
}
.alf-section-heading h3 {
	color: var(--alf-navy);
	font-weight: 800;
	font-size: 19px;
	margin: 0;
}

.alf-row {
	display: flex;
	gap: 24px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.alf-row-1col .alf-field {
	flex: 1 1 100%;
}
.alf-field {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.alf-field label {
	font-size: 13px;
	color: #6b7280;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.alf-required {
	color: var(--alf-orange);
	font-weight: 600;
}

.alf-field input[type="text"],
.alf-field input[type="email"],
.alf-field input[type="tel"],
.alf-field select {
	width: 100%;
	padding: 10px 4px;
	font-size: 15px;
	border: none;
	border-bottom: 1.5px solid var(--alf-border);
	background: transparent;
	color: #1c1c1c;
	transition: border-color 0.15s ease;
}
.alf-sample-wrap .alf-field select {
	border: 1.5px solid var(--alf-border);
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
}
.alf-field input:focus,
.alf-field select:focus {
	outline: none;
	border-color: var(--alf-navy);
}
.alf-field input::placeholder {
	color: #b7bcc4;
}

/* --- Dropdowns -----------------------------------------------------------
   Themes very often style bare <select> with their own arrow as a
   background-image. If we don't pin down repeat/position/size, that image
   tiles across the whole control (rows of little chevrons). So: kill the
   native + theme appearance entirely and draw one arrow ourselves.

   The selectors are deliberately over-specific and the background props use
   !important, because this has to hold up inside whatever theme the site is
   running - a plugin can't assume it wins the cascade. */

.alf-form-wrap .alf-form .alf-field select {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230f2557' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 8px center !important;
	background-size: 12px 8px !important;
	padding-right: 30px !important;
	border-radius: 0;
	line-height: 1.4;
	height: auto;
	min-height: 0;
	text-indent: 0;
}

/* Edge/IE would otherwise draw its own arrow on top of ours. */
.alf-form-wrap .alf-form .alf-field select::-ms-expand {
	display: none;
}

/* Quote form: match the underline style of the text inputs beside it,
   rather than the theme's boxed select. */
.alf-form-wrap .alf-quote-form .alf-field select {
	border: none !important;
	border-bottom: 1.5px solid var(--alf-border) !important;
	padding-left: 4px !important;
	box-shadow: none !important;
}
.alf-form-wrap .alf-quote-form .alf-field select:focus {
	border-bottom-color: var(--alf-navy) !important;
	outline: none;
}

/* The sample form's boxed style keeps its white fill + rounded border. */
.alf-form-wrap .alf-sample-form .alf-field select {
	background-color: #fff !important;
	border: 1.5px solid var(--alf-border);
	border-radius: 8px;
	padding: 10px 30px 10px 12px !important;
}

/* Two across, matching the design (Custom Transfers | Applique & Sewing,
   then Hybrid Pack wrapping onto its own row). */
.alf-radio-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	padding-top: 4px;
}
@media (max-width: 600px) {
	.alf-radio-group {
		grid-template-columns: 1fr;
	}
}

/* Sub-heading inside a form, e.g. "Shipping Address" on the sample form. */
.alf-group-title {
	margin: 26px 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: var(--alf-navy);
	letter-spacing: 0.01em;
}

/* Invisible cell used to hold a half-width field in the left column. */
.alf-field-spacer {
	visibility: hidden;
}
@media (max-width: 600px) {
	.alf-field-spacer {
		display: none;
	}
}
.alf-radio {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	color: #6b7280;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
}
.alf-radio span {
	padding-top: 1px;
}
.alf-radio input {
	width: 14px;
	height: 14px;
	accent-color: var(--alf-navy);
}

.alf-submit-btn {
	display: inline-block;
	margin-top: 12px;
	background: var(--alf-orange);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	border: none;
	border-radius: 999px;
	padding: 14px 32px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.alf-submit-btn:hover {
	opacity: 0.9;
}
.alf-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Empty by default - no stray padding/border before there's a message. */
.alf-message {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}
.alf-message.alf-success,
.alf-message.alf-error {
	margin-top: 22px;
	padding: 14px 18px;
	border-radius: 8px;
	border-left: 4px solid currentColor;
}
.alf-message.alf-success {
	color: #1a7f37;
	background: #eaf6ec;
}
.alf-message.alf-error {
	color: #b32d2e;
	background: #fbeaea;
}

/* NOTE: the form deliberately stays visible after a successful submit - the
   confirmation appears below it instead of replacing it. The .alf-submitted
   class is still applied, so it's available as a styling hook if you ever
   want to hide or grey out the form again. */

/* =========================================================================
   Multi-step wizard (Request a Quote)
   ========================================================================= */

.alf-quote-wrap {
	max-width: 980px;
}

.alf-step-label {
	font-size: 14px;
	font-weight: 700;
	color: #4b5563;
	margin: 0 0 10px;
}

.alf-progress {
	height: 10px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 34px;
}
.alf-progress-bar {
	height: 100%;
	background: var(--alf-orange);
	border-radius: 999px;
	transition: width 0.25s ease;
}

/* Only the active step is visible. */
.alf-step {
	display: none;
}
.alf-step.alf-step-active {
	display: block;
}

.alf-row-3col .alf-field {
	flex: 1 1 200px;
}

/* --- Helper + inline error text ------------------------------------------ */

.alf-help {
	font-size: 13px;
	color: #6b7280;
	font-weight: 400;
	line-height: 1.4;
}

.alf-error-text {
	display: none;
	font-size: 13px;
	color: #c0392b;
	font-weight: 500;
	line-height: 1.4;
}
.alf-field.alf-has-error .alf-error-text,
.alf-checkbox-block.alf-has-error .alf-error-text {
	display: block;
}
.alf-field.alf-has-error input[type="text"],
.alf-field.alf-has-error input[type="email"],
.alf-field.alf-has-error input[type="tel"],
.alf-field.alf-has-error select,
.alf-field.alf-has-error textarea {
	border-color: #c0392b;
}

/* --- Checkbox grid (Step 2 products) ------------------------------------- */

.alf-checkbox-block {
	border: none;
	margin: 0 0 28px;
	padding: 0;
	min-width: 0;
}
.alf-checkbox-block legend {
	font-size: 15px;
	color: #6b7280;
	font-weight: 600;
	padding: 0;
	margin-bottom: 16px;
}

.alf-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px 20px;
}
@media (max-width: 900px) {
	.alf-checkbox-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 520px) {
	.alf-checkbox-grid {
		grid-template-columns: 1fr;
	}
}

.alf-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: #6b7280;
	font-weight: 500;
	cursor: pointer;
}
.alf-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: #2563eb;
	cursor: pointer;
	margin: 0;
}

.alf-optin {
	align-items: flex-start;
	margin: 4px 0 20px;
}
.alf-optin input[type="checkbox"] {
	margin-top: 3px;
}

/* --- Textarea ------------------------------------------------------------ */

.alf-field textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	color: #1c1c1c;
	border: 1.5px solid var(--alf-border);
	border-radius: 6px;
	background: #fff;
	resize: vertical;
	min-height: 180px;
	transition: border-color 0.15s ease;
}
.alf-field textarea:focus {
	outline: none;
	border-color: var(--alf-navy);
}

/* --- File input ---------------------------------------------------------- */

.alf-field input[type="file"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1.5px solid var(--alf-border);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}
.alf-field input[type="file"]::file-selector-button {
	margin-right: 14px;
	padding: 8px 16px;
	border: 1px solid var(--alf-border);
	border-radius: 3px;
	background: #f3f4f6;
	color: #1c1c1c;
	font-size: 14px;
	cursor: pointer;
}
.alf-field input[type="file"]::file-selector-button:hover {
	background: #e5e7eb;
}

.alf-filelist {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #4b5563;
}
.alf-filelist li {
	padding: 3px 0;
}
.alf-filelist li.alf-file-bad {
	color: #c0392b;
}

/* --- Step navigation buttons --------------------------------------------- */

.alf-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 34px;
}

.alf-btn {
	background: var(--alf-orange);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	border: none;
	border-radius: 999px;
	padding: 14px 42px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.alf-btn:hover {
	opacity: 0.9;
}
.alf-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 600px) {
	.alf-nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.alf-btn {
		width: 100%;
	}
}
