/* Form 32, ROI Estimator Tool (Two-Step): functions/form-32-roi-two-step.php.
   Only what is particular to this form. The card, fields and buttons come
   from the Two Column Form block (flex-content/two-column-form.css), which
   is where this form is meant to sit. */

/* "$" in front of the customer value (field 38). Plain number input, so
   GF and the server see "500", never "$500". */
#gform_wrapper_32 .roi-money .ginput_container {
    position: relative;
}

#gform_wrapper_32 .roi-money .ginput_container::before {
    content: "$";
    position: absolute;
    top: 0;
    left: 14px;
    height: 48px; /* the input's height, so the sign stays centered on it */
    display: flex;
    align-items: center;
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    color: #0b1f33;
    pointer-events: none;
}

#gform_wrapper_32 #input_32_38 {
    padding-left: 28px !important;
}

/* State shares its row with the city select once conditional logic shows
   one. Browsers without :has() keep State on its own row above the city. */
@media (min-width: 576px) {
    .two-col-form .two-col-form__form :is(.gform_wrapper, #tcf-id-weight) .gform_fields:has(> .roi-city-field:not([style*="none"])) > .roi-state-field {
        width: calc(50% - 7px) !important;
    }
}

/* ---------- step 2 teaser (HTML field 85) ---------- */

#gform_wrapper_32 .roi-teaser {
    font-family: "Roboto", sans-serif;
    color: #0b1f33;
}

#gform_wrapper_32 .roi-teaser__preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 14px;
    text-align: center;
    background: #eef2f6;
    border: 1px solid #d2dce5;
    border-radius: 6px;
}

/* the mockup's locked number: blurred, with a padlock over it. The heading
   below states the same figure in plain text. */
#gform_wrapper_32 .roi-teaser__amount {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    color: rgba(11, 31, 51, 0.6);
    filter: blur(8px);
    user-select: none;
}

#gform_wrapper_32 .roi-teaser__preview::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 30px;
    left: 50%;
    width: 26px;
    height: 30px;
    transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M6.5 12V8.5a5.5 5.5 0 0 1 11 0V12' fill='none' stroke='%233b4651' stroke-width='3'/%3E%3Crect x='2' y='11.5' width='20' height='16' rx='3' fill='%233b4651'/%3E%3C/svg%3E") no-repeat center / contain;
}

#gform_wrapper_32 .roi-teaser__label {
    margin-top: 2px;
    font-size: 20px;
    line-height: 1.3;
    color: #1d2a36;
}

#gform_wrapper_32 .roi-teaser__heading {
    margin: 18px 0 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.18;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    color: #0b1f33;
}

#gform_wrapper_32 .roi-teaser--no-amount .roi-teaser__heading {
    margin-top: 0;
}

@media (max-width: 575px) {
    #gform_wrapper_32 .roi-teaser__amount {
        font-size: 42px;
    }

    #gform_wrapper_32 .roi-teaser__preview::before {
        top: 24px;
    }

    #gform_wrapper_32 .roi-teaser__heading {
        font-size: 24px;
    }
}
