/**
 * Updated Form Style CSS
 * Applies modern floating-label styling to forms with .updatedFormStyle class
 *
 * @package CE5
 */

.updatedFormStyle {
    max-width: 800px;
    margin: auto;
}

.updatedFormStyle.singlepageform {
    max-width: 1000px;
}

.updatedFormStyle div,
.updatedFormStyle span,
.updatedFormStyle p,
.updatedFormStyle a,
.updatedFormStyle img,
.updatedFormStyle b,
.updatedFormStyle u,
.updatedFormStyle i,
.updatedFormStyle ol,
.updatedFormStyle ul,
.updatedFormStyle li,
.updatedFormStyle form,
.updatedFormStyle label
{
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	font-family: Arial, sans-serif;
}
.updatedFormStyle .cx-full-force-break {display:none;}
.updatedFormStyle .cx-small-force-break {display:inline;}
.updatedFormStyle ol,
.updatedFormStyle ul,
.updatedFormStyle li
{
	list-style: none;
}

.updatedFormStyle label {
    color: #4A4A4A;
}

.updatedFormStyle .formfield {
    width: 45%;
    margin-right: 2.5%;
    float: left;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid #00000033;
    border-radius: 5px;
    padding: 1%;
    box-shadow: 0px 3.71px 3.71px 0px #327FEF3D;
}

.updatedFormStyle .formfield:not(.customField).focused {
    border-color: #327FEF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 255, 0.5);
}

.updatedFormStyle .privacy_section .formfield.focused {
    border: none;
    outline: none;
    box-shadow: none;
}

.updatedFormStyle .formfield:not(.customField).filled {
    background-color: #E5EEFE;
}

.updatedFormStyle .privacy_section .formfield.filled {
    background-color: initial;
}

.updatedFormStyle .fullWidth .formfield {
    width: 92%;
    padding-right: 2%;
}

.updatedFormStyle .formfield:has(textarea) {
    width: 95%;
    border: none;
    box-shadow: none;
    padding: 0;
}

.updatedFormStyle .formfield textarea {
    width: 99%;
    border: 1px solid #00000033;
    border-radius: 5px;
    padding: 5px;
    font-family: Arial, sans-serif;
    font-size: 1em;
    resize: vertical;
}

.updatedFormStyle .formfield:not(.customField) label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.updatedFormStyle .formfield:not(.customField).filled label,
.updatedFormStyle .formfield:not(.customField).focused label,
.updatedFormStyle .formfield:not(.customField).labeltop label {
    top: 0px;
    left: 5px;
    transform: none;
    font-size: 0.8rem;
}

.updatedFormStyle .privacy_section .formfield.filled label,
.updatedFormStyle .privacy_section .formfield.focused label,
.updatedFormStyle .privacy_section .formfield.labeltop label {
    top: unset;
    left: unset;
    transform: none;
    font-size: 1.5em;
}

.updatedFormStyle .errormsg {
    position: absolute;
    left: 0;
    bottom: -20px;
    font-size: 12px;
    color: red;
    white-space: nowrap;
}

/* disabled-weekday hint under custom/appointment date fields (e.g. "Sundays unavailable") */
.updatedFormStyle .dateFieldHint {
    position: absolute;
    right: 0;
    bottom: -20px;
    font-size: 12px;
    color: inherit;
    opacity: 0.7;
    white-space: nowrap;
}

/* the hint and the error share the line under the input - while an error is showing it
   already names the unavailable day, so drop the hint rather than overlap the two */
.updatedFormStyle .formfield:has(.errormsg) .dateFieldHint {
    display: none;
}

/* date-field validation messages show IN the hint slot (short text, or the hint's own
   wording turned red for a disabled-day pick). Widened to the full field so a long line
   can wrap over the row gap without changing the li's height (.formfield is floated - a
   taller li makes every following float wrap into the wrong slot). */
/* error state: left-aligned like every other field's .errormsg (the normal gray
   hint stays right-aligned) */
.updatedFormStyle .dateFieldHint.dateFieldHintError {
    color: red;
    opacity: 1;
    left: 0;
    right: 0;
    white-space: normal;
    text-align: left;
    /* the full-width span paints over the store-hours icon sharing this row -
       let clicks pass through the text to it */
    pointer-events: none;
}

