/* Two Column Form (flex layout two_column_form, snippets/flex-content/two_column_form.php).
   Heading + a Gravity Form card on the left; photos, checklist and a
   testimonial on the right. Stacks below 992px. */

.two-col-form {
    --tcf-ink: #0b1f33;
    --tcf-navy: #054063;
    --tcf-blue: #00a0e0;
    --tcf-blue-dark: #0083b8;
    --tcf-line: #b9c5d0;
    --tcf-muted: #566573;
    padding: 56px 0 72px;
    background: var(--tcf-bg, #f2f6fa);
}

.two-col-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 40px 72px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.two-col-form--single .two-col-form__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
}

/* ---------- left: heading + card ---------- */

.two-col-form__heading {
    margin: 0 0 12px;
    font-family: "Roboto", sans-serif;
    font-size: clamp(30px, 3.3vw, 42px);
    font-weight: 900;
    line-height: 1.08;
    color: var(--tcf-ink);
}

.two-col-form__heading-accent {
    display: block;
    color: var(--tcf-blue);
}

.two-col-form__lead {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.45;
    color: #1d2a36;
}

/* Later steps drop straight into the card, as in the ROI mockup's step 2 */
.two-col-form.is-past-first-step .two-col-form__intro {
    display: none;
}

.two-col-form__card {
    padding: 22px 24px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(5, 64, 99, 0.1), 0 1px 3px rgba(5, 64, 99, 0.08);
}

.two-col-form__step-label {
    margin: 0 0 12px;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--tcf-ink);
}

.two-col-form__note {
    margin-top: 16px;
    font-family: "Roboto", sans-serif;
    text-align: center;
}

.two-col-form__note > :last-child {
    margin-bottom: 0;
}

.two-col-form__note--callout {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    color: #1d2a36;
    background: #e9eff5;
    border: 1px solid #d2dce5;
    border-radius: 6px;
}

.two-col-form__note--fine-print {
    margin-top: 10px;
    font-size: 14px;
    color: var(--tcf-muted);
}

/* ---------- Gravity Forms inside the card ----------
   The theme styles GF globally in general/forms.css (with many !important
   rules), and roi-estimator.css adds #gform_wrapper_31 rules. To restyle the
   form inside this card without touching those files (other pages use them),
   every rule below starts with
   .two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight).
   The id never matches anything; it only lifts the selector to id
   specificity, and the extra class puts it above #gform_wrapper_31 rules
   that would otherwise tie (roi-estimator.css prints after this file). !important appears only
   where the theme's own rule is !important. Works for legacy (ul/li) and
   current (div) GF markup. */

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) {
    margin: 0;
    padding: 0;
    max-width: none;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_heading,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_required_legend,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield_required,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gf_progressbar_wrapper,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_validation_container,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield--type-hidden,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield_visibility_hidden {
    display: none;
}

/* GF's legacy layout helpers: the spacer rows it adds after conditional
   fields (shown and hidden from JS, hence !important over the inline style)
   would break the flex rows, and the range hint under number inputs
   ("Please enter a number greater than or equal to 1") repeats what the
   error message says. */
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield.spacer,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .ginput_container .instruction {
    display: none !important;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 14px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    counter-reset: tcf-field;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield {
    float: none;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 576px) {
    .two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield--width-half {
        width: calc(50% - 7px) !important;
    }
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield_label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tcf-ink);
}

/* "1. State", "2. Number of Vehicles"... when the block's numbering option is on.
   Fields GF hides with conditional logic are display:none, so they don't count.
   Give a field the CSS class tcf-no-number (GF field > Appearance) to leave it
   out, e.g. the ROI form's City select, which sits beside "1. State". */
.two-col-form--numbered .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield:not(.gfield--type-html):not(.gfield--type-section):not(.gfield--type-page):not(.gfield--type-consent):not(.gfield--type-hidden):not(.tcf-no-number) {
    counter-increment: tcf-field;
}

.two-col-form--numbered .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield:not(.gfield--type-html):not(.gfield--type-section):not(.gfield--type-page):not(.gfield--type-consent):not(.gfield--type-hidden):not(.tcf-no-number) > .gfield_label::before {
    content: counter(tcf-field) ". ";
    font-weight: 400;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .ginput_container {
    margin: 0;
    padding: 0;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):not([type="hidden"]),
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) select,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) textarea {
    display: block;
    width: 100% !important;
    height: 48px;
    margin: 0;
    padding: 0 14px !important;
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    color: var(--tcf-ink);
    background-color: #fff;
    border: 1px solid var(--tcf-line) !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

/* number inputs: no spinner arrows */
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) input[type="number"]::-webkit-inner-spin-button,
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) textarea {
    height: auto;
    min-height: 120px;
    padding: 10px 14px !important;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) select {
    padding-right: 40px !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b1f33' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    text-overflow: ellipsis;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(input, select, textarea):focus {
    outline: none;
    border-color: var(--tcf-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 160, 224, 0.22) !important;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) ::placeholder {
    color: #7b8794;
    opacity: 1;
}

