
/* ==========================================
   FORMULÁRIO
========================================== */

.cpce-form {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    font-family: inherit;
}

.cpce-form h3 {
    margin: 0 0 12px;
}

.cpce-form p {
    margin: 0 0 15px;
}

.cpce-form .cpce-email {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    margin-bottom: 6px;
    border: 1px solid #b7bcc7;
    border-radius: 5px;
    background: #fff;
    color: #222;
}

.cpce-form button {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 15px;
    background: #134693;
    color: #fff;
    border: 1px solid #003b95;
    border-radius: 5px;
    cursor: pointer;
    transition: none;
}

.cpce-form button:hover,
.cpce-form button:focus {
    background: #003b95;
    color: #fff;
}

.cpce-form button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.cpce-form .cpce-privacy {
    font-size: 12px;
    line-height: 1.5;
    color: #565656;
    margin: 12px 0;
}

.cpce-form .cpce-message,
.cpce-form .cpce-check-message {
    font-size: 14px;
    line-height: 1.5;
    min-height: 20px;
    margin: 4px 0 10px;
}

.cpce-form .cpce-error {
    color: #b42318;
}

.cpce-form .cpce-hp,
.cpce-form .cpce-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}


/* ==========================================
   JANELA MODAL AUTOMÁTICA
   Elementor / Dynific
========================================== */

.cpce-popup[hidden] {
    display: none !important;
}

.cpce-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cpce-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.cpce-popup-dialog {
    position: relative;
    box-sizing: border-box;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    width: min(100%, 740px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 60px rgba(0, 0, 0, .25);
}

.cpce-popup-content {
    padding: 26px 22px;
}


/* ==========================================
   BOTÃO FECHAR MODAL
========================================== */

.cpce-popup-close {
    position: absolute !important;
    top: 7px;
    right: 9px;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, .92) !important;
    color: #222 !important;
    border: 0 !important;
    border-radius: 50% !important;
    font-size: 29px !important;
    line-height: 1 !important;
    cursor: pointer;
}

body.cpce-popup-open {
    overflow: hidden;
}


/* ==========================================
   ECRÃ DE CONFIRMAÇÃO / SUCESSO
========================================== */

.cpce-success[hidden] {
    display: none !important;
}

.cpce-popup-content--success {
    padding: 34px 22px 36px;
}


/* ==========================================
   MOLDURA ORNAMENTAL DE SUCESSO
========================================== */

.cpce-success {
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 12px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #134693;
    outline: none;

    /* Moldura ornamental */
    background-image: url("https://companhiaportuguesa.pt/wp-content/uploads/2026/11/Moldura-Ornamental-Azul-Marinho2.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* ==========================================
   TÍTULO DE SUCESSO
========================================== */

.cpce-success-heading {
    margin: 15px 0 20px !important;
    font-family: inherit !important;
    font-size: clamp(30px, 5vw, 44px) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    letter-spacing: .1px;
    color: #134693 !important;
    text-transform: none;
}


/* ==========================================
   SUBTÍTULO DE SUCESSO
========================================== */

.cpce-success-subheading {
    margin: 0 0 26px !important;
    font-family: inherit !important;
    font-size: clamp(15px, 2.5vw, 19px) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #134693 !important;
}


/* ==========================================
   CORPO DO TEXTO DE SUCESSO
========================================== */

.cpce-success-body {
    margin: 15px !important;
    max-width: 560px;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #134693 !important;
}

.cpce-success-body strong,
.cpce-success-body b {
    font-weight: 750 !important;
}


/* ==========================================
   RESPONSIVO — MOBILE
========================================== */

@media (max-width: 600px) {

    .cpce-popup {
        padding: 12px;
    }

    .cpce-popup-dialog {
        max-height: calc(100dvh - 24px);
    }

    .cpce-popup-content {
        padding: 35px 14px 18px;
    }

    .cpce-popup-content--success {
        padding: 30px 12px 28px;
    }

    .cpce-success {
        padding: 14px 8px;
    }
}
