:root {
  --wpforms-accent: #3EB1C8;
  --wpforms-border: 2px solid var(--wpforms-accent);
  --form-text: white;
  --form-text-hover: white;
  --button-bg: var(--e-global-color-accent);
  --button-bg-hover: #003057;
  --icon-filter: none;
  --icon-filter-hover: brightness(0) invert(1);
  --required-color: #FF0000;
  --error-bg: #D63637;
  --error-text: #fff;
  --page-indicator-active-bg: #b4e5ed;
  --back-btn-color: white;
}


/* General form layout & spacing */
form {
  width: 100%;
  color: var(--form-text)!important;

}
.hero-form form .wpforms-page {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
gap: 1em;
width: 100%;
text-align:center;
}

.hero-form form .wpforms-field-hidden {
display: none!important;
}
.hero-form form .wpforms-page .wpforms-field-pagebreak button,
.hero-form form .wpforms-submit-container button[type="submit"] {
transition: all 0.1s ease-in;
color: white;
background-color: var(--e-global-color-accent);
border-radius: 6px!important;

}

.hero-form form .wpforms-submit-container button[type="submit"] {
width: 100%!important;
margin-top: 1.5em;
}

.hero-form form .wpforms-page .wpforms-field-pagebreak button {
width: fit-content!important;
}

.hero-form form .wpforms-page .wpforms-field-pagebreak:empty {
  display: none!important;
}

.hero-form form .wpforms-page .wpforms-field-pagebreak button:hover,
.hero-form form .wpforms-submit-container button[type="submit"]:hover {
  background-color: white!important;
color: var(--e-global-color-accent)!important;
}

/* Zip code specific overrides */
.hero-form form .zip-code-field label {
margin-bottom: 0 !important;
font-size: 1.25rem!important;
color: var(--form-text)!important;
}

.hero-form form .zip-code-field input {
order: 4;
}

.hero-form form .zip-code-field .wpforms-field-limit-text {
display: none !important;
}

.hero-form form .zip-code-field .wpforms-field-description {
margin-bottom: 1rem;
}

.hero-form form .wpforms-confirmation-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 420px;
text-align: center;
padding: 2rem;
background: #f7f7f7;
border-radius: 8px;
font-size: 1.1rem;
line-height: 1.6;
}

.hero-form form .wpforms-field-radio legend.wpforms-field-label,
.hero-form form .wpforms-field.first-name-field label, .hero-form form .wpforms-field.product-type-field label {
  font-size: 1.25rem!important;
  margin-bottom: 1rem!important;
  margin-top: 15px;
color: white!important;
}

.hero-form form .wpforms-field.product-type-field ul.wpforms-image-choices {
display: grid!important;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}

.hero-form form .wpforms-field.product-type-field ul.wpforms-image-choices li label {
margin: 0px!important;
}

.hero-form form .wpforms-page .wpforms-field {
width: 100% !important;
display: flex;
flex-direction: column;
padding: 0px!important;

}


.hero-form .wpforms-field-pagebreak .wpforms-clear.wpforms-pagebreak-left {
  flex-direction: row;
  display: flex;
  justify-content: space-around;
  gap: 1em;
}

.hero-form .wpforms-field-pagebreak .wpforms-clear:before, .hero-form .wpforms-field-pagebreak .wpforms-clear:after {
  display: none!important;;
}

.hero-form form .wpforms-field.wpforms-field-pagebreak {
max-width: 100%!important;

}

.hero-form form .wpforms-field.wpforms-field-pagebreak button {
  width: fit-content;
margin-top: 1em;
  
}

/* Field Labels */

.hero-form form .product-icon-field legend.wpforms-field-label,
.hero-form form .wpforms-field-text .wpforms-field-label,
.hero-form form .image-choice .wpforms-field-label {
margin-bottom: 6px !important;
color: var(--form-text)!important;
}

span.wpforms-required-label {
color: #FF0000 !important;
}

/* Privacy Policy Field */

.hero-form form .privacy-policy-field ul,
.hero-form form .privacy-policy-field ul label {
font-size: 0.85rem !important;
line-height: 1.2em;
padding: 0 !important;
text-align: left !important;
color: var(--form-text);
}

.hero-form form .privacy-policy-field ul label a {
color: #efefef;
text-decoration: underline;
}

