/* ============================================================
   Become an Investor (/Home/InvestorQuestions) — minimalist
   two-column redesign, matching the Be Our Partner page
   (BePartnerCSS.css). Every selector is scoped under .ezi.

   The right column hosts the ActiveCampaign inline embed
   (._form_19). The embed injects its own stylesheet AFTER this
   file, ID-scoped to a hash (#_form_XXXX_) that REGENERATES
   whenever the form is edited in ActiveCampaign — so no rule
   below may reference that hash. Form overrides are scoped to
   our own wrapper id (#investorFormCard, set in the view),
   which outranks the embed's single-ID selectors on
   specificity. The embed markup itself is never touched.

   Field metrics and the submit button mirror the home page
   subscribe form (IndexCSS.css .subscribe-section), same as
   the Be Our Partner page.
   ============================================================ */

/* ---------- page background ---------- */
.ezi {
    background: #F5F6F7;
}

/* ---------- banner (no background; matches partner heading) ---------- */
.ezi .ezi-banner {
    padding: 40px 24px 30px;
    text-align: center;
}

.ezi .ezi-banner-inner {
    max-width: 760px;
    margin: 0 auto;
}

/* Heading + green line matching the site's other banner headings
   (HomeCounties / CountyProperties / SearchTypeProperty / OurTeam):
   title-case #333333 weight-800 heading, 60x3px #30caa0 rounded line
   14px below it, centered. */
.ezi .ezi-banner h1 {
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.16;
    color: #333333;
    margin: 0;
    text-transform: capitalize;
}

.ezi .ezi-rule {
    width: 60px;
    height: 3px;
    background: #30caa0;
    border: 0;
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ---------- two-column layout ---------- */
.ezi .ezi-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

/* ---------- left column: static copy ---------- */
.ezi .prose {
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.72;
    color: #25313f;
}

.ezi .prose > *:first-child {
    margin-top: 0;
}

.ezi .prose h2 {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    color: #1a3350;
    margin: 30px 0 14px;
    padding-top: 16px;
    border-top: 1px solid #e5e1d9;
    text-align: left;
}

.ezi .prose h2:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.ezi .prose p {
    margin: 0 0 18px;
    font-size: 16px;
    color: #25313f;
}

.ezi .prose ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.ezi .prose ul li {
    position: relative;
    padding-left: 26px;
    margin: 0 0 9px;
    font-size: 16px;
}

.ezi .prose ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #30caa0;
}

.ezi .prose ul.checks li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #1a9873;
    font-size: 14px;
    font-weight: 600;
}

/* numbered process — the only place numbering is used (real steps) */
.ezi .steps {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    counter-reset: step;
}

.ezi .steps li {
    counter-increment: step;
    position: relative;
    padding-left: 44px;
    margin: 0 0 22px;
}

.ezi .steps li:last-child {
    margin-bottom: 0;
}

.ezi .steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border: 1px solid #30caa0;
    border-radius: 50%;
    color: #1a9873;
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}

.ezi .steps strong {
    display: block;
    color: #1a3350;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.ezi .steps span {
    display: block;
    color: #25313f;
}

.ezi .signature {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid #e5e1d9;
    font-size: 15px;
    line-height: 1.65;
    color: #5f6f80;
}

.ezi .signature strong {
    display: block;
    font-weight: 600;
    font-size: 17px;
    color: #1a3350;
    margin-bottom: 2px;
}

/* ---------- form card (white box, matches partner card) ---------- */
.ezi .ezi-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 30px 28px 28px;
}

.ezi .ezi-form-card__title {
    font-weight: 600;
    font-size: 1.28rem;
    line-height: 1.3;
    color: #1a3350;
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

/* ---------- legacy fallback form (renders only when no embed
   code is configured) — carries over the view's old inline styles ---------- */
.ezi #originalFormContainer form {
    border: 1px solid #ccc;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

.ezi #originalFormContainer form .form-group label {
    font-weight: 700;
}

/* ---------- embed form: neutralize the embed's own card chrome
   so the .ezi-form-card wrapper provides it instead ---------- */
#investorFormCard ._form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px;
}

#investorFormCard ._form ._form-content {
    font-family: inherit;
}

/* ---------- labels (legend of the checkbox group included) ---------- */
#investorFormCard ._form ._form-label,
#investorFormCard ._form ._form_element label {
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
    color: #1a3350 !important;
    display: block;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
}

/* required asterisk: teal, not red */
#investorFormCard ._form .field-required {
    color: #1a9873 !important;
}

/* ---------- field spacing ---------- */
#investorFormCard ._form ._form_element {
    margin: 0 0 16px !important;
    width: 100% !important;
    max-width: 100%;
}

/* ---------- text inputs, tel, selects, textarea — home page field
   metrics: #cfd6dd border, 4px radius, 10px/12px padding.
   padding-left is intentionally NOT !important so the intl-tel-input
   widget can set its own dynamic left padding (flag + dial code). */
