/* SunTrade Smart CTA v1.0
   Built for the normal / classic WordPress editor.
   Desktop = one horizontal row.
*/

.stc-wrap,
.stc-wrap * {
    box-sizing: border-box !important;
}

/* Neutralize extra paragraph / line-break wrappers sometimes added by WordPress */
.stc-wrap > p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

.stc-wrap > br {
    display: none !important;
}

.stc-wrap {
    --stc-blue-1: #17285e;
    --stc-blue-2: #0756a5;
    --stc-whatsapp: #25d366;
    --stc-email: #3979c9;
    --stc-orange: #f5820b;

    width: 100% !important;
    max-width: none !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;

    gap: 12px !important;

    margin: 28px 0 !important;
    padding: 12px !important;

    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 32px rgba(19,42,83,.10) !important;

    font-family: Arial, Helvetica, sans-serif !important;
    clear: both !important;
}

/* Main blue section */
.stc-wrap .stc-main {
    flex: 0 1 47% !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 195px !important;

    padding: 28px 26px !important;
    border-radius: 15px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;

    position: relative !important;
    overflow: hidden !important;

    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.09) 0 3px, transparent 4px),
        linear-gradient(135deg, var(--stc-blue-1), var(--stc-blue-2)) !important;

    color: #ffffff !important;
    text-decoration: none !important;
}

.stc-wrap .stc-main::after {
    content: "" !important;
    position: absolute !important;
    width: 220px !important;
    height: 220px !important;
    left: -85px !important;
    bottom: -125px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.06) !important;
}

.stc-wrap .stc-main-icon {
    position: relative !important;
    z-index: 2 !important;

    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}

.stc-wrap .stc-main-icon svg {
    width: 31px !important;
    height: 31px !important;
    fill: currentColor !important;
}

.stc-wrap .stc-main-copy {
    position: relative !important;
    z-index: 2 !important;
    min-width: 0 !important;
}

.stc-wrap .stc-kicker {
    display: inline-block !important;
    margin: 0 0 7px !important;
    padding: 0 !important;

    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .7px !important;
    text-transform: uppercase !important;

    color: rgba(255,255,255,.78) !important;
}

.stc-wrap .stc-main h3 {
    margin: 0 0 9px !important;
    padding: 0 !important;

    font-size: 23px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;

    color: #fff !important;
    text-transform: none !important;
}

.stc-wrap .stc-main p {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 13px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;

    color: rgba(255,255,255,.86) !important;
}

.stc-wrap .stc-phone {
    display: inline-block !important;

    margin: 13px 0 0 !important;
    padding: 7px 12px !important;

    border-radius: 999px !important;
    background: rgba(255,255,255,.12) !important;

    color: #ffffff !important;

    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* Three small cards */
.stc-wrap .stc-card {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 195px !important;

    margin: 0 !important;
    padding: 20px 12px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 15px !important;

    text-align: center !important;
    text-decoration: none !important;

    overflow: hidden !important;

    transition: transform .2s ease, box-shadow .2s ease !important;
}

.stc-wrap .stc-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.07) !important;
}

.stc-wrap .stc-card-icon {
    width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;

    margin: 0 0 13px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

    color: #ffffff !important;
}

.stc-wrap .stc-card-icon svg {
    width: 26px !important;
    height: 26px !important;
    fill: currentColor !important;
}

