/*
 * assets/css/frontend.css
 * Estilos para as caixas de captura do plugin Converte WP
 */

/* --- Estilo da Caixa "In-Post" --- */
.cw-inpost-form {
    background-color: #f8f9fa; /* Fundo cinza claro */
    border: 1px solid #e9ecef; /* Borda sutil */
    border-radius: 8px; /* Cantos arredondados */
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Sombra suave */
}

.cw-inpost-form h2 {
    font-size: 28px;
    color: #343a40; /* Texto escuro */
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.cw-inpost-form p {
    font-size: 16px;
    color: #6c757d; /* Texto cinza */
    margin-bottom: 20px;
}

.cw-inpost-form input[type="email"] {
    width: calc(70% - 10px); /* Ajuste de largura */
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box; /* Inclui padding e borda na largura */
    font-size: 16px;
    margin-right: 10px;
}

.cw-inpost-form button {
    width: 28%;
    padding: 12px;
    background-color: #17a2b8; /* Cor turquesa para destaque */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.cw-inpost-form button:hover {
    background-color: #138496; /* Escurece no hover */
}

/* --- Estilo da Caixa "Fly-in" --- */
.cw-flyin-form {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 320px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transform: translateX(120%); /* Esconde a caixa fora da tela */
    transition: transform 0.6s ease-in-out;
    z-index: 9999;
}

.cw-flyin-form.active {
    transform: translateX(0); /* Mostra a caixa */
}

.cw-flyin-header {
    background-color: #17a2b8;
    color: #fff;
    padding: 12px 15px;
    position: relative;
    font-weight: bold;
}

.cw-flyin-header h4 {
    margin: 0;
    font-size: 18px;
}

.cw-flyin-content {
    padding: 20px;
}

.cw-flyin-content p {
    font-size: 14px;
    color: #6c757d;
}

.cw-flyin-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.cw-flyin-content button {
    width: 100%;
    background-color: #28a745; /* Cor verde para CTA */
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.cw-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
}

.cw-close-btn:hover {
    opacity: 1;
}

/* --- Estilo do Popup (Modal) --- */
.cw-popup-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fundo escuro transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cw-popup-form.cw-hidden {
    display: none;
}

.cw-popup-inner {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 550px;
    width: 90%;
    animation: fadeIn 0.4s ease-out; /* Animação de entrada */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}