/* multi-input fields (Name, Address): inputs side by side, wrapping on phones.
   Sub-labels GF is told to hide keep the theme's screen-reader-only style. */
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .ginput_complex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .ginput_complex > span {
    flex: 1 1 120px;
    float: none;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .ginput_complex > .ginput_full {
    flex-basis: 100%;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .ginput_complex label:not(.hidden_sub_label):not(.screen-reader-text) {
    display: block;
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--tcf-muted);
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield_description {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--tcf-muted);
}

/* consent checkbox: keep the theme's small box, just tidy the text. The theme
   hides the field's own label (the checkbox text says it all); keep it hidden. */
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield--type-consent {
    width: 100% !important;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield--type-consent .gfield_label_before_complex {
    display: none;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield--type-consent .gfield_consent_label {
    font-size: 14px;
    line-height: 1.4;
    color: var(--tcf-muted);
}

/* validation */
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.validation_error, .gform_validation_errors) {
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 15px;
    color: #9b1c1c;
    background: #fdecec;
    border: 1px solid #f3b9b9;
    border-radius: 5px;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_submission_error {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.validation_error, .gform_validation_errors) ol {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 14px;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.validation_error, .gform_validation_errors) a {
    color: inherit;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.validation_message, .gfield_validation_message) {
    margin: 6px 0 0;
    padding: 0;
    font-size: 14px;
    color: #b42318;
    background: none;
    border: 0;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gfield_error :is(input, select, textarea) {
    border-color: #d92d20 !important;
}

/* buttons: primary full width; "Previous" becomes a quiet text link below it */
.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.gform_footer, .gform_page_footer) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.gform_button, .gform_next_button) {
    order: 1;
    width: 100% !important;
    min-width: 0 !important;
    height: auto;
    min-height: 54px;
    margin: 0 !important;
    padding: 12px 18px;
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    background: var(--tcf-blue);
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.gform_button, .gform_next_button):is(:hover, :focus-visible) {
    background: var(--tcf-blue-dark);
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_previous_button {
    order: 2;
    align-self: center;
    width: auto !important;
    min-width: 0 !important;
    height: auto;
    margin: 0 !important;
    padding: 4px 8px;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    color: var(--tcf-muted);
    background: none;
    border: 0;
    box-shadow: none;
    text-decoration: underline;
    cursor: pointer;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_ajax_spinner {
    order: 3;
    align-self: center;
    width: 20px;
    height: 20px;
}

/* ---------- waiting on the server, and the next step arriving ----------
   Classes set by two-column-form.js. GF 3's own loader is a span it appends
   inside the button, which an <input> button can't show, so the pressed
   button carries a spinning SVG as its background instead (inputs can't
   have pseudo-elements either). -webkit-text-fill-color: Safari paints
   input text with it, and GF sets it inline on the button while it loads. */

.two-col-form__card .gform_fields {
    transition: opacity 0.2s ease;
}

.two-col-form__card.is-loading .gform_fields {
    opacity: 0.45;
    pointer-events: none;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .tcf-btn-loading:is(.gform_button, .gform_next_button) {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23fff' stroke-opacity='.3' stroke-width='3'/%3E%3Cpath d='M12 2.5a9.5 9.5 0 0 1 9.5 9.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.75s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
    cursor: progress;
}

.two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_previous_button.tcf-btn-loading {
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23566573' stroke-opacity='.25' stroke-width='3'/%3E%3Cpath d='M12 2.5a9.5 9.5 0 0 1 9.5 9.5' fill='none' stroke='%23566573' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.75s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    cursor: progress;
}

/* The new step's label, fields and button rise in one after another. The JS
   numbers them in --tcf-enter-i and skips this for reduced-motion visitors. */
@keyframes tcf-step-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.two-col-form__card.is-entering .tcf-enter {
    animation: tcf-step-in 0.32s cubic-bezier(0.2, 0.7, 0.3, 1) both;
    animation-delay: calc(var(--tcf-enter-i, 0) * 45ms);
}

/* ---------- right: photos, checklist, testimonial ---------- */

.two-col-form__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.two-col-form__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}

.two-col-form__photo--main {
    grid-column: 1 / -1;
    border-radius: 10px;
}

/* Main video: shown whole at its own shape (inline aspect-ratio from the
   file's metadata), on white so a white-background video reads as a card. */
.two-col-form__video {
    aspect-ratio: 1920 / 758;
    object-fit: contain;
    background: #fff;
}

/* an odd thumbnail out at the end takes the full row */
.two-col-form__photo:last-child:nth-child(even) {
    grid-column: 1 / -1;
}

.two-col-form__checklist {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.two-col-form__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 12px;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #1d2a36;
}

.two-col-form__checklist strong {
    font-weight: 700;
    color: var(--tcf-ink);
}

.two-col-form__check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.two-col-form__check circle {
    fill: var(--tcf-blue);
}

.two-col-form__check path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.two-col-form__testimonial {
    position: relative;
    margin: 22px 0 0;
    padding: 16px 22px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(5, 64, 99, 0.1), 0 1px 3px rgba(5, 64, 99, 0.08);
}

/* speech-bubble tail */
.two-col-form__testimonial::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 64px;
    width: 18px;
    height: 18px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 3px 3px 5px rgba(5, 64, 99, 0.06);
}

.two-col-form__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.two-col-form__stars svg {
    width: 22px;
    height: 22px;
    fill: #f5b301;
}

.two-col-form__testimonial blockquote,
.two-col-form__testimonial figcaption {
    display: inline;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    line-height: 1.45;
    color: var(--tcf-ink);
}

.two-col-form__testimonial figcaption {
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- small screens ---------- */

@media (max-width: 991px) {
    .two-col-form {
        padding: 36px 0 52px;
    }

    .two-col-form__grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
    }
}

@media (max-width: 575px) {
    .two-col-form__card {
        padding: 18px 16px 20px;
    }

    .two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) :is(.gform_button, .gform_next_button) {
        font-size: 18px;
    }

    .two-col-form__checklist li,
    .two-col-form__testimonial blockquote,
    .two-col-form__testimonial figcaption {
        font-size: 16px;
    }

    .two-col-form__testimonial figcaption {
        white-space: normal;
    }
}
