/* CTA + Form — [cr_cta] */

.cr-cta,
.cr-cta *,
.cr-cta *::before,
.cr-cta *::after {
    box-sizing: border-box;
}

.cr-cta {
    --cr-cta-bg: #f2f3f5;
    --cr-cta-accent: var(--accent, #2d64ad);
    --cr-cta-btn-bg: #204ce5; /* site button blue */
    background: var(--cr-cta-bg);
    padding: 90px 30px;
}

/* Break out of the page container to span the viewport */
.cr-cta--bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.cr-cta__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: center;
}

/* No form selected: single centered column */
.cr-cta--no-form .cr-cta__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
}

/* ---- Left column ---- */

.cr-cta__icon {
    margin-bottom: 30px;
}

.cr-cta__icon img {
    display: block;
    max-height: 110px;
    width: auto;
    height: auto;
}

.cr-cta--no-form .cr-cta__icon img {
    margin: 0 auto;
}

.cr-cta__content h1,
.cr-cta__content h2,
.cr-cta__content h3 {
    margin: 0 0 20px;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--contrast, #1e1e1e);
}

.cr-cta__content p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--contrast-2, #444);
}

.cr-cta__content > :last-child {
    margin-bottom: 0;
}

/* ---- Optional icon list beneath the copy ---- */

.cr-cta__list {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    row-gap: 22px;
}

.cr-cta__list-item {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
}

.cr-cta--no-form .cr-cta__list-item {
    justify-content: center;
}

.cr-cta__list-icon {
    flex: none;
    width: 34px;
    display: flex;
    justify-content: center;
    font-size: 27px;
    line-height: 1;
    color: var(--cr-cta-list-icon, var(--cr-cta-accent));
}

/* Font Awesome SVG-mode safety: keep replaced <svg> icons at icon size */
.cr-cta__list-icon svg {
    height: 1em;
}

.cr-cta__list-text {
    font-size: 19px;
    font-weight: 700;
    color: var(--contrast, #1e1e1e);
}

/* ---- Right column: white form card ---- */

.cr-cta__card {
    background: #fff;
    border-radius: 28px;
    padding: 56px;
    box-shadow: 0 12px 44px rgba(20, 30, 50, 0.07);
}

/* Gravity Forms styling, scoped to the card */

.cr-cta__card .gform_fields {
    row-gap: 26px;
    column-gap: 24px;
}

.cr-cta__card input[type="text"],
.cr-cta__card input[type="email"],
.cr-cta__card input[type="tel"],
.cr-cta__card input[type="url"],
.cr-cta__card input[type="number"],
.cr-cta__card select,
.cr-cta__card textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #c7ccd6;
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
}

.cr-cta__card input:focus,
.cr-cta__card select:focus,
.cr-cta__card textarea:focus {
    outline: none;
    border-color: var(--cr-cta-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cr-cta-accent) 18%, transparent);
}

/* !important: GF prints its own theme CSS with the form, which otherwise
   out-cascades this scoped rule */
.cr-cta__card input::placeholder,
.cr-cta__card textarea::placeholder,
.cr-cta__card select::placeholder {
    color: #7e8692 !important;
    opacity: 1 !important;
}

.cr-cta__card textarea {
    min-height: 160px;
    resize: vertical;
}

/* Placeholder-only style: hide labels visually, keep them for screen readers */
.cr-cta--hide-labels .cr-cta__card .gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Submit button: accent pill */
.cr-cta__card .gform_footer {
    margin-top: 30px;
    padding: 0;
}

/* !important: GF's Orbital theme CSS loads with the form and out-cascades
   these scoped rules otherwise */
.cr-cta__card input[type="submit"],
.cr-cta__card button.gform_button,
.cr-cta__card .gform_footer button {
    display: inline-block;
    height: auto !important;
    padding: 14px 36px !important;
    background: var(--cr-cta-btn-bg) !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.cr-cta__card input[type="submit"]:hover,
.cr-cta__card input[type="submit"]:focus,
.cr-cta__card button.gform_button:hover,
.cr-cta__card .gform_footer button:hover {
    background: var(--cr-cta-btn-bg) !important;
    filter: brightness(0.9);
}

/* ---- Mobile ---- */

@media (max-width: 900px) {
    .cr-cta {
        padding: 64px 20px;
    }

    .cr-cta__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .cr-cta__card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .cr-cta__icon img {
        max-height: 84px;
    }

    .cr-cta__list {
        margin-top: 28px;
        row-gap: 18px;
    }

    .cr-cta__list-item {
        gap: 18px;
    }

    .cr-cta__list-icon {
        width: 28px;
        font-size: 23px;
    }

    .cr-cta__list-text {
        font-size: 17px;
    }
}