.stc-wrap .stc-card strong {
    display: block !important;

    margin: 0 0 6px !important;
    padding: 0 !important;

    color: #222 !important;

    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.stc-wrap .stc-card > span:not(.stc-card-icon) {
    margin: 0 !important;
    padding: 0 !important;

    color: #727272 !important;

    font-size: 11px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;

    overflow-wrap: anywhere !important;
}

.stc-wrap .stc-whatsapp {
    background: #eefaf2 !important;
}

.stc-wrap .stc-whatsapp .stc-card-icon {
    background: var(--stc-whatsapp) !important;
}

.stc-wrap .stc-email {
    background: #eef4fb !important;
}

.stc-wrap .stc-email .stc-card-icon {
    background: var(--stc-email) !important;
}

.stc-wrap .stc-form {
    background: #fff4e9 !important;
}

.stc-wrap .stc-form .stc-card-icon {
    background: var(--stc-orange) !important;
}

.stc-wrap .stc-form em {
    display: block !important;
    width: 100% !important;

    margin: auto 0 0 !important;
    padding: 9px 6px !important;

    border-radius: 8px !important;
    background: var(--stc-orange) !important;

    color: #fff !important;

    font-size: 11px !important;
    line-height: 1.3 !important;
    font-style: normal !important;
    font-weight: 700 !important;
}

/* Medium desktop: still ONE row */
@media (max-width: 900px) and (min-width: 681px) {
    .stc-wrap {
        gap: 8px !important;
        padding: 8px !important;
    }

    .stc-wrap .stc-main {
        flex-basis: 44% !important;
        padding: 22px 18px !important;
        gap: 14px !important;
    }

    .stc-wrap .stc-main-icon {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
    }

    .stc-wrap .stc-main h3 {
        font-size: 19px !important;
    }

    .stc-wrap .stc-main p {
        font-size: 11px !important;
    }

    .stc-wrap .stc-card {
        padding: 16px 8px !important;
    }

    .stc-wrap .stc-card strong {
        font-size: 12px !important;
    }

    .stc-wrap .stc-card > span:not(.stc-card-icon) {
        font-size: 10px !important;
    }
}

/* Phones only: stack vertically */
@media (max-width: 680px) {
    .stc-wrap {
        flex-direction: column !important;
        flex-wrap: nowrap !important;

        gap: 9px !important;
        padding: 9px !important;
        margin: 22px 0 !important;
    }

    .stc-wrap .stc-main,
    .stc-wrap .stc-card {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    .stc-wrap .stc-main {
        min-height: auto !important;

        padding: 24px 20px !important;

        flex-direction: column !important;
        text-align: center !important;
    }

    .stc-wrap .stc-main h3 {
        font-size: 21px !important;
    }

    .stc-wrap .stc-card {
        min-height: 155px !important;
    }
}


/* Theme-independent hard compatibility */

.stc-wrap > .stc-main,
.stc-wrap > .stc-card {
    float: none !important;
    clear: none !important;
    max-width: none !important;
}

@media (min-width: 681px) {
    .stc-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .stc-wrap > .stc-main {
        flex: 0 1 47% !important;
        width: auto !important;
    }

    .stc-wrap > .stc-card {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
    }
}


/* ==========================================================
   v1.0 Email chooser + copy feedback
   ========================================================== */

.stc-wrap .stc-email {
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.stc-wrap .stc-email-menu {
    position: absolute !important;
    z-index: 9999 !important;

    left: 50% !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;

    width: calc(100% - 20px) !important;
    min-width: 135px !important;

    padding: 8px !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;

    background: #ffffff !important;
    border: 1px solid rgba(57,121,201,.16) !important;
    border-radius: 10px !important;

    box-shadow: 0 10px 28px rgba(22,45,80,.15) !important;
}

.stc-wrap .stc-email-menu[hidden] {
    display: none !important;
}

.stc-wrap .stc-email-menu-title {
    display: block !important;
    padding: 3px 5px 5px !important;

    color: #777 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.stc-wrap .stc-email-menu a {
    display: block !important;
    width: 100% !important;

    padding: 8px 9px !important;

    background: #f4f7fb !important;
    border-radius: 7px !important;

    color: #234f85 !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-decoration: none !important;
}

.stc-wrap .stc-email-menu a:hover {
    background: #e9f1fa !important;
}

.stc-toast {
    position: fixed;
    z-index: 999999;

    left: 50%;
    bottom: 28px;

    transform: translate(-50%, 15px);
    opacity: 0;

    padding: 10px 16px;

    background: #17285e;
    border-radius: 999px;

    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 8px 24px rgba(0,0,0,.18);

    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.stc-toast.stc-toast-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 680px) {
    .stc-wrap .stc-email-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 12px !important;
    }
}
