/* === Formulário Moderno === */
#cp-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 35px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease-in-out;
}

#cp-form h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 600;
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#cp-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

#cp-form input[type="text"],
#cp-form input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 25px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fafafa;
    transition: border-color 0.2s ease;
}

#cp-form input[type="text"]:focus,
#cp-form input[type="file"]:focus {
    outline: none;
    border-color: #3AA362;
    background-color: #fff;
}

#cp-form input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

#cpf_titular_field {
    margin-top: 20px;
}

#cp-form .form-actions {
    margin-top: 30px;
    text-align: center;
}

/* ✅ Botão corrigido */
#cp-form .cp-button {
    background: linear-gradient(135deg, #3AA362, #2e854b);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(58, 163, 98, 0.3);
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

#cp-form .cp-button:hover {
    background: linear-gradient(135deg, #2e854b, #246e3e);
}

#cp-form .cp-button.loading {
    pointer-events: none;
    opacity: 0.85;
}

#cp-form .cp-button .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#cp-form .cp-button.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

audio {
    width: 100%;
    margin: 20px 0;
    border-radius: 4px;
}

@media (max-width: 768px) {
    #cp-form {
        padding: 25px 20px;
        box-shadow: none;
        border-radius: 0;
    }

    #cp-form input[type="text"],
    #cp-form input[type="file"] {
        padding: 10px;
        font-size: 14px;
    }

    #cp-form .cp-button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}