/* store-hours popover on the appointment date field (anchored to the icon via
   span.storeHours) - the icon sits below the input at the far right, after the
   hint/error text, and still anchors the popover */
.updatedFormStyle .storeHours {
    position: absolute;
    right: 0;
    bottom: -20px;
    line-height: 1;
}

/* keep the hint/error text clear of the icon sharing the row's right corner */
.updatedFormStyle li:has(.storeHours) .dateFieldHint {
    right: 20px;
}
.updatedFormStyle .storeHoursToggle {
    border: none;
    background: none;
    padding: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.updatedFormStyle .storeHoursPopover {
    position: absolute;
    top: 100%;
    /* the icon anchors the row's right corner, so the popover grows leftward */
    left: auto;
    right: 0;
    z-index: 1200; /* above the timepicker dropdown (1100) */
    width: max-content;
    max-width: min(280px, 80vw);
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
/* flipped above the icon when it would run off the bottom of the viewport */
.updatedFormStyle .storeHoursPopover.above {
    top: auto;
    bottom: 100%;
}

.updatedFormStyle input[type=checkbox] {
    accent-color: green;
}

.updatedFormStyle .privacy_section input[type=checkbox] {
    float: left;
}

/* The float above is for the standalone consent checkbox, which the long consent text
   wraps around. Inside .actionformcheckbox the box is paired with its own short label and
   CXForm.css centres the two with flex, so the float has to come back off here - this rule
   follows the one above in the same file, which is what lets it win. */
.updatedFormStyle .privacy_section .actionformcheckbox input[type=checkbox] {
    float: none;
    margin: 0;
}

.updatedFormStyle .field_isRequired {
    box-shadow: none !important;
    border: none !important;
}

.updatedFormStyle .formfield:has(.field_isRequired) {
    border: 1px solid rgb(255, 0, 0) !important;
    -moz-box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    -webkit-box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    background-color: #fbeeee;
}

.updatedFormStyle .mobileOpt.field_isRequired input[type=checkbox] {
    border: 1px solid rgb(255, 0, 0) !important;
    -moz-box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    -webkit-box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    background-color: #fbeeee;
}

.updatedFormStyle .privacy_section .field_isRequired {
    border: 1px solid rgb(255, 0, 0) !important;
    -moz-box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    -webkit-box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
    box-shadow: rgb(255, 0, 0) 0px 0px 1.5px 1px !important;
}

.updatedFormStyle .privacy_section .formfield:has(.field_isRequired) {
    box-shadow: none !important;
    border: none !important;
}

.updatedFormStyle .formsection {
    position: relative;
}

.updatedFormStyle .iconField img {
    width: 20px;
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    pointer-events: none;
}

.updatedFormStyle .formfield:has(.mobileOpt):not(.filled):not(.focused):not(.labeltop) label,
.updatedFormStyle .iconField:has(.mobileOpt) > img {
    top: 20px;
    transform: none;
}

.updatedFormStyle .iconField input[type=text],
.updatedFormStyle .iconField input[type=tel],
.updatedFormStyle .iconField input[type=number],
.updatedFormStyle .iconField input[type=email],
.updatedFormStyle .iconField input[type=date],
.updatedFormStyle .iconField select
{
    margin-left: 25px;
    width: calc(99% - 25px);
}

.updatedFormStyle .formfield:not(.customField):not(.filled):not(.focused):not(.labeltop).iconField label {
    left: 35px
}

.updatedFormStyle .fa
{
	display: inline-block;
	font: normal normal normal 14px/1  "Font Awesome 5 Free";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: inherit;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.updatedFormStyle button {cursor: pointer;}

.updatedFormStyle li.formfield .button
{
}

.updatedFormStyle .sectionHeader {
    display: flex;
    flex-direction: row;
}

/**
 * Space below the language toggle. translate.php builds it with an inline
 * "margin: 10px auto 0 auto", so its own bottom margin is zero and the first section header
 * sits right up against it. The gap goes on the following section rather than on the button,
 * so it doesn't have to fight that inline style with !important.
 * @version 2026.07.28 dcs - https://trello.com/c/ZifZ31lY/
 */
.updatedFormStyle div:has(> a.translatelink) + .formsection {
    margin-top: 1rem;
}

.updatedFormStyle .sectionHeader h2 {
    color: #1A67DB;
    width: 100%;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.updatedFormStyle .field
{
	margin-bottom: 1em;
}

.updatedFormStyle label
{
	font-size: 1.5em;
	line-height: 1;
}

.updatedFormStyle input[type=text],
.updatedFormStyle input[type=tel],
.updatedFormStyle input[type=email],
.updatedFormStyle input[type=date]
{
	width: 99%;
}

.updatedFormStyle input[type=text],
.updatedFormStyle input[type=tel],
.updatedFormStyle input[type=number],
.updatedFormStyle input[type=email],
.updatedFormStyle input[type=date],
.updatedFormStyle input[type=num],
.updatedFormStyle select
{
	font-size: 1.3em;
	height: 2em;
	background-color: transparent;
	border-width: 0;
        border: none;
        padding: 5px 0;
        width: 99%;
}

.updatedFormStyle .otherincome input {
    width: 49%;
    border: 1px solid lightgrey;
}

/* border-width/style have to be reset here, not just border-color. Dealer themes carry
   rules like ".actionformholder select:focus { border: 1px solid ... }" in their own
   theme_full/style.css; resetting only the colour left that 1px in place, so focusing a
   field grew it by 2px. .formfield is floated at 45% width, so two extra pixels on one
   field stopped its neighbour fitting alongside it and pushed every following field one
   slot onward, leaving a blank gap. The visible focus state is drawn by .formfield.focused
   around the whole field, so the inner control needs no border of its own.
   @version 2026.07.28 dcs - https://trello.com/c/ZifZ31lY/ */
.updatedFormStyle input[type=text]:focus,
.updatedFormStyle input[type=tel]:focus,
.updatedFormStyle input[type=number]:focus,
.updatedFormStyle input[type=email]:focus,
.updatedFormStyle input[type=date]:focus,
.updatedFormStyle select:focus {
    outline: none;
    box-shadow: none;
    border-width: 0;
    border-style: none;
    border-color: transparent;
}

/* The one exception to the rule above: .otherincome amount inputs DO carry a real 1px border
   of their own, so zeroing the width on focus shrank them by 2px -- the same jitter the rule
   above exists to remove, just narrower. Restore the box and hide it with a transparent
   colour, which is exactly how this behaved before the border-width/style reset was added.
   Ties on specificity with the rule above (0,3,1) and wins on source order.
   @version 2026.07.28 dcs - https://trello.com/c/ZifZ31lY/ */
.updatedFormStyle .otherincome input:focus {
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
}

.updatedFormStyle .buttonContainer {
    text-align: center;
    width: 100%;
    float: left;
    /* the submit sits at the very bottom of the section, so without this the button edge
       runs straight into the container edge */
    padding-bottom: 1rem;
}

.updatedFormStyle .prequalButton
{
        min-width: 6rem;
        font-weight: 600;
	background-color: #6e6d73;
	color: white;
	text-transform: uppercase;
	padding: 0.8em;
        border-width: 0;
        padding: 0.8rem 1.5rem;
        border-radius: 5px;
}

.updatedFormStyle .next_button,
.updatedFormStyle .submitButton
{
	background-color: #327FEF;
        margin-top: 1rem;
}

.updatedFormStyle .field.left_label
{
	clear: both;
}

.updatedFormStyle .select
{
	position: relative;
	display: inline-block;
	width: 100%;
}

.updatedFormStyle select.multidate.select_month
{
    width: 5rem;
}
.updatedFormStyle select.multidate.select_day
{
    width: 4rem;
}
.updatedFormStyle select.multidate.select_year
{
    width: 4.4rem;
}

.updatedFormStyle .fullWidth select.multidate.select_month,
.updatedFormStyle .fullWidth select.multidate.select_day,
.updatedFormStyle .fullWidth select.multidate.select_year
{
    width: initial;
}

.updatedFormStyle .select select
{
	display: inline-block;
	width: 100%;
	cursor: pointer;
	padding: 10px 15px;
	outline: 0;
	border: 0;
	border-radius: 0;
	background: #e6e6e6;
	color: #7b7b7b;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.updatedFormStyle .select select::-ms-expand
{
	display: none;
}

.updatedFormStyle .select select:hover
{
	color: #000;
	background: #ccc;
}

.updatedFormStyle .select select:disabled
{
	opacity: 0.5;
	pointer-events: none;
}

.updatedFormStyle .select select:hover ~ .select__arrow
{
	border-top-color: #000;
}

.updatedFormStyle .select select:disabled ~ .select__arrow
{
	border-top-color: #ccc;
}

.updatedFormStyle .money::before
{
	content: '$';
}

.updatedFormStyle .privacy_section {
    width: 100%;
    float: left;
    text-align: center;
}

.updatedFormStyle .privacy_section .formfield {
    width: 100%;
    padding: 4px;
    margin-bottom: 0;
    float: left;
    border: none;
    box-shadow: none;
    text-align: center;
}

.updatedFormStyle .privacy_section > li {
    color: #898484;
    padding: 0 !important;
    box-shadow: none;
}

.updatedFormStyle .privacy_section .creditAuthLine label {
     font-size: 12px !important;
}

.updatedFormStyle .privacy_section .formfield label {
    position: relative;
    top: initial;
    left: initial;
    transform: none;
    color: #898484;
}

.updatedFormStyle .privacy_section .actionformalabel,
.updatedFormStyle .privacy_section .actionforminput {
    width: 100%;
    float: none;
}

/* Matches the flex centring in CXForm.css. It has to be repeated here because the Updated
   form container is emitted WITHOUT the actionform class (LeadFormObj::723 swaps one for the
   other), so ".actionform .actionformcheckbox" never matches this form style. */
.updatedFormStyle .privacy_section .actionformcheckbox {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    text-align: center;
    /* separate the "I Agree" row from the Privacy Notice / T&Cs line above it. The reset at
       the top of this file zeroes margins on divs, so it has to be re-stated here. */
    margin-top: 0.5em;
}

/**
 * Individual / Joint toggle (the co-applicant question, LeadFormLib::formatCoAppQuestion).
 *
 * The reset at the top of this file zeroes padding and border on every label inside the form.
 * That out-specifies Bootstrap's .btn (and the jQuery UI theme) and loads later, so it strips
 * the button geometry these labels depend on -- the pair collapsed into a single unpadded
 * "IndividualJoint" string with no hit target. It went unnoticed because this form style was
 * derived from PreQual Plus, which gates the co-applicant question on lead types 1 and 11
 * while PQP itself is 13, so the toggle never renders there to be seen.
 *
 * Geometry only. Fill and text colour still come from the site's Bootstrap palette or jQuery UI
 * theme, and from the OEM branding sheet when one is active, so this doesn't flatten dealer
 * styling -- it just gives the labels back their button shape.
 *
 * @version 2026.07.28 dcs - https://trello.com/c/ZifZ31lY/
 */
.updatedFormStyle .formfield:has([id^="isJoint"]) {
    width: 92%;
}

.updatedFormStyle [id^="isJoint"] {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.updatedFormStyle [id^="isJoint"] label {
    flex: 0 0 auto;
    min-width: 7rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid #767676;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

/* Segmented control: the two options butt together as one unit, with the adjoining borders
   collapsed into a single divider and only the outer corners rounded. This is what Bootstrap's
   own .btn-group does; the reset at the top of this file had stripped it along with the
   padding and borders. */
.updatedFormStyle [id^="isJoint"] label + label {
    margin-left: -1px;
}

.updatedFormStyle [id^="isJoint"] label:first-of-type {
    border-radius: 5px 0 0 5px;
}

.updatedFormStyle [id^="isJoint"] label:last-of-type {
    border-radius: 0 5px 5px 0;
}

/* buttonset() moves the radio inside its label and hides it; be explicit so the label is the
   entire control and the two options can never render as bare stacked text. */
.updatedFormStyle [id^="isJoint"] input[type=radio] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.updatedFormStyle .disclaimer
{
        display: block !important;
        margin: 0;
        font-size: 12px;
}

.updatedFormStyle .mobileOpt {
    margin-bottom: 1rem;
    color: #898484;
}

.updatedFormStyle .mobileOpt input {
    float: left;
    z-index: 1;
}

.updatedFormStyle .ref_label_holder {
    display: none;
}

/* Progress bar for multipart forms */
.updatedFormStyle img.prev_button {
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin: auto;
}

.updatedFormStyle .progressHeader {
    display: flex;
    flex-direction: row;
}

.updatedFormStyle div.numIconProgress {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: 0;
}

.updatedFormStyle div.numIconProgress div.icons {
    text-align: center;
}

.updatedFormStyle div.numIconProgress div.icons hr {
    position: relative;
    top: 2.7em;
    z-index: -1;
    height: 0.1em;
    margin-left: auto;
    margin-right: auto;
    color: #0E88C9;
    background-color: #327FEF;
}

.updatedFormStyle div.numIconProgress div.icons div.section {
    display: inline-block;
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    width: 19%;
    vertical-align: top;
}

.updatedFormStyle div.numIconProgress div.icons div.section div.icon {
    line-height: 1.5;
    width: 1.5em;
    text-align: center;
    border-radius: 50%;
    background-color: white;
    color: #526171;
    margin-left: auto;
    margin-right: auto;
    font-size: 2em;
    border: 1px solid #526171;
}

.updatedFormStyle div.numIconProgress div.icons div.section div.icon svg {
    display: none;
}

.updatedFormStyle div.numIconProgress div.icons div.section.complete div.icon svg {
    display: inline-block;
}

.updatedFormStyle div.numIconProgress div.icons div.section div.icon span {
    display: inline-block;
}

.updatedFormStyle div.numIconProgress div.icons div.section.complete div.icon span {
    display: none;
}

.updatedFormStyle div.numIconProgress div.icons div.section.active.complete div.icon {
    background-color: #327FEF;
    color: white;
    box-shadow: none;
}

.updatedFormStyle div.numIconProgress div.icons div.section div.label {
    text-align: center;
    width: 100%;
    color: #4A4A4A;
    font-size: 1.3em;
    line-height: 1.3;
}

.updatedFormStyle div.numIconProgress div.icons div.section.active div.icon {
    border: 2px solid #327FEF;
    box-shadow: 0 0 5px rgba(0, 0, 255, 0.5);
}

.updatedFormStyle .sectionHeader .mobile_prev {
    display: none !important;
    width: 30px;
    height: 30px;
}

.updatedFormStyle .multipart_footer {
    width: 100%;
    float: left;
}

.prequalWrapStyle {
    padding: 1rem 0.25rem 1rem 1rem;
}

@media screen and (max-width: 768px) {
    .updatedFormStyle .progressHeader {
        display: none;
    }

    .updatedFormStyle .sectionHeader {
        margin-bottom: 1rem;
    }

    .updatedFormStyle .sectionHeader .mobile_prev {
        display: initial !important;
    }

    .updatedFormStyle .sectionHeader h2 {
        margin-bottom: 0;
        margin-left: 1rem;
    }

    .updatedFormStyle .formfield {
        width: 92%;
    }

    .singlepageform.updatedFormStyle .formfield {
        width: 96%;
    }
}

@media only screen and (min-width:768px)
{
	.updatedFormStyle .cx-full-force-break {display:inline;}
	.updatedFormStyle .cx-small-force-break {display:none;}

	.updatedFormStyle div.field.left_label label
	{
		display: inline-block;
		width: 20% !important;
		min-width: 6em !important;
	}

	.updatedFormStyle .container.year div.field.from
	{
		width: 55%;
		vertical-align: top;
	}

	.updatedFormStyle .container.year div.field.to
	{
		width: 42%;
		vertical-align: top;
	}

	.updatedFormStyle .container.year label.middle
	{
		display: none;
	}

	.updatedFormStyle .field
	{
		margin-bottom: 2em;
	}

	.updatedFormStyle .field.vin,
	.updatedFormStyle .text
	{
		margin-bottom: 0.8em;
	}

	.updatedFormStyle .text
	{
		margin-left: 5em;
	}

	.updatedFormStyle .top .dealership {
		display: block;
	}

	.updatedFormStyle .bottom .dealership {
		display: none;
	}
}