#investorFormCard ._form input[type="text"],
#investorFormCard ._form input[type="tel"],
#investorFormCard ._form input[type="email"],
#investorFormCard ._form input[type="date"],
#investorFormCard ._form select,
#investorFormCard ._form textarea:not(.g-recaptcha-response) {
    width: 100% !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    line-height: 1.5;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #cfd6dd !important;
    border-radius: 4px !important;
    padding-top: 10px !important;
    padding-right: 12px !important;
    padding-bottom: 10px !important;
    padding-left: 12px;
    height: auto !important;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#investorFormCard ._form textarea:not(.g-recaptcha-response) {
    min-height: 96px;
    resize: vertical;
}

#investorFormCard ._form input::placeholder,
#investorFormCard ._form textarea::placeholder {
    color: #9aa6b2 !important;
}

#investorFormCard ._form input[type="text"]:focus,
#investorFormCard ._form input[type="tel"]:focus,
#investorFormCard ._form input[type="email"]:focus,
#investorFormCard ._form select:focus,
#investorFormCard ._form textarea:not(.g-recaptcha-response):focus {
    outline: none !important;
    border-color: #30caa0 !important;
    box-shadow: 0 0 0 3px rgba(48, 202, 160, .16) !important;
}

/* ---------- selects: custom chevron + tidy options ---------- */
#investorFormCard ._form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%235f6f80' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    padding-right: 36px !important;
}

#investorFormCard ._form select option {
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: #fff;
    padding: 8px 12px;
}

/* ---------- counties checkbox group: two-column grid. The fieldset's
   direct children are the legend row, a hidden input, and six sibling
   ._row._checkbox-radio blocks — nothing is moved, only laid out. ---------- */
#investorFormCard ._form ._form-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

#investorFormCard ._form ._form-fieldset ._row:not(._checkbox-radio) {
    grid-column: 1 / -1;
    margin: 0 !important;
    width: 100% !important;
}

#investorFormCard ._form ._row._checkbox-radio {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    width: 100% !important;
}

#investorFormCard ._form ._row._checkbox-radio input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    accent-color: #26a884;
    margin: 0 !important;
    flex: none;
    cursor: pointer;
}

#investorFormCard ._form ._row._checkbox-radio span {
    display: block;
}

/* county option labels: regular weight, NOT the question-label style */
#investorFormCard ._form ._row._checkbox-radio label {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin: 0 !important;
    display: inline !important;
    line-height: 1.5 !important;
    cursor: pointer;
}

/* breathing room after the checkbox group */
#investorFormCard ._form ._form_element:has(._form-fieldset) {
    margin-bottom: 22px !important;
}

/* ---------- other checkboxes (e.g. SMS consent, if added) ---------- */
#investorFormCard ._form input[type="checkbox"] {
    accent-color: #26a884;
}

/* ---------- submit: home page button (auto-width teal) ---------- */
#investorFormCard ._form ._button-wrapper {
    margin-top: 14px !important;
}

#investorFormCard ._form ._submit,
#investorFormCard ._form button._submit,
#investorFormCard ._form input[type="submit"] {
    display: inline-block;
    width: auto !important;
    min-width: 150px;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center;
    color: #fff !important;
    background: #30caa0 !important;
    background-color: #30caa0 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 11px 44px !important;
    cursor: pointer;
    transition: background .18s ease;
}

#investorFormCard ._form ._submit:hover,
#investorFormCard ._form button._submit:hover {
    background: #26a884 !important;
    background-color: #26a884 !important;
}

#investorFormCard ._form ._submit:focus-visible {
    outline: 2px solid #244565;
    outline-offset: 2px;
}

/* ---------- reCAPTCHA: outer spacing only, widget untouched ---------- */
#investorFormCard .g-recaptcha {
    margin: 6px 0 4px;
}

/* ---------- thank-you message ---------- */
#investorFormCard ._form ._form-thank-you {
    color: #25313f;
    font-size: 15px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .ezi .ezi-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 30px 24px 72px;
    }

    .ezi .ezi-banner {
        padding: 40px 24px 0px;
    }

    .ezi .prose {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .ezi .ezi-layout {
        padding: 28px 16px 56px;
        gap: 36px;
    }

    .ezi .ezi-form-card {
        padding: 24px 18px 22px;
    }

    /* counties collapse to one column */
    #investorFormCard ._form ._form-fieldset {
        grid-template-columns: 1fr;
    }

    /* keep the country dropdown inside the viewport (embed forces
       a 460px min-width that overflows small screens) */
    #investorFormCard ._form .iti__country-list {
        min-width: 240px !important;
        max-width: calc(100vw - 56px) !important;
    }
}

/* ---------- phone (intl-tel-input): widget fills the field; flag
   block reads as part of the input. Dropdown JS untouched. ---------- */
#investorFormCard ._form .iti,
#investorFormCard ._form .intl-tel-input {
    width: 100% !important;
    display: block !important;
}

#investorFormCard ._form .iti input {
    border: 1px solid #cfd6dd !important;
    border-radius: 4px !important;
}

#investorFormCard ._form .iti--separate-dial-code .iti__selected-flag {
    background-color: #f7f9fa !important;
    border-right: 1px solid #cfd6dd;
    border-radius: 4px 0 0 4px !important;
}

@media (prefers-reduced-motion: reduce) {
    .ezi * {
        transition: none !important;
        animation: none !important;
    }
}