/* Privacy checkbox alignment */
.hero-form form .privacy-policy-field ul li {
display: flex !important; /* Not explicitly defined in new CSS */
}

/* Image Choice Fields */

.hero-form form .image-choice ul.wpforms-image-choices {
display: flex;
gap: 12px;
justify-content: center;
padding: 0;
margin: 0;
list-style: none;
}

.hero-form form .image-choice ul.wpforms-image-choices li {
flex: 1 1 0;
margin: 0!important;
}

.hero-form form .image-choice ul.wpforms-image-choices li label {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center !important;
gap: 6px;
border: var(--wpforms-border) !important;
border-radius: 12px;
padding: 14px 12px;
font-size: 16px!important;
cursor: pointer;
font-weight: 600;
color: var(--form-text)
background-color: transparent;
transition: all 0.3s ease;
text-align: center;
align-self: stretch;
}

.hero-form form .image-choice ul.wpforms-image-choices li label .wpforms-image-choices-label {
margin-top: 0;
}

.hero-form form .image-choice ul.wpforms-image-choices li label img {
width: 24px;
height: 24px;
border-radius: 0;
object-fit: contain!important;
}

.hero-form form .wpforms-image-choices-modern .wpforms-image-choices-image:after {
display: none;
}

.hero-form form .image-choice ul.wpforms-image-choices li input:checked ~ label,
.hero-form form .image-choice ul.wpforms-image-choices li input:checked + label,
.hero-form form .image-choice ul.wpforms-image-choices li label:hover,
.hero-form form .image-choice ul.wpforms-image-choices li.wpforms-selected label {
background-color: var(--wpforms-accent, var(--e-global-color-accent, #3eb1c8));
color: var(--form-text-hover)!important;
border-color: var(--wpforms-accent) !important;
}
.hero-form form .image-choice ul.wpforms-image-choices li label .wpforms-image-choices-image img {
  filter: var(--icon-filter)!important;
}
.hero-form form .image-choice ul.wpforms-image-choices li label:hover .wpforms-image-choices-image img,
.hero-form form .image-choice ul.wpforms-image-choices input:checked + .wpforms-image-choices-label img,
.hero-form form .image-choice ul.wpforms-image-choices li.wpforms-selected label img {
filter: var(--icon-filter-hover)!important;
}

@media (max-width: 767px) {
.hero-form form .image-choice ul.wpforms-image-choices {
  flex-direction: column;
  gap: 12px;
  align-items: stretch !important;
}

.hero-form form .image-choice ul.wpforms-image-choices li label {
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  border-width: 1px !important;
  width: 100%;
margin: 0!important;
}

.hero-form form .wpforms-page-indicator.connector .wpforms-page-indicator-page {
  padding: 0 !important;
}

.hero-form form .progress-with-back {
  align-items: center;
}
}

/* Focus & Error States */

.hero-form form input[type="text"],
.hero-form form input[type="email"],
.hero-form form input[type="tel"] {
border-radius: 6px;
box-shadow: none;
}

.hero-form form .wpforms-field input[type="text"]:focus,
.hero-form form .wpforms-field input[type="email"]:focus,
.hero-form form .wpforms-field input[type="tel"]:focus {
border: var(--wpforms-border) !important;
outline: none;
}

.hero-form form .wpforms-field.wpforms-has-error input,
.hero-form form .wpforms-field.wpforms-has-error select,
.hero-form form .wpforms-field.wpforms-has-error textarea {
border: 2px solid #D63637 !important;
}

em.wpforms-error {
background: #D63637;
padding: 6px 12px;
margin-top: 1em;
order: 4;
color: white !important;
align-self: center !important;
position: relative;
text-align: center;
width: fit-content;
}

.wpforms-error::before {
content: "";
position: absolute;
top: -8px;
left: 50%;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #D63637;
transform: translateX(-50%);
}

@media (max-width: 767px) {
.hero-form form input[type="text"]:focus,
.hero-form form input[type="email"]:focus,
.hero-form form input[type="tel"]:focus {
  border-width: 1px !important;
}

.hero-form form .wpforms-field.wpforms-has-error input,
.hero-form form .wpforms-field.wpforms-has-error select,
.hero-form form .wpforms-field.wpforms-has-error textarea {
  border-width: 1px !important;
}
}

/* Progress Bar */

.hero-form form .wpforms-page-indicator.connector {
display: flex;
gap: 12px;
margin-bottom: 0;
justify-content: space-between;
padding: 0;
background: transparent;
width: 100%;
align-items: center;
align-self:center;
}

.hero-form form .wpforms-page-indicator.connector .wpforms-page-indicator-page {
flex: 1;
height: 8px;
background-color: var(--wpforms-accent, var(--e-global-color-accent, #3eb1c8));
border-radius: 999px;
position: relative;
}

.hero-form form .wpforms-page-indicator.connector .wpforms-page-indicator-page.active ~ .wpforms-page-indicator-page {
background-color: var(--page-indicator-active-bg, var(--e-global-color-primary, #005EB8)) !important;

align-self: center;
}

.hero-form form .wpforms-page-indicator-page-number,
.hero-form form .wpforms-page-indicator-page-triangle {
display: none !important;
}

.hero-form form .progress-with-back {
display: flex;
justify-content: space-between;
gap: 12px !important;
margin-bottom: 1.5rem !important;
align-items: center;
}

.hero-form form .custom-back-btn {
background: none;
border: none;
color: var(--back-btn-color);
font-weight: 600;
text-transform: capitalize!important;
font-size: 14px;
letter-spacing: 0;
cursor: pointer;
padding: 0;
flex-grow: 1;
flex-shrink: 0;
display: inline-block;
text-align: left;
}

.hero-form form .custom-back-btn::before {
content: '\e636';
font-family: "Font Awesome 6 Pro";
font-weight: 500;
margin-right: 6px;
}

.hero-form form .wpforms-page.last .wpforms-page-prev {
  background: transparent;
  margin-bottom: 1em;
}

.hero-form form .wpforms-page.last .wpforms-page-prev::before {
content: "\f053";                      /* Font Awesome chevron‑left */
font-family: "Font Awesome 6 Pro";     /* match your FA version */
font-weight: 500;                      /* adjust if you need solid/light */
margin-right: 0.5em;
speak: none;
font-style: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
}

.hero-form form .progress-with-back:has(.wpforms-page-indicator-page-1.active) .custom-back-btn {
display: none !important;
}



/* Renter message conditional next button */
.hero-form form .wpforms-page:has(.renter-message.wpforms-conditional-show) .wpforms-page-next {
display: none !important;
}

/* Horizontal alignment for non-image choices */
.hero-form .wpforms-field-radio ul,
.hero-form .wpforms-field-checkbox ul {
display: flex !important;
gap: 1em;
list-style: none;
justify-content: space-evenly;
}

/* Radio/checkbox label colors */
.hero-form .wpforms-field-checkbox label,
.hero-form .wpforms-field-radio label {
color: var(--form-text) !important;
}

/* Universal input/select constraints */
.hero-form .wpforms-field input:not([type=radio]):not([type=checkbox]),
.hero-form .wpforms-field select {
max-width: 100% !important; /* Missing in new CSS */
border-color: #DCDCDC !important; /* New CSS uses var(--wpforms-border) */
padding: 10px 14px;
height: unset;
}


/*Custom Dropdown*/
.hero-form .wpforms-field-select {
overflow: hidden!important;
}
.hero-form .wpforms-field-select:after {
  font-family: 'Font Awesome 6 Pro';
  content: "\f078";
  position: absolute;
  bottom: 15px;
  right: 0;
  pointer-events: none;
  color: #005EB8;
  width: auto;
  height: calc(100% - 30px);
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  padding: 1em;
  font-size: 14px;
}
@media(max-width: 767px){
.hero-form .wpforms-field-select:after {
bottom: 8px;
height: calc(100% - 16px)
}}


/* Input field radius reduction */
@media (max-width: 767px) {
.hero-form .wpforms-field input {
  border-radius: 4px !important; /* New CSS only has 6px/4px for image choices */
}
}

/* Column gap removal */
@media (max-width: 767px) {
.hero-form .wpforms-field-layout .wpforms-layout-row {
  gap: 0 !important; /* New CSS doesn't reset gaps for non-image fields */
}
}

/* Step indicator hiding */
.hero-form .wpforms-page-indicator.none {
display: none !important; /* New CSS uses progress bars instead */
}

.hero-form .wpforms-confirmation-container {
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1.25em;
  line-height: 1.4;
}