/* Formulário comercial — extensão do login.css */

body.vpj-form-lead .vpj-login-panel--form {
    height: auto;
    min-height: 700px;
}

.vpj-form-promise {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
    border: 1px solid rgba(3, 104, 255, 0.14);
}

.vpj-form-promise__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(126deg, #0368ff, #05c3b1);
    color: #fff;
}

.vpj-form-promise__icon svg {
    width: 22px;
    height: 22px;
}

.vpj-form-promise strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.vpj-form-promise span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.vpj-form-promise span em {
    font-style: normal;
    font-weight: 700;
    color: #0368ff;
}

.vpj-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.vpj-form-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.vpj-form-trust svg {
    width: 14px;
    height: 14px;
    color: #059669;
    flex-shrink: 0;
}

.vpj-form-hero-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    font-size: 13px;
    font-weight: 700;
    color: #0368ff;
}

.vpj-form-hero-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.vpj-form-hero-points {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 88px;
    z-index: 2;
    margin: 0;
    padding: 0 24px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vpj-form-hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.vpj-form-hero-points li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #34d399;
}

.vpj-login-slogan strong {
    font-weight: 800;
    color: #fff;
}

/* Modal de sucesso */
.form-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.form-success-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.form-success-modal__dialog {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(3, 104, 255, 0.2);
    border: 1px solid #eef2f7;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.form-success-modal.is-open .form-success-modal__dialog {
    transform: translateY(0) scale(1);
}

.form-success-modal__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.form-success-modal__icon svg {
    width: 36px;
    height: 36px;
}

.form-success-modal__title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.form-success-modal__text {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.55;
    color: #64748b;
}

.form-success-modal__highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
    color: #0368ff;
    font-size: 15px;
    font-weight: 700;
}

.form-success-modal__highlight svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-success-modal__btn {
    width: 100%;
    height: 48px;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(126deg, #0368ff, #05c3b1);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.form-success-modal__btn:hover {
    opacity: 0.92;
}

@media (max-width: 991px) {
    body.vpj-form-lead .vpj-login-panel--form {
        min-height: 0;
    }

    .vpj-form-hero-points {
        display: none;
    }

    .vpj-form-hero-badge {
        top: 16px;
        left: 16px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 575px) {
    .vpj-form-promise {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ── PJ Protegido ── */
body.vpj-form-lead--pj-protegido {
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 40%, #fff 100%);
}

.vpj-pj-hero {
    position: relative;
    overflow: hidden;
}

.vpj-pj-hero > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 700px;
    object-fit: cover;
    object-position: center top;
}

.vpj-pj-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    pointer-events: none;
}

.vpj-pj-hero__panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 14px 16px;
}

.vpj-pj-hero__panel--top {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.92);
    padding: 0;
}

.vpj-pj-hero__panel--top .vpj-form-hero-badge {
    position: static;
    box-shadow: none;
    background: transparent;
}

.vpj-pj-hero__panel--bottom {
    width: 100%;
}

.vpj-form-hero-badge--copa {
    color: #0368ff;
    border: none;
}

.vpj-form-hero-badge--copa svg {
    color: #f59e0b;
}

.vpj-pj-hero__brand {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
}

.vpj-pj-hero__brand strong {
    color: #34d399;
    font-weight: 800;
}

.vpj-pj-hero .vpj-login-slogan {
    position: static;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

.vpj-pj-hero .vpj-login-slogan strong {
    color: #fde68a;
    font-weight: 800;
}

.vpj-form-promise--pj {
    background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
    border-color: rgba(245, 158, 11, 0.22);
}

.vpj-form-promise--pj .vpj-form-promise__icon {
    background: linear-gradient(126deg, #f59e0b, #0368ff);
}

.vpj-btn-entrar--pj {
    background: linear-gradient(126deg, #0368ff 0%, #059669 100%);
}

.vpj-login-panel--form {
    position: relative;
}

.pj-submit-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
}

.pj-submit-overlay[hidden] {
    display: none !important;
}

.pj-submit-overlay__card {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 28px 22px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.pj-submit-overlay__rings {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
}

.pj-submit-overlay__rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #0368ff;
    animation: pjOverlaySpin 1s linear infinite;
}

.pj-submit-overlay__rings span:nth-child(2) {
    inset: 7px;
    border-top-color: #05c3b1;
    animation-duration: 1.35s;
    animation-direction: reverse;
}

.pj-submit-overlay__rings span:nth-child(3) {
    inset: 14px;
    border-top-color: #0368ff;
    animation-duration: 0.85s;
    opacity: 0.7;
}

.pj-submit-overlay__title {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.pj-submit-overlay__text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.pj-submit-overlay__bar {
    height: 4px;
    border-radius: 999px;
    background: #e8edf3;
    overflow: hidden;
}

.pj-submit-overlay__bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0368ff, #05c3b1);
    animation: pjOverlayBar 1.2s ease-in-out infinite;
}

@keyframes pjOverlaySpin {
    to { transform: rotate(360deg); }
}

@keyframes pjOverlayBar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.vpj-btn-entrar.is-loading {
    opacity: 0.92;
    cursor: wait;
}

.vpj-btn__loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vpj-btn__loader[hidden],
.vpj-btn__label[hidden],
.vpj-btn-entrar-icon--default[hidden] {
    display: none !important;
}

.vpj-btn__spinner {
    animation: vpjBtnSpin 0.75s linear infinite;
}

@keyframes vpjBtnSpin {
    to {
        transform: rotate(360deg);
    }
}

.form-success-modal__dialog--pj {
    border-top: 4px solid #0368ff;
}

.form-success-modal__icon--pj {
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
    color: #0368ff;
}

.form-success-modal__tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0368ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-success-modal__dialog--pj .form-success-modal__highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7ed, #eff6ff);
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .vpj-pj-hero > img {
        min-height: 420px;
    }

    .vpj-pj-hero__overlay {
        padding: 14px;
    }

    .vpj-pj-hero__brand {
        font-size: 11px;
    }

    .vpj-pj-hero .vpj-login-slogan {
        font-size: 13px;
    }
}